
What does the ISERR function do?
This function checks a cell and returns TRUE if the cell contains an error value.
It will return FALSE if the cell content calculates without error, or if it's the #N/A error.
ISERR function syntax
The ISERR function has one argument:
=ISERR(cell_or_calculation)
Other Information functions
ISLOGICAL, ISERROR, ISBLANK, IFERROR, ISEVEN, ISNA, ISNONTEXT, ISODD, ISREF, ISTEXT, ISNUMBER, INFO, NA, COUNTBLANK, ERROR.TYPE, N, CELL
ISERR formula examples
The ISERR function is particularly useful when you want to detect all error types except #N/A. This makes it different from ISERROR, which catches all errors including #N/A.
Check if a calculation returns any error except #N/A:
=ISERR(A1/B1)
Combine with IF to handle errors gracefully:
=IF(ISERR(A1/B1), "Calculation error", A1/B1)
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | A | B | A/B | ISERR(A/B) | IF + ISERR |
| 2 | 10 | 4 | 2.5=A2/B2 | FALSE=ISERR(A2/B2) | 2.5=IF(ISERR(A2/B2),"Calculation error",A2/B2) |
| 3 | 10 | 0 | #DIV/0!=A3/B3 | TRUE=ISERR(A3/B3) | Calculation error=IF(ISERR(A3/B3),"Calculation error",A3/B3) |
| 4 | text | 2 | #VALUE!=A4/B4 | TRUE=ISERR(A4/B4) | Calculation error=IF(ISERR(A4/B4),"Calculation error",A4/B4) |
| 5 | 8 | #DIV/0!=A5/B5 | TRUE=ISERR(A5/B5) | Calculation error=IF(ISERR(A5/B5),"Calculation error",A5/B5) |
Division by zero, by an empty cell and text in the calculation all give errors that ISERR catches. IFERROR(A2/B2,"Calculation error") is the shorter way to write the same.
Error types detected by ISERR
ISERR returns TRUE for these error types:
- #VALUE!
- #REF!
- #DIV/0!
- #NUM!
- #NAME?
- #NULL!
ISERR returns FALSE for:
- #N/A (use ISNA for this)
- Any non-error value
- Empty cells
- Text, numbers, dates, logical values
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Value | ISERR | ISERROR | ISNA |
| 2 | #N/A=NA() | FALSE=ISERR(A2) | TRUE=ISERROR(A2) | TRUE=ISNA(A2) |
| 3 | #REF!=INDEX(A1:A2,5) | TRUE=ISERR(A3) | TRUE=ISERROR(A3) | FALSE=ISNA(A3) |
| 4 | #NAME?=FOO() | TRUE=ISERR(A4) | TRUE=ISERROR(A4) | FALSE=ISNA(A4) |
| 5 | #NUM!=SQRT(-1) | TRUE=ISERR(A5) | TRUE=ISERROR(A5) | FALSE=ISNA(A5) |
| 6 | (empty) | FALSE=ISERR(A6) | FALSE=ISERROR(A6) | FALSE=ISNA(A6) |
| 7 | 42 | FALSE=ISERR(A7) | FALSE=ISERROR(A7) | FALSE=ISNA(A7) |
ISERR is TRUE for every error except #N/A. Empty cells and ordinary values are FALSE for all three functions.
When to use ISERR vs ISERROR
Use ISERR when you want to handle all errors except #N/A separately. This is common in lookup scenarios where #N/A means "value not found" and should be treated differently from actual calculation errors.
Example distinguishing #N/A from other errors:
=IF(ISNA(VLOOKUP(A1, B:C, 2, 0)), "Not found",
IF(ISERR(VLOOKUP(A1, B:C, 2, 0)), "Calculation error",
VLOOKUP(A1, B:C, 2, 0)))
Other Information functions in Excel
ISNA, ISERROR, ISNUMBER, ISTEXT, ISBLANK, ISLOGICAL, ISREF, IFERROR, NA, INFO, CELL
Like the article? Help its author! Buy !SEMTools, it has lots of useful instruments to process text data.