ExcelExcel 2013+
FORMULATEXT function in Excel
Returns the formula at the given reference as text
=FORMULATEXT(reference)FORMULATEXT syntax and parameters
One argument, one required.
- referencerangeRequired
A reference to a cell or range of cells.
FORMULATEXT examples
Formulas you'll actually reuse.
Show a neighbouring cell's formula as text in an audit column:
=FORMULATEXT(D2)Result
"=B2*(1+C2)"Flag hard-coded cells in a column that should hold formulas:
=IF(ISFORMULA(D2), FORMULATEXT(D2), "hard-coded")Result
"hard-coded"
FORMULATEXT in Google Sheets
Same name — your formula ports as-is.
Try FORMULATEXT in the playground
Edit the example — nothing to install.
Preloaded with the FORMULATEXT formula from Example 1 — change anything and watch it respond.
Loading the editor…
FORMULATEXT errors
What they mean — and the fixes.
#N/AThe referenced cell holds a plain value, not a formula — guard with ISFORMULA when a column mixes both.
Related functions
More ways Excel gets this done.
- ADDRESSReturns a reference as text to a single cell in a worksheetLookupGoogle Sheets
- AREASReturns the number of areas in a referenceLookupNo Google Sheets equivalent
- CHOOSEChooses a value from a list of valuesLookupGoogle Sheets
- CHOOSECOLSReturns the specified columns from an arrayLookupGoogle Sheets
- CHOOSEROWSReturns the specified rows from an arrayLookupGoogle Sheets
- COLUMNReturns the column number of a referenceLookupGoogle Sheets