Excel ISERROR Formula

“excel iserror formula” comes up constantly, so this page leads with the exact answer, and only then explains the detail. Everything works in Excel on Windows and Mac and maps almost one-to-one to Google Sheets. Copy the answer above and get back to work, or read on to turn a one-off fix into something you never have to look up again.

Exact answer

In Excel: use =ISERROR(value) — it returns TRUE for any error at all, which makes it powerful and easy to misuse.

On this page8

Syntax

=ISERROR(value)

Arguments

Argumentrequired / optionalDescription
valuerequiredThe value or formula to test for any error type.

Related functions

ISNAIFERRORAGGREGATE
Annotated stepsExcel
1

Identify which error you actually expect — that decides whether ISNA, ISERR or ISERROR is right.

2

Type =ISERROR( and enter the formula or cell to test.

3

Wrap it in IF to supply a fallback, or in SUMPRODUCT to count errors across a range.

4

Prefer IFERROR when you only need a replacement value; it is shorter and evaluates once.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

What this does

ISERROR returns TRUE for every error type: #N/A, #VALUE!, #REF!, #DIV/0!, #NAME?, #NUM! and #NULL!. Its close relative ISERR does the same but excludes #N/A, which is often what you actually want. The warning that belongs on this function is that blanket error suppression hides real bugs — a formula wrapped in ISERROR keeps working after someone deletes the column it referenced, silently returning a fallback instead of the #REF! that would have told you. Prefer the narrower test whenever you can name the error you expect. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “excel iserror formula” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected formula shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

Counting how many rows in a calculated column are broken: =SUMPRODUCT(--ISERROR(D2:D500)) gives a data-quality figure worth watching. Distinguishing the two cases explicitly: =IF(ISNA(lookup), "not found", IF(ISERROR(lookup), "formula error", lookup)) handles each on its own terms. ISERROR is the broadest error test, and knowing when NOT to use it is what keeps a workbook debuggable. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.

In Google Sheets

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. If you take one thing from this page on “excel iserror formula”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.

Common mistakes

  • Blanket-wrapping every formula, which hides #REF! and #NAME? faults that should be fixed rather than suppressed.
  • Using ISERROR where ISNA was meant, so a legitimate "not found" and a genuine bug get the same treatment.
  • Writing =IF(ISERROR(x), fallback, x), which evaluates x twice — IFERROR does it once.

Frequently asked questions

What is the difference between ISERROR and ISERR?

ISERR excludes #N/A; ISERROR includes it. When #N/A means "not found" and is expected, ISERR is usually the better test.

Should I use ISERROR or IFERROR?

IFERROR when you just want a replacement value — it is shorter and only evaluates the formula once. ISERROR when you need TRUE/FALSE for further logic.

Is it bad practice to suppress errors?

Suppressing an expected one is fine. Suppressing all of them means a broken reference looks identical to a normal result, which is how bugs survive.