Ravindra BagaleCourses & study guides Track your progress

Excel FORMULATEXT Function

Chala mitrano — fORMULATEXT prints the formula as text so students can read it next to the answer. Great for answer keys and audit columns.

Fictional sample data for learning. Training workbook for a Pune coaching class documenting student formulas; also a London analyst checklist (£).

Purpose

Display the formula inside another cell as readable text — perfect for teaching, audits and documentation sheets.

Return value

A text string of the formula (including the leading =), or #N/A if the cell has no formula.

Syntax

FORMULATEXT(reference)

Arguments

ArgumentRequired?Description
referenceRequiredA single cell that contains a formula (or may be empty / constant).

Version

Excel 2013 and later, Microsoft 365. LibreOffice Calc: support varies — check your version.

How to use — Why → What → How

Why: Teachers and auditors need to see the formula without clicking every cell. FORMULATEXT is a teaching and audit tool: put the answer in column B and FORMULATEXT in column C so Pune coaching students (or a London analyst checklist) can read the working. Con...

What: FORMULATEXT returns the formula in reference as text. Read the arguments table carefully; each one changes the answer in a specific way.

How — numbered steps:

  1. Click the documentation cell.
  2. Type =FORMULATEXT(.
  3. Click the cell that holds the formula.
  4. Press Enter.
  5. Optional: IFERROR with a (no formula) message.
  6. Compare your result with the Answers sheet only after you attempt it.
  7. Write one sentence in your own words explaining when you would use this function at work.

Ravindra Bagale's Tip

Friends, put answers in column B and =FORMULATEXT(B2) in column C for a live show-your-working sheet.

Ravindra Bagale's Tip

If the cell holds a typed number (not a formula), FORMULATEXT returns #N/A — wrap with IFERROR for clean docs.

Ravindra Bagale's Tip

Friends, after class open a blank sheet and rebuild one FORMULATEXT example without looking. That memory test beats re-reading the page.

Download practice file: practice-formulatext.xlsx (includes sheet About this data, practice sheets, and Answers).

Worked examples

1) Show a SUM formula

B2 contains =SUM(A2:A4).

AB
10=SUM(A2:A4)
20
30
Formula: =FORMULATEXT(B2)

Result: =SUM(A2:A4)

What it means: Returns the formula text from B2.

2) No formula → #N/A

B2 is the number 50 typed directly.

B
50
Formula: =FORMULATEXT(B2)

Result: #N/A

What it means: Constants are not formulas.

3) Friendly docs with IFERROR

Same constant case for a handout.

B
50
Formula: =IFERROR(FORMULATEXT(B2), "(no formula)")

Result: (no formula)

What it means: IFERROR hides #N/A for printable sheets.

4) XLOOKUP lesson cell

Student cell holds an XLOOKUP.

B
=XLOOKUP("A1", A2:A5, B2:B5)
Formula: =FORMULATEXT(B2)

Result: =XLOOKUP("A1", A2:A5, B2:B5)

What it means: Documents exactly what the student wrote.

5) London checklist (£)

Audit column next to a GBP total formula.

Total (£)Show formula
=B2*1.2
Formula: =FORMULATEXT(A2)

Result: =B2*1.2

What it means: Auditors see the markup formula as text.

6) Classroom recap

Quick check before you close the FORMULATEXT lesson.

AB
10=SUM(A2:A4)
20
30
Formula: =FORMULATEXT(B2)

Result: =SUM(A2:A4)

What it means: Same pattern as example 1 — rebuild it from memory on the Practice sheet, then check Answers.

About this data. Small demo rows for learning. Real sheets are longer; the same formula pattern scales when columns are clean.

Common errors and fixes

#N/A — Reference has no formula (constant or blank). Fix: IFERROR for clean handouts.
#REF! — Reference is invalid. Fix: Point at a real cell.

Notes and tips

  • FORMULATEXT may not see formulas in a closed workbook.
  • Protected sheets may block formula visibility depending on rights.
  • Show Formulas mode (Ctrl+`) toggles the whole sheet.
  • FORMULATEXT is a teaching and audit tool: put the answer in column B and FORMULATEXT in column C so Pune coaching students (or a London analyst checklist) can read the working. Constants return #N/A — wrap with IFERROR for handouts. It does not replace Show Formulas mode for whole-sheet review, but it is perfect for printable answer keys beside live results.
  • FORMULATEXT documents one cell. Show Formulas mode toggles the entire sheet. Use both in class.
  • Fictional sample data only — practice amounts and names are made for learning.
  • After you finish the 10 tasks, re-read the errors table once; most class mistakes are listed there.
  • Keep ranges locked with absolute references when you copy formulas down a column of inputs.
  • Say the business question in plain words before you type the equals sign — it prevents wrong arguments.

In real work

FORMULATEXT is a teaching and audit tool: put the answer in column B and FORMULATEXT in column C so Pune coaching students (or a London analyst checklist) can read the working. Constants return #N/A — wrap with IFERROR for handouts. It does not replace Show Formulas mode for whole-sheet review, but it is perfect for printable answer keys beside live results.

How it compares

FORMULATEXT documents one cell. Show Formulas mode toggles the entire sheet. Use both in class.

Interview corner

What does FORMULATEXT return?
The formula as text, including the equals sign.
Typed number with no equals?
#N/A
Since which Excel version on Windows?
Excel 2013 and later.

INDIRECT, ISERROR, IFERROR, NA

Practice tasks (10)

  1. Task 1. Show the formula in B2 as text in C2.
    Hint: FORMULATEXT(B2).
  2. Task 2. Point at a constant and record #N/A.
    Hint: type a number without =.
  3. Task 3. Wrap with IFERROR for (no formula).
    Hint: second argument is text.
  4. Task 4. Document a student XLOOKUP with FORMULATEXT.
    Hint: click their formula cell.
  5. Task 5. Add an audit column for the £ total.
    Hint: next to the GBP formula.
  6. Task 6. Compare Show Formulas mode vs FORMULATEXT.
    Hint: whole sheet vs one cell.
  7. Task 7. Explain one limitation (closed workbook / protection).
    Hint: Notes section.
  8. Task 8. Build a 5-row answer key with live FORMULATEXT.
    Hint: fill down.
  9. Task 9. What happens on a blank cell? Write it down.
    Hint: try A1 empty.
  10. Task 10. Bonus: conditional format C column when it starts with =.
    Hint: formula text detection.

Quick quiz

Q1. FORMULATEXT returns:
Q2. A cell with typed 50 (no =) yields:
Q3. Good classroom pattern:
Q4. Minimum Excel version (Windows) commonly cited:
Q5. To hide #N/A in handouts use:

Answers: Q1=The formula as text, Q2=#N/A, Q3=Answer column + FORMULATEXT beside it, Q4=Excel 2013, Q5=IFERROR (check after you try).

Revision card

Standalone card (no tip or photo strip). QR opens this lesson. Download the PNG and revise offline.

Revision card: FORMULATEXT
FORMULATEXT revision card