How can I use the FORMULATEXT function in Google Sheets to display the formula of a cell as a text string?

How can I use the FORMULATEXT function in Google Sheets to display the formula of a cell as a text string?

The FORMULATEXT function in Google Sheets allows users to retrieve the formula of a specific cell and display it as a text string. This function is useful for documenting and sharing complex formulas with others, as well as for troubleshooting errors in formulas. By simply inputting the cell reference of the desired formula, the FORMULATEXT function will return the formula as a text string, making it easily readable and understandable. This feature enhances the functionality and versatility of Google Sheets, making it a valuable tool for data analysis and collaboration.

FORMULATEXT function

The FORMULATEXT function returns a formula as a string. 

Parts of a FORMULATEXT function 

FORMULATEXT(cell) 

PartDescription
cellThe cell to be verified as containing a formula. 

Notes

  • FORMULATEXT returns what is displayed in the formula bar when selecting a cell.
  • If the cell passed into FORMULATEXT references the cell that contains the FORMULATEXT formula, then FORMULATEXT will properly handle this and avoid a circular reference.
  • If a range is passed into FORMULATEXT, only the top left most cell is evaluated.

Examples 

 ABC
1ValueFormulaResult
220=FORMULATEXT($A2)=10+10
318=FORMULATEXT($A3)=MAX(10,12,18)
410=FORMULATEXT($A4:$A5)=MODE.MULT(10,15,10,15)
515=FORMULATEXT($A4:$A5)=MODE.MULT(10,15,10,15)
6=FORMULATEXT($A6)=FORMULATEXT($A6)=B6

Cite this article

stats writer (2024). How can I use the FORMULATEXT function in Google Sheets to display the formula of a cell as a text string?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-the-formulatext-function-in-google-sheets-to-display-the-formula-of-a-cell-as-a-text-string/

stats writer. "How can I use the FORMULATEXT function in Google Sheets to display the formula of a cell as a text string?." PSYCHOLOGICAL SCALES, 29 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-the-formulatext-function-in-google-sheets-to-display-the-formula-of-a-cell-as-a-text-string/.

stats writer. "How can I use the FORMULATEXT function in Google Sheets to display the formula of a cell as a text string?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-the-formulatext-function-in-google-sheets-to-display-the-formula-of-a-cell-as-a-text-string/.

stats writer (2024) 'How can I use the FORMULATEXT function in Google Sheets to display the formula of a cell as a text string?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-the-formulatext-function-in-google-sheets-to-display-the-formula-of-a-cell-as-a-text-string/.

[1] stats writer, "How can I use the FORMULATEXT function in Google Sheets to display the formula of a cell as a text string?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How can I use the FORMULATEXT function in Google Sheets to display the formula of a cell as a text string?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top