FORMULATEXT Function
Return the formula of a cell as text. reference is the cell; for a range, the formula of its top-left cell is returned. A cell without a formula returns #N/A.
Syntax
FORMULATEXT(reference)
Category: Information. Minimum arguments: 1. Maximum arguments: 1.
Available for supported offline calculation.
Examples
=FORMULATEXT(A1)
If A1 contains the formula =SUM(B1:B3), the formula returns the text =SUM(B1:B3).
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.