ดึงชื่อหน้า
=TEXTBEFORE("John Doe", " ")
"John"
ดึงข้อความก่อนตัวคั่น
คืนค่าข้อความที่อยู่ก่อนหน้าตัวคั่นที่ระบุ
=TEXTBEFORE(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found])
=TEXTBEFORE(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found])
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| text | Text | Yes | ข้อความหลัก | |
| delimiter | Text | Yes | ตัวคั่น | |
| instance_num | Number | Optional | 1 | ลำดับตัวคั่นที่ต้องการ (Default = 1) |
=TEXTBEFORE("John Doe", " ")
"John"
=TEXTBEFORE("user@example.com", "@")
"user"
=TEXTBEFORE(A1, "-")
"ABC"
ฟังก์ชัน TEXTBEFORE ใน Excel ช่วยคืนค่าข้อความที่อยู่ก่อนหน้าตัวคั่นที่ระบุ