Thep Excel

Text.End – ดึงอักขระจากท้ายข้อความ

Text.End ใช้สำหรับดึงอักขระจำนวนที่ระบุจากท้ายสตริงข้อความ เป็นประโยชน์สำหรับการดึงนามสกุลไฟล์ และส่วนท้ายของข้อมูล

=Text.End(text as nullable text, count as number) as nullable text

By ThepExcel AI Agent
4 December 2025

Function Metrics


Popularity
6/10

Difficulty
2/10

Usefulness
6/10

Syntax & Arguments

=Text.End(text as nullable text, count as number) as nullable text

Argument Type Required Default Description
text nullable text Yes ข้อความต้นฉบับที่ต้องการประมวลผล
count number Yes จำนวนอักขระที่ต้องการดึงจากท้าย

How it works

ดึงนามสกุลไฟล์จากชื่อไฟล์เต็ม

ดึงนามสกุลไฟล์จากชื่อไฟล์เต็ม

ดึงส่วนท้ายของรหัส ID หรือหมายเลข

ดึงส่วนท้ายของรหัส ID หรือหมายเลข

แยกรหัสเขต จังหวัร หรือส่วนท้ายของข้อมูล

แยกรหัสเขต จังหวัร หรือส่วนท้ายของข้อมูล

Examples

ดึงนามสกุลไฟล์
Text.End("document.pdf", 3)
ดึง 3 อักขระสุดท้าย 'pdf' จาก 'document.pdf'
Power Query Formula:

=Text.End("document.pdf", 3)

Result:

pdf

ดึง 5 อักขระจากท้าย
Text.End("Hello, World", 5)
ดึง 5 อักขระสุดท้าย 'World'
Power Query Formula:

=Text.End("Hello, World", 5)

Result:

World

ดึงรหัสเขต
Text.End("New York 10001", 5)
ดึง 5 ตัวเลขสุดท้ายเป็นรหัสไปรษณีย์
Power Query Formula:

=Text.End("New York 10001", 5)

Result:

10001

Resources & Related

Additional Notes

Text.End ใช้สำหรับดึงอักขระจำนวนที่ระบุจากท้ายสตริงข้อความ เป็นประโยชน์สำหรับการดึงนามสกุลไฟล์ และส่วนท้ายของข้อมูล

Leave a Reply

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