1. Home
  2. Functions
  3. Lookup and reference
  4. FORMULATEXT

FORMULATEXT function

Returns the formula in a cell as text.

Syntax

=FORMULATEXT(reference)

Arguments

ArgumentRequiredDescription
referenceRequiredThe cell with the formula

How to use FORMULATEXT

FORMULATEXT takes 1 required argument. Type =FORMULATEXT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=FORMULATEXT(A1)Result "=1+2"
Data in the sheet
A
1=1+2
=FORMULATEXT(A1)Result #N/A
Data in the sheet
A
15

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.