# FORMULATEXT Function

The FORMULATEXT function is one of the lookup and reference functions. It is used to return a formula as a string (i.e. the text string that is displayed in the formula bar if you select the cell that contains the formula).

The FORMULATEXT function syntax is:

FORMULATEXT(reference)

where reference is a reference to a single cell or a range of cells.

If the referenced cell range contains more than one formula, the FORMULATEXT function returns the value from the upper left cell of this range. If the referenced cell does not contain a formula, the FORMULATEXT function returns the N/A error value.

To apply the FORMULATEXT function,

1. select the cell where you wish to display the result,
2. click the Insert function icon situated at the top toolbar,
   or right-click within a selected cell and select the Insert Function option from the menu,
   or click the icon situated at the formula bar,
3. select the Lookup and Reference function group from the list,
4. click the FORMULATEXT function,
5. enter the required argument,
6. press the Enter button.

The result will be displayed in the selected cell.