Returns the formula as a string. Learn more.
FORMULATEXT(cell) is a function in Google Sheets that returns the formula as a text string from the given cell. This means that if you apply this function to a cell that contains a formula, it will return the text of that formula rather than the result of the formula. The syntax for the function is straightforward - you simply specify the cell you want to retrieve the formula from, like this:
FORMULATEXT(A1)
In this example, if cell A1 contained a formula such as "=SUM(B1:B10)", then the FORMULATEXT function would return the text string "=SUM(B1:B10)".
This function can be useful in a variety of scenarios, such as when you're troubleshooting a complex formula or trying to understand how a certain calculation was made.