Contact

ISERROR Function in Microsoft Excel: Examples, Pitfalls & Compatibility

Information Beginner Microsoft Excel

ISERROR in Microsoft Excel: test for an actual error value of any type. Includes worked examples and application-specific cautions.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: Use ISERROR in Microsoft Excel to test for an actual error value of any type. The official ISERROR reference is the source for the function definition and platform-specific rules described below.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016, Excel Web App.
  • Checked: October 14, 2026; official ISERROR reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and arguments

=ISERROR(value)

value (required): A value, formula result or reference to the single cell being classified.

Examples use English function names, comma argument separators and decimal points. Adapt formula separators to your workbook settings, not punctuation inside quoted text.

When to use it

Use ISERROR for a broad calculation-quality flag. It is deliberately wider than a missing-lookup check, so TRUE should lead to investigation rather than automatically being treated as a missing record.

Three worked examples

Each example is independent. Where input cells are listed, enter those values first; otherwise the formula is self-contained. Expected outputs are independently checked calculations or documented error expectations, not captured results from Microsoft Excel.

Example 1: Flag invalid division

=ISERROR(1/0)

Expected result: TRUE.

The division produces an actual error, so the broad error predicate is TRUE.

Example 2: Include a missing-value error

=ISERROR(NA())

Expected result: TRUE.

NA() deliberately creates #N/A, which is included in ISERROR’s scope.

Example 3: Do not mistake a label for an error

=ISERROR("#N/A")

Expected result: FALSE.

The quotes create ordinary text. It is not the error value created by NA().

Advanced example: preserve a raw quality flag beside a display label

In H2:H6 enter =8, =0, =NA(), =1/0, ="#N/A". Fill =ISERROR(H2) down in I2:I6. Expected flags are FALSE, FALSE, TRUE, TRUE, FALSE. The two actual errors are flagged; normal zero and quoted text are not.

In J2 fill down =IF(I2,1,0). Expected numeric indicators are 0, 0, 1, 1, 0, totaling 2. This makes the error count visible without trying to sum the raw values that include errors.

A separate presentation column can use =IFERROR(H2,"Review"), producing 8, 0, Review, Review, #N/A text. Reapplying ISERROR to those presentation cells would find no actual error in this example. That is why the original quality flags should be retained: replacing an error label changes what a later error test can see, rather than repairing the underlying calculation.

The final text value may still be unacceptable to a numeric workflow. Use a separate ISNUMBER check for that requirement. This example deliberately does not generalize the classic error list to every newer Excel data type or deployment.

Put it to work safely

Create a diagnostic column beside the calculation being checked and fill down one row at a time. Test a known numeric result, a deliberate #N/A, a division error and a quoted error label before using the flag in a larger report. Do not overwrite the underlying calculation while investigating. Once the desired replacement policy is clear, IFERROR or IFNA may provide a more direct presentation formula.

Common mistakes and fixes

Quoted error text is not detected as an error. A string such as “#N/A” is ordinary text. An actual error value is a different data type.

A FALSE result is treated as proof the input is valid. A predicate only tests its named error condition. Text, blanks and out-of-range business values can still require separate validation.

A useful diagnostic disappears. Do not replace every error with zero without considering the meaning. Preserve enough information to distinguish missing data from a broken calculation.

Microsoft Excel-specific notes

Microsoft’s grouped IS-function reference distinguishes ISERR, ISERROR and ISNA and explains that the tests do not convert quoted text into the corresponding value type. Keep the actual lookup result separate from a display label such as “not found”. See the vendor reference for the current definition.

Excel and Google Sheets comparison

Both official references distinguish actual errors from normal text and distinguish the scope of these three predicates. The classic error cases here do not certify the treatment of every newer, application-specific error or a complex array formula.

Compare the ISERROR guide for Google Sheets and its official documentation. Having a guide in both libraries establishes two documented references, not a certificate of identical behavior across releases, locales or file conversions.

Evidence and testing scope

Editorial verification: Official references retrieved on 2026-10-12. The three worked cases are included in this release’s reproducible Python checking suite. It checks the stated arithmetic, calendar or text model and the expected documented error classification; it is not the Microsoft Excel calculation engine. No native application run, UI screenshot, maximum-size benchmark or cross-version certification is claimed. Review the editorial testing standards before relying on a formula in a critical workbook.

October 14, 2026 review scope

The complete guide and its original examples were reviewed against the direct Microsoft ISERROR reference. Added classifications and arithmetic are independently modeled; no native Excel run or complete coercion/evaluation-order matrix is claimed. The availability block retains the separately reviewed product list and introduction evidence.