Iserr Function in Excel

This guide treats “iserr function in excel” the way busy spreadsheet users actually want it: answer first, then the reasoning. It is written for Excel but calls out every place Google Sheets differs, and the platform toggle at the top switches all shortcuts between Windows and Mac so nothing here assumes the keyboard you are not on.

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. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “iserr function in excel”. Start on a copy or a tiny sample, keep the affected formula visible, and compare the result with the tool above before you touch the real workbook. 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. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.

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

Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Treat “iserr function in excel” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.

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.