Google Sheets FORMULATEXT Function

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)

google sheets formulatext function1

#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)

google sheets formulatext function1

#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)

google sheets formulatext function1

Related Posts

Google Sheets EXP Function
google sheets exp function1

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 ...

Google Sheets FACT Function
google sheets FACT function1

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. ...

Google Sheets EVEN Function
google sheets even function1

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 ...

Google Sheets COUNTBLANK Function
google sheets countblank function1

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 ...

Google Sheets DEGREES Function
google sheets degrees function1

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 ...

Google Sheets COSH Function
google sheets cosh function1

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 ...

Google Sheets COS Function
google sheets cos function1

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 ...

Google Sheets COMBINA Function
google sheets combina function1

This post will guide you how to use Google Sheets COMBINA function with syntax and examples. Description The Google Sheets COMBINA function returns the number of combinations for a given number of items and it includes repetitions. You can use ...

Google Sheets COMBIN Function
google sheets combin function1

This post will guide you how to use Google Sheets COMBIN function with syntax and examples. Description The Google Sheets COMBIN function returns the number of combinations for a given number of items. And you can use the COMBIN function ...

Google Sheets CEILING.PRECISE Function
google sheets ceiling.precise function1

This post will guide you how to use Google Sheets CEILING.PRECISE function with syntax and examples. Description The Google Sheets CEILING.PRECISE function returns a given number rounded up to the nearest multiple of a given number of significance or returns ...

Sidebar