Detect Formula Cells with ISFORMULA

Excel Formulas › Information

2013+ISFORMULA

Tell apart cells that compute from cells that hold typed-in values. ISFORMULA returns TRUE for any cell containing a formula — perfect for auditing a model or protecting calculated cells.


Quick formula: is cell A2 a formula?
=ISFORMULA(A2)
Returns TRUE if the cell contains a formula, FALSE if it’s a constant or blank.

Functions used (tap for the full reference guide):

The example

Flag which cells are calculated.

AB
1CellFormula?
2=A1*2TRUE
3100FALSE

The formula

The formula:

=ISFORMULA(A2) // TRUE for formula cells

How it works

How it works:

  1. ISFORMULA(cell) returns TRUE if the cell holds a formula, FALSE otherwise.
  2. Use it to audit a model — spot where someone has typed a hard-coded number over a formula.
  3. Pair it with conditional formatting to shade every calculated cell a different color.
  4. Available from Excel 2013 onward.

Highlight overwritten formulas: in a row that should be all formulas, a conditional-formatting rule of =NOT(ISFORMULA(A1)) flags any cell where a formula was replaced by a typed value — a common source of silent model errors.

Try it: interactive demo

Live demo

Type a cell value (start with = for a formula).

ISFORMULA:

Variations

Flag non-formulas

Catch hard-coded cells:

=NOT(ISFORMULA(A2))

Count formula cells

Audit a range:

=SUMPRODUCT(--ISFORMULA(B2:B100))

Show the formula text

As a string:

=FORMULATEXT(A2)

Pitfalls & errors

Needs a cell reference. ISFORMULA takes a reference, not a value — =ISFORMULA(5) errors.

2013+ only. Not available in Excel 2010 or earlier.

Blank = FALSE. Empty cells return FALSE, not an error.

Practice workbook

📊
Download the free Detect Formula Cells with ISFORMULA practice workbook
An ISFORMULA sheet with the flag, count, and FORMULATEXT variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I check if a cell contains a formula in Excel?
Use =ISFORMULA(cell). It returns TRUE for formula cells and FALSE for constants or blanks (Excel 2013+).
How do I find cells where a formula was overwritten?
Use a conditional-formatting rule =NOT(ISFORMULA(A1)) across a row that should be all formulas to flag typed-in values.
How do I see the actual formula as text?
Use =FORMULATEXT(cell), which returns the formula as a string.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Check if error · Highlight formula cells · ISNUMBER & ISTEXT

Function references: ISFORMULA