What is the ISERR function?
=ISERR(value)ISERR tests whether a value is any error value except #N/A. It is most often used inside IF to treat values differently by kind.
Column A of the sheet mixes text, numbers, a blank, a logical value, errors and text that looks like a number; column B says what each is. Column C shows the same formula copied down.
ISERR lets you keep #N/A from lookups as a normal "not found" result while flagging real problems such as #DIV/0! or a broken #REF!. In conditional formatting it highlights only the cells with errors other than #N/A.
Arguments
- value
- The value or cell to test.
ISERR examples
Example 1. Division error
=ISERR(A7)#DIV/0!, so TRUE.
Example 2. #N/A is excluded
=ISERR(A6)#N/A, so FALSE.
Example 3. Result for each kind of value
=ISERR(A2)Only #N/A gives FALSE, which is the difference from ISERROR.
Value in column A =ISERR(A2) Apple FALSE 120 FALSE (blank) FALSE TRUE FALSE #N/A FALSE #DIV/0! TRUE "120" (text) FALSE Example 4. Count errors other than #N/A
=SUMPRODUCT(--ISERR(B2:B100))In a column of lookup results, counts the real errors and leaves out "not found".
Common mistakes
Mixing it up with ISERROR
To include #N/A, use ISERROR.
Text that looks like a number
According to Microsoft, IS functions test the value without converting it, so "120" stored as text is text, not a number.
Hiding everything with IFERROR
IFERROR replaces #N/A and every other error alike, so formula mistakes go unnoticed.
FAQ
- When would I exclude #N/A?
- When a lookup's "not found" (#N/A) is normal and you only want to catch other errors.
- How do I replace an error with another value?
- Use IFERROR.
- How do I replace only #N/A?
- Use IFNA. =IFNA(VLOOKUP(…), "None") leaves other errors visible.