ISERROR function
Returns TRUE if a value is any kind of error (#N/A, #DIV/0!, #VALUE!, #REF! and so on), otherwise FALSE.
Available in All versions of Excel, including Microsoft 365 and Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
ISERROR(value)| Argument | What it means | |
|---|---|---|
value | Required | The value, cell reference or formula to check. |
Returns: TRUE if value is an error of any type; FALSE otherwise.
How ISERROR works
ISERROR answers a simple yes/no question: does this cell or formula result in an error? It recognises every error type — #N/A, #DIV/0!, #VALUE!, #REF!, #NAME?, #NUM!, #NULL! and the newer ones such as #SPILL! and #CALC!. Use it to flag problem rows, to count errors in a report before sending it, or inside conditional formatting to highlight them.
Before Excel 2007 the standard way to hide errors was =IF(ISERROR(formula), alternative, formula). That still works, but IFERROR does the same job in one step and calculates the formula only once, so today ISERROR is mostly used when you need the TRUE/FALSE itself rather than a replacement value.
If you only expect "not found" errors from lookups, prefer ISNA; it lets other errors — which usually point to genuine mistakes — stay visible.
Examples
1Will this division fail?
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Revenue | Units | |
| 2 | Desk | 4200 | 14 | |
| 3 | Chair | 0 | 0 | TRUE |
Result: TRUE
Dividing by 0 units produces #DIV/0!, so ISERROR returns TRUE. For the desk row it returns FALSE.
2Is this product code new?
| A | B | C | |
|---|---|---|---|
| 1 | Code | ||
| 2 | P-201 | New product | |
| 3 | P-202 | ||
| 4 | P-203 | ||
| 5 | P-204 |
Result: New product
MATCH cannot find P-205 and returns #N/A; ISERROR detects that, and IF shows New product.
3Count errors before sending a report
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Store | Margin | ||
| 2 | Athens | 0.18 | 2 | |
| 3 | Berlin | #N/A | ||
| 4 | Cairo | 0.22 | ||
| 5 | Dublin | #DIV/0! | ||
| 6 | Essen | 0.09 |
Result: 2
ISERROR is TRUE for Berlin (#N/A) and Dublin (#DIV/0!). The double minus turns TRUE into 1 and SUMPRODUCT adds them: 2 problems to fix.
Tips
- For replacing errors with a value, IFERROR is shorter and faster than
IF(ISERROR(...)). - Conditional formatting rule
=ISERROR(B2)with a red fill makes every error in a table stand out. - Many functions such as SUM fail if their range contains an error; AGGREGATE with option 6 can total a range while skipping errors.
Questions
What is the difference between ISERROR, ISERR and ISNA?
ISERROR is TRUE for every error. ISERR is TRUE for every error except #N/A. ISNA is TRUE only for #N/A.
Should I use ISERROR or IFERROR?
Use IFERROR when you want to replace an error with something else. Use ISERROR when you need a TRUE/FALSE, for example to count errors or in a conditional-formatting rule.
Google Sheets
ISERROR also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
ISERROR in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | JE.CHYBHODN |
| Danish | ER.FEJL |
| Dutch | ISFOUT |
| Finnish | ONVIRHE |
| French | ESTERREUR |
| German | ISTFEHLER |
| Hungarian | HIBÁS |
| Italian | VAL.ERRORE |
| Norwegian (Bokmål) | ERFEIL |
| Polish | CZY.BŁĄD |
| Portuguese (Brazil) | ÉERROS |
| Portuguese (Portugal) | É.ERRO |
| Russian | ЕОШИБКА |
| Spanish | ESERROR |
| Swedish | ÄRFEL |
| Turkish | EHATALIYSA |