ISERROR Function

Checks whether a value is any error.

Category

Information

Available in

All versions, Microsoft 365

Returns

TRUE or FALSE

Want to practice ISERROR 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

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

=ISERROR(value) Explain

Arguments

ArgumentRequired?What it does
valueYesThe 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.

D2fx=ISERROR(C2)
ABCD
1UnitsCostPer unitError?
24050012.5FALSE
30250#DIV/0!TRUE
42530012FALSE
=ISERROR(C2) Explain

Example 2 — Count the errors in a report

A quick health check before you send a workbook on.

=SUMPRODUCT(--ISERROR(C2:C200)) Explain

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.
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.