ISERROR
Check if a cell contains any Excel error value with the ISERROR function.
Spreadsheet editor
Spreadsheet editor
Syntax
=ISERROR(value)
Returns: Boolean Arguments
| Argument | Required | Description |
|---|---|---|
| value | Yes | The value or expression to check for an error. |
About
Use ISERROR when you need to detect formula errors before they break your calculations. It's helpful for building error-resistant formulas, cleaning up imported data, or identifying problem areas in large spreadsheets. Combine it with IF to handle errors gracefully, or use IFERROR as a shortcut when you want to replace errors with specific values.
ISERROR catches all error types, making it comprehensive but sometimes too broad. If you only care about #N/A errors, try IFNA instead. For error types other than #N/A, consider ISERR.
Examples
Detecting different error types
Spreadsheet editor
Empty cells aren't errors
Spreadsheet editor
Counting valid calculations for data quality
Spreadsheet editor
Watch out for
ISERROR catches all errors, even ones you want to see
Using ISERROR to hide all errors might mask legitimate issues like broken cell references (#REF!) or incorrect formulas (#NAME?). You lose visibility into what's actually wrong.
→ Consider using IFERROR with specific replacement values, or use ISERR to exclude #N/A errors (which are often expected). Check error types with ERROR.TYPE when you need more control.
Duplicating complex formulas makes updates difficult
Writing =IF(ISERROR(VLOOKUP(...)), 'Error', VLOOKUP(...)) repeats the VLOOKUP twice. If you need to update the formula later, you have to change it in two places.
→ Use IFERROR instead: =IFERROR(VLOOKUP(...), 'Error'). It's cleaner and only calculates once. Or use a helper column to store the VLOOKUP result first.
ISERROR returns FALSE for empty cells
Empty cells aren't errors, so ISERROR returns FALSE for them. If you're trying to detect both errors and blanks, ISERROR alone won't work.
→ Combine with ISBLANK: =OR(ISERROR(A1), ISBLANK(A1)). Or check if the cell equals empty text: =OR(ISERROR(A1), A1="").