Spreadsheet Practice

ISERROR function

ISERROR returns TRUE for any error value, such as #N/A, #VALUE!, #REF!, #DIV/0! or #NAME?. Use it to count or flag rows where a calculation failed. When you just want a fallback value, IFERROR does the same job in fewer keystrokes.

Available in
Every current version
Category
Information functions
Returns
TRUE if the value is any error, FALSE otherwise.
Google Sheets
Available in Google Sheets with the same argument.

Syntax

=ISERROR(value)

ArgumentRequired?What it is
valueRequiredThe value, cell or formula to test.

Examples

Each result below is calculated from the sample sheet by our formula engine, the same one that grades the practice.

CellFormulaResultWhat it shows
E2=IF(ISERROR(B3/C3),"No visits",B3/C3)No visitsZero visits would give #DIV/0!, so the text shows instead
F2=SUMPRODUCT(--ISERROR(B2:B5/C2:C5))2Two rows fail: one divides by zero, one divides by text
G2=IF(ISERROR(MATCH("Uptown",A2:A5,0)),"Not a store","Listed")Not a storeMATCH returns #N/A for a missing name

Try it live

This is the sample sheet. Change any number or text, or edit a formula, and the results update.

Show the sample data as a table
StoreSalesVisitsAirport per visitRows that failUptown listed?
Downtown4200350No visits2Not a store
Airport18000
Mall3100n/a
Harbor2650290

Practice ISERROR

Graded instantly, then re-checked on changed data.

Price per unit, safely

In D2, use ISERROR to return the price per unit (B2 divided by C2), or 0 if the division fails. Fill down to D7.

Common mistakes

What you seeWhy, and how to fix it
It hides problems you needed to seeISERROR is TRUE for every error, including #REF! from a deleted column and #NAME? from a typo. Use ISNA when you only mean "not found".
The formula is written twiceIF(ISERROR(x),"",x) calculates x twice. IFERROR(x,"") gives the same result in one step.

Tips

  • Highlight broken rows with conditional formatting: =ISERROR($D2).

Questions

What is the difference between ISERROR and IFERROR?

ISERROR only tests and returns TRUE or FALSE. IFERROR returns the value, or a fallback if it's an error, so it's shorter for the common case.

What is the difference between ISERROR, ISERR and ISNA?

ISERROR catches every error. ISERR catches every error except #N/A. ISNA catches only #N/A.

How do I count errors in a range?

=SUMPRODUCT(--ISERROR(D2:D50)) counts every cell in D2:D50 that holds an error.

Last reviewed October 2026. Every example result on this page is calculated live by the Spreadsheet Practice formula engine.