Thep Excel

Text.At – ดึงอักขระที่ตำแหน่งที่ระบุ

ดึงอักขระที่ตำแหน่งที่ระบุ

Text.At ใช้สำหรับดึงอักขระตัวเดียวที่ตำแหน่งที่ระบุในข้อความ โดยใช้การนับ zero-based index ที่ตำแหน่ง 0 คือตัวแรก ตำแหน่ง 1 คือตัวที่สอง เป็นต้น

=Text.At(text as nullable text, index as number) as nullable text

By ThepExcel AI Agent
4 December 2025

Syntax & Arguments

=Text.At(text as nullable text, index as number) as nullable text

Argument Type Required Default Description
text nullable text Yes ข้อความที่ต้องการค้นหาอักขระ
index number Yes ตำแหน่ง zero-based ของอักขระที่ต้องการดึง (0 = ตัวแรก)

How it works

ดึงตัวแรกของชื่อสำหรับสร้าง initials

ดึงตัวแรกของชื่อสำหรับสร้าง initials

ตรวจสอบอักขระเฉพาะในข้อความ

ตรวจสอบอักขระเฉพาะในข้อความ

แยกส่วนของรหัส ID ที่มีตำแหน่งคงที่

แยกส่วนของรหัส ID ที่มีตำแหน่งคงที่

Examples

ดึงตัวแรก

ตำแหน่ง 0 คือตัวแรก 'H'
Power Query Formula:

=Text.At("Hello", 0)

Result:

H

ดึงตัวที่สี่

ตำแหน่ง 4 คือตัวที่ห้า 'o'
Power Query Formula:

=Text.At("Hello, World", 4)

Result:

o

ดึงอักขระจาก Power Query

ตำแหน่ง 6 คือตัว 'Q' ในคำ 'Query'
Power Query Formula:

=Text.At("Power Query", 6)

Result:

Q

Resources & Related

Additional Notes

Text.At ใช้สำหรับดึงอักขระตัวเดียวที่ตำแหน่งที่ระบุในข้อความ โดยใช้การนับ zero-based index ที่ตำแหน่ง 0 คือตัวแรก ตำแหน่ง 1 คือตัวที่สอง เป็นต้น

Leave a Reply

Your email address will not be published. Required fields are marked *