ISFORMULA Function

Checks whether a cell contains a formula.

Category

Information

Available in

Excel 2013+, Microsoft 365

Returns

TRUE or FALSE

Want to practice ISFORMULA in a real spreadsheet? Open a blank sheet in our Practice Sandbox and try it with live data, with the AI Excel tutor beside you. No Excel needed — just a free account.Try it free in the Sandbox

Overview

ISFORMULA returns TRUE when the referenced cell holds a formula and FALSE when it holds a typed value — whatever the result looks like.

Use it to audit a model: highlight hard-coded numbers that someone typed over a formula.

Syntax

=ISFORMULA(reference) Explain

Arguments

ArgumentRequired?What it does
referenceYesA cell reference, or a name that refers to a cell.

Examples

Example 1 — Find the typed-over total

Every Total should be Qty × Price. Row 3 was overwritten with a typed 90.

E2fx=ISFORMULA(D2)
ABCDE
1ItemQtyPriceTotalFormula?
2Paper46.526TRUE
3Toner24890FALSE
4Pens101.212TRUE
=ISFORMULA(D2) Explain

Common mistakes

  • Passing text instead of a reference. =ISFORMULA("D2") gives #VALUE!. Point at the cell itself, or use INDIRECT("D2").

Notes

  • Highlight every hard-coded number in a model: Conditional Formatting › Use a formula: =AND(ISNUMBER(D2),NOT(ISFORMULA(D2))).
  • FORMULATEXT shows the formula itself as text.
  • Related functions: FORMULATEXT, ISBLANK, CELL.
Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.