Site icon Best Excel Tutorial

How to Use ISFORMULA Function in Excel

The ISFORMULA function checks if a cell contains a formula. It returns TRUE if there is a formula. It returns FALSE if the cell has text, numbers, or is blank.

What ISFORMULA Does

Syntax

=ISFORMULA(reference)

reference is the cell you want to check (like A1).

Basic Examples

Cell Content Formula Result
=TODAY() =ISFORMULA(A1) TRUE
7 =ISFORMULA(A1) FALSE
Hello =ISFORMULA(A1) FALSE
#DIV/0! =ISFORMULA(A1) TRUE

Using ISFORMULA with IF

Tip: Use ISFORMULA with IF to show custom messages.

Show Formula or Value Message

=IF(ISFORMULA(A1), "Has Formula", "No Formula")

Show the Actual Formula

=IF(ISFORMULA(A1), FORMULATEXT(A1), "No Formula")

Count Cells with Formulas

Count Formulas in a Range

=SUMPRODUCT(--ISFORMULA(A1:A10))

This counts how many cells in A1:A10 have formulas.

Highlight Formula Cells

Using Conditional Formatting

  1. Select your range (like A1:D10)
  2. Go to HomeConditional Formatting
  3. Choose New Rule
  4. Select Use a formula
  5. Enter: =ISFORMULA($A1)
  6. Choose formatting (yellow fill, etc.)
  7. Click OK

All cells with formulas will be highlighted.

When to Use ISFORMULA

Quick Comparison

Function What it Checks Returns
ISFORMULA Has formula? TRUE/FALSE
ISERROR Has error? TRUE/FALSE
FORMULATEXT Formula text Formula string
Best Practice: Use ISFORMULA to quickly audit complex spreadsheets.

Summary

ISFORMULA is simple but very useful. It tells you exactly which cells have formulas. Use it to audit spreadsheets, create documentation, or apply special formatting to calculation cells. Combine it with IF and FORMULATEXT for powerful formula management.

Exit mobile version