Function · Information
Excel ISERROR function
The Excel ISERROR function returns TRUE for any error, including #N/A and #DIV/0!. A normal number is FALSE. The test itself does not become the error.
Syntax =ISERROR(value)
=ISERROR(1/0)Arguments
| Name | Required | What to pass |
|---|---|---|
| value | Required | The value or formula to test. Every error type returns TRUE, including #N/A, #DIV/0!, #VALUE!, #REF!, #NAME?, #NUM!, and #GETTING_DATA. |
Examples
Division by zero
=ISERROR(1/0)Result TRUE
| A | B | |
|---|---|---|
| 1 | Value | #DIV/0! |
| 2 | Is error | TRUE |
ISERROR returns TRUE when the value is any error, and FALSE otherwise. 1/0 is #DIV/0!, so ISERROR is TRUE. The ISERROR cell shows TRUE. It does not show #DIV/0!. #N/A is an error too, so ISERROR of NA() is TRUE. ISNA is the test that accepts only #N/A and rejects #DIV/0!.
A number, text, TRUE, FALSE, and a blank are all FALSE. Use ISERROR when any failure should take the same path. Use ISNA when a lookup miss is acceptable and a broken formula should still show. IFERROR replaces the error. ISERROR only reports it.