ISERROR Function
Checks whether a value is any error.
Category
Information
Available in
All versions, Microsoft 365
Returns
TRUE or FALSE
Overview
ISERROR returns TRUE for every Excel error: #N/A, #DIV/0!, #VALUE!, #REF!, #NAME?, #NUM!, #NULL!, #SPILL! and #CALC!.
Before IFERROR existed, IF(ISERROR(…)) was the standard way to hide errors. Today it's most useful for counting or highlighting error cells.
Syntax
Arguments
| Argument | Required? | What it does |
|---|---|---|
| value | Yes | The value, cell or formula to check. |
Examples
Example 1 — Spot every error in a column
Find the cost-per-unit cells that didn't calculate.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Units | Cost | Per unit | Error? |
| 2 | 40 | 500 | 12.5 | FALSE |
| 3 | 0 | 250 | #DIV/0! | TRUE |
| 4 | 25 | 300 | 12 | FALSE |
Example 2 — Count the errors in a report
A quick health check before you send a workbook on.
The double minus turns TRUE/FALSE into 1/0 so SUMPRODUCT can add them up.
Common mistakes
- Hiding errors too eagerly. If you only expect #N/A from a lookup, use ISNA or IFNA so real mistakes still show.
Notes
- To replace an error with something else, IFERROR is shorter than IF(ISERROR(x),…,x) and calculates x only once.
- Highlight error cells with Conditional Formatting › New Rule › Use a formula: =ISERROR(C2).
- Related functions: IFERROR, ISERR, ISNA, ERROR.TYPE.

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.