ดึงจากตำแหน่งถึงท้าย
=Text.Range("Hello World", 6)
World
ดึงข้อความจากตำแหน่งที่ระบุ
Text.Range ใช้สำหรับดึงข้อความตั้งแต่ตำแหน่งที่ระบุไปยังท้ายสตริง หรือจำนวนอักขระที่กำหนด ถ้าจำนวนอักขระไม่พอ ฟังก์ชันจะคืนค่าเท่าที่หาได้
=Text.Range(text as nullable text, offset as number, optional count as nullable number) as nullable text
=Text.Range(text as nullable text, offset as number, optional count as nullable number) as nullable text
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| text | nullable text | Yes | ข้อความต้นฉบับ | |
| offset | number | Yes | ตำแหน่ง zero-based ที่เริ่มต้น | |
| count | nullable number | Optional | null | จำนวนอักขระที่ต้องการดึง (ไม่ระบุ = จนถึงท้าย) |
ดึงนามสกุลไฟล์จากชื่อไฟล์เต็ม
ดึงส่วนของรหัส ID
แยกข้อมูลจากตำแหน่งคงที่
=Text.Range("Hello World", 6)
World
=Text.Range("Hello World", 0, 5)
Hello
=Text.Range("document.pdf", 9)
pdf
Text.Range ใช้สำหรับดึงข้อความตั้งแต่ตำแหน่งที่ระบุไปยังท้ายสตริง หรือจำนวนอักขระที่กำหนด ถ้าจำนวนอักขระไม่พอ ฟังก์ชันจะคืนค่าเท่าที่หาได้