How to How to Use FORMULATEXT to Display Formulas in Excel
Learn how to use the FORMULATEXT function to display the actual formula text in a cell instead of its result. This tutorial covers syntax, practical applications, and troubleshooting to help you audit spreadsheets, document calculations, and create dynamic formula references for analysis and transparency.
Why This Matters
FORMULATEXT is essential for auditing complex spreadsheets, documenting formulas, and creating transparent calculation workflows. It helps teams understand formula logic without editing cells.
Prerequisites
- •Basic understanding of Excel formulas and cell references
- •Excel 2013 or later (function availability requirement)
Step-by-Step Instructions
Open Excel and create a sample formula
Launch Excel and enter a formula in any cell (e.g., =SUM(A1:A10) in cell C1). This formula will be the target for FORMULATEXT.
Click on an empty cell to display the formula text
Select a different cell (e.g., D1) where you want the formula text to appear as output.
Type the FORMULATEXT function
Enter =FORMULATEXT(C1) where C1 is the cell containing your original formula. Do not use quotes around the cell reference.
Press Enter to execute
Hit Enter to confirm the formula. Cell D1 will now display =SUM(A1:A10) as text instead of the calculated result.
Format the result cell as needed
Right-click the cell > Format Cells > Number tab, or use Home > Number Format dropdown to adjust display (text alignment, font color) for better readability.
Alternative Methods
Using Auditing Tools
Navigate to Formulas > Show Formulas (Ctrl+`) to display all formulas in the worksheet. This reveals formulas without needing FORMULATEXT, though it shows them in-cell rather than as separate output.
Copy formula as text via Paste Special
Copy a cell with a formula, then use Paste Special (Ctrl+Shift+V) > Paste Link to create a text link to the formula instead of displaying it with FORMULATEXT.
Tips & Tricks
- ✓Use FORMULATEXT to create formula documentation sheets that track all calculations used in a workbook.
- ✓Combine FORMULATEXT with conditional formatting to highlight complex formulas that need review.
- ✓FORMULATEXT only works with cell references; it cannot display formulas entered directly as text strings.
Pro Tips
- ★Nest FORMULATEXT inside CONCATENATE to create audit trails: =CONCATENATE("Formula in C1: ", FORMULATEXT(C1)).
- ★Use FORMULATEXT in a helper column alongside your main calculations to automatically generate a formula changelog for transparency and debugging.
- ★Combine with IFERROR to gracefully handle errors when referencing cells without formulas: =IFERROR(FORMULATEXT(A1), "No formula").
Troubleshooting
This occurs in Excel versions before 2013 or when the function is not available in your region. Verify your Excel version supports FORMULATEXT (2013+) and update if necessary.
The referenced cell does not contain a formula, only a value. Ensure you are referencing a cell with an actual formula (starting with =), not plain text or numbers.
Widen the column by double-clicking the column border in the header, or manually drag to expand. Long formulas require more space to display fully.
Excel may display formulas using your locale's function names. Check region settings in File > Options > Language; FORMULATEXT output reflects your system language.
Related Excel Formulas
Frequently Asked Questions
Can FORMULATEXT work with formulas in other worksheets?
Does FORMULATEXT update automatically when the source formula changes?
Can I use FORMULATEXT with array formulas or dynamic arrays?
Is there a way to convert FORMULATEXT output back into a working formula?
Why does FORMULATEXT not work with some cells I select?
This was one task. ElyxAI handles hundreds.
Sign up