This post will guide you how to use Google Sheets FORMULATEXT function with syntax and examples.

## Description

The Google Sheets FORMULATEXT function returns a formula as string. You can get a formula as a text string from a given cell reference.

The FORMULATEXT function can be used to extract the formula as text from a cell in google sheets. The purpose of this function is to get the formula in a cell and the returned value is the formula as text.

The FORMULATEXT function is a build-in function in Google Sheets and it is categorized as a Lookup function.

## Syntax

The syntax of the FORMULATEXT function is as below:

=FORMULATEXT (cell)

Where the FORMULATEXT function arguments are:

• cell -This is a required argument. The reference to cell or a cell range.

Note:

• FORMULATEXT function only take one arugument, it can be a cell reference.
• If Cell doesn’t contain a formula, the FORMULATEXT function returns #N/A error.
• FORMULATEXT function returns what is displayed in the formula bar when selecting a cell.
• If a cell range is passed into FORMULATEXT function, only the top left most cell is extracted.

## Google Sheets FORMULATEXT Function Examples

The below examples will show you how to use google sheets FORMULATEXT Function to extract a formula as a string.

#1 if the cell A1 contain one formula =NOW(), and you wish to extract this formula in cell A1 as a text string, just using the FORMULATEXT function:

`=FORMULATEXT(A1)` #2 the cell A3 contain one string “google”, and using the FORMULATEXT function to extract a formula in Cell C3, it will returns #N/A error, type:

`=FORMULATEXT(C1)` #3 If the cell passed into FORMULATEXT references the cell that contains the FORMULATEXT formula, it can handle this kind of circular reference, type:

`=FORMULATEXT(B3)` Related Posts

This post will guide you how to use Google Sheets EXP function with syntax and examples. Description The Google Sheets EXP function returns e raised to the power of a number.  The constant e is equal to 2.71828182845904, and it ...

This post will guide you how to use Google Sheets FACT function with syntax and examples. Description The Google Sheets FACT function returns the factorial of a given number.  The factorial of a given number is equal to 1*2*3…* number. ...

This post will guide you how to use Google Sheets EVEN function with syntax and examples. Description The Google Sheets EVEN function rounds a given number up to the nearest even integer. You can use the EVEN function to return ...

This post will guide you how to use Google Sheets COUNTBLANK function with syntax and examples. Description The Google Sheets COUNTBLANK function use to count the number of empty cells in a range of cells. You can use the COUNTBLANK ...

This post will guide you how to use Google Sheets DEGREES function with syntax and examples. Description The Google Sheets DEGREES function converts radians into degrees. And it will return a numeric value. For examples, if you pass the PI() function into ...

This post will guide you how to use Google Sheets COSH function with syntax and examples. Description The Google Sheets COSH function returns the hyperbolic cosine of a given angle. The purpose of this function is used to get hyperbolic ...

This post will guide you how to use Google Sheets COS function with syntax and examples. Description The Google Sheets COS function returns the cosine of a given angle. If you want to supply an angle to COS function in ...