Category: FUNCTION | Updated: 2026-11-22

How to Use the ISERROR Function in Google Sheets | Detect All Error Values

ISERROR Function

The ISERROR function checks whether a specified value or formula result is an error value (#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, #ERROR!, etc.), returning TRUE if it is an error and FALSE if it is a valid value.

Syntax

=ISERROR(value)
  • value: Specifies the value, formula, or cell reference you want to check for errors.

Practical Table Example

This example applies the ISERROR function to various errors and normal values.

Cell A (Formula / Value) B (Cell Display) C (Formula) D (Result)
1 =10/0 #DIV/0! =ISERROR(A1) TRUE
2 =VLOOKUP("X", A1:B2, 2, FALSE) #N/A =ISERROR(A2) TRUE
3 ="abc"+1 #VALUE! =ISERROR(A3) TRUE
4 100 100 =ISERROR(A4) FALSE
5 =IF(ISERROR(A1), "Cannot Calculate", A1) Cannot Calculate - -

Common Errors and Precautions

  • Errors entered as text return FALSE: If '#N/A is entered directly into a cell as text, it is not an actual error value, so FALSE is returned.
  • Using with Conditional Formatting: If you want to automatically highlight cells that have errors, set =ISERROR(A1) as a custom formula in Conditional Formatting.

Frequently Asked Questions

Q. What is the difference between the ISERROR and ISERR functions?

A. ISERROR evaluates 'all errors' including #N/A as TRUE, whereas ISERR evaluates 'all errors except #N/A' as TRUE.

Q. Which is more convenient for displaying an alternative value on error: ISERROR or IFERROR?

A. If you simply want to display another value when an error occurs, 'IFERROR(formula, value_if_error)' is simpler and more convenient because you don't have to write the formula twice.