SheetsLessons
Logical function

ISERROR function in Google Sheets

ISERROR returns TRUE if a value is any kind of error (#N/A, #DIV/0!, #VALUE!, #REF!, #NUM!…). It's useful for flagging problem rows without replacing the error.

Syntax

=ISERROR(value)
value
The value or formula to check.

Practice ISERROR

Task 1 of 1

Flag rows where dividing revenue by units would cause an error. Return TRUE/FALSE in C2.

C2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

ISERROR examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

AB
1ValueOther
2-7.453
312.54
4812
52.50
61234.5675
Assorted numbers
FormulaResultWhat it shows
=ISERROR(A5 / B5)TRUEDividing by zero is an error.
=ISERROR(A3 / B3)FALSEThis one is fine.
=ISERROR(SQRT(A2))TRUESquare root of a negative is #NUM!.

Tips and common mistakes

  • If you want to replace the error rather than flag it, use IFERROR.

Related functions