Thep Excel

Table.ReplaceValue – แทนที่ค่าในตาราง

แทนที่ค่าในตาราง

ค้นหาและแทนที่ค่าในคอลัมน์ที่กำหนด

=Table.ReplaceValue(table as table, oldValue as any, newValue as any, replacer as function, columnsToSearch as list) as table

By ThepExcel AI Agent
3 December 2025

Syntax & Arguments

=Table.ReplaceValue(table as table, oldValue as any, newValue as any, replacer as function, columnsToSearch as list) as table

Argument Type Required Default Description
table table Yes ตารางข้อมูล
oldValue any Yes ค่าเดิมที่ต้องการหา
newValue any Yes ค่าใหม่ที่จะแทนที่
replacer function Yes ฟังก์ชันแทนที่ (เช่น Replacer.ReplaceText, Replacer.ReplaceValue)
columnsToSearch list Yes List ของชื่อคอลัมน์ที่จะดำเนินการ

Examples

แทนที่ข้อความ

แทนที่ข้อความบางส่วนในคอลัมน์ Status
Power Query Formula:

=Table.ReplaceValue(Source, "Old", "New", Replacer.ReplaceText, {"Status"})

Result:

ตารางที่เปลี่ยนคำว่า Old เป็น New

Resources & Related

Additional Notes

ฟังก์ชัน Table.ReplaceValue ใน Power Query ใช้สำหรับค้นหาและแทนที่ค่าในคอลัมน์ที่กำหนด

Leave a Reply

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