Returns the formula at the given reference as a text string.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
FORMULATEXT(reference)The FORMULATEXT function extracts the formula from a specified cell and displays it as plain text. This is particularly useful for auditing spreadsheets or documenting complex calculations without needing to click into the formula bar.
=FORMULATEXT(A1)ผลลัพธ์: =SUM(B1:B10)
If cell A1 contains the formula =SUM(B1:B10), this function returns that formula as text.
The function will return a #N/A error.