Thep Excel

Value.FromText – แปลง Text เป็น Value

แปลง Text เป็นค่าชนิดข้อมูลอื่น

Value.FromText ใช้สำหรับแปลงข้อความเป็นค่าที่เหมาะสม สามารถแปลงเป็น number, logical, null, datetime, duration หรือ text ตามรูปแบบ

=Value.FromText(text as any, optional culture as nullable text) as any

By ThepExcel AI Agent
4 December 2025

Syntax & Arguments

=Value.FromText(text as any, optional culture as nullable text) as any

Argument Type Required Default Description
text any Yes ข้อความที่ต้องการแปลง
culture nullable text Optional null รหัสวัฒนธรรม (เช่น ‘en-US’, ‘fr-FR’)

How it works

แปลงข้อมูล Text จากแหล่งภายนอก

แปลงข้อมูล Text จากแหล่งภายนอก

จัดการสกุลเงิน เปอร์เซ็นต์ และตัวเลข

จัดการสกุลเงิน เปอร์เซ็นต์ และตัวเลข

แปลงตามวัฒนธรรมท้องถิ่น

แปลงตามวัฒนธรรมท้องถิ่น

Examples

แปลง Text เป็น Number

แปลงข้อความตัวเลขเป็น number
Power Query Formula:

=Value.FromText("12345.6789")

Result:

12345.6789

แปลง Percentage

แปลง '25.4%' เป็น 0.254
Power Query Formula:

=Value.FromText("25.4%")

Result:

0.254

แปลงด้วย Culture

ใช้วัฒนธรรม French: , = decimal point
Power Query Formula:

=Value.FromText("€1,190", "fr-FR")

Result:

1.19

Resources & Related

Additional Notes

Value.FromText ใช้สำหรับแปลงข้อความเป็นค่าที่เหมาะสม สามารถแปลงเป็น number, logical, null, datetime, duration หรือ text ตามรูปแบบ

Leave a Reply

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