0Pricing
Excel Formulas Academy · Lesson

Detecting Problems With ISERROR

Test whether a cell contains an error before acting on it.

Detecting Problems With ISERROR is a free Excel Formulas Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Testing for Errors

Sometimes you do not want to replace an error, you want to ask whether one exists and then decide what to do.

The ISERROR function does exactly that. It looks at a cell or formula and returns TRUE if the result is an error and FALSE if it is fine.

This lets you build your own custom handling, count errors, or flag problem rows. In this lesson you will learn ISERROR and its relatives.

The ISERROR Syntax

ISERROR takes a single argument, the value or formula to test:

=ISERROR(value)

It returns the logical value TRUE when the value is any error, and FALSE otherwise. It never shows the error itself, only a clean true or false answer.

On its own that is just information. Its real power comes when you pair it with IF.

=ISERROR(A2/B2)

ISERROR With IF

Combine ISERROR with IF to build fully custom handling. The IF tests for an error, then chooses what to show in each case.

Here, if the division errors, the formula returns "Check data". If not, it returns the real result. This is the manual equivalent of IFERROR, but you control both branches.

The pattern is =IF(ISERROR(formula), do_this, else_show_formula).

=IF(ISERROR(A2/B2), "Check data", A2/B2)

The IS-Error Family

ISERROR has close relatives that test for specific errors:

  • ISERR is TRUE for any error except #N/A.
  • ISNA is TRUE only for the #N/A error.
  • ISERROR is TRUE for all errors including #N/A.

Choosing the right one lets you respond to exactly the situation you care about, much like the difference between IFERROR and IFNA.

Using ISNA Specifically

When you only care about missing lookups, ISNA is the precise test. It returns TRUE only for #N/A.

This recreates IFNA behavior in older spreadsheets, or lets you take a custom action when a lookup misses, such as writing to a different column.

Here the formula reports whether a customer was found at all.

=IF(ISNA(VLOOKUP(A2,Data!A:B,2,FALSE)), "New customer", "Existing")

Counting Errors in a Range

ISERROR is useful for auditing. To count how many cells in a column contain errors, you can combine it with SUMPRODUCT.

Because ISERROR returns TRUE or FALSE, the double negative -- turns those into 1s and 0s, and SUMPRODUCT adds them up.

The result tells you how many error cells exist, a quick health check for a large data set.

=SUMPRODUCT(--ISERROR(C2:C100))

Flagging Problem Rows

You can use ISERROR to add a clear warning column next to your data. Each row checks its own calculation and posts a flag if something is wrong.

Here, any row whose total errors shows a warning symbol, while clean rows stay blank. Scanning the flag column instantly reveals trouble spots.

This is far friendlier than hunting through scattered #DIV/0! codes by eye.

=IF(ISERROR(D2), "!", "")

ISERROR Versus IFERROR

It helps to see how these relate:

  • IFERROR(x, y) is a shortcut that runs x once and returns y on error.
  • IF(ISERROR(x), y, x) does the same but evaluates x twice, which can be slower on heavy formulas.

So for simple replacement, IFERROR is usually better. Use ISERROR when you need to test rather than replace, or take a different action than just substituting a value.

Conditional Formatting With ISERROR

ISERROR also powers conditional formatting. You can write a rule that highlights any cell whose formula returns an error.

Set the rule formula to =ISERROR(A1) applied across your range, and color matching cells red.

Now errors light up visually the moment they appear, without changing the cell values at all. It is a clean, non-destructive way to monitor a sheet.

=ISERROR(A1)

Routing Errors to a Log

Because ISERROR returns a clean TRUE or FALSE, you can use it to route problem values somewhere useful. Pair it with IF to copy only the failing keys into a review column.

Here, if the lookup for a key errors, the formula writes the key itself into the cell; otherwise it leaves the cell blank.

Filtering that column then gives you a ready-made list of every key that needs fixing, turning error handling into an action plan.

=IF(ISERROR(VLOOKUP(A2,Data!A:B,2,FALSE)), A2, "")

Choosing the Right Tool

Here is the full toolkit for error handling:

  • IFERROR replace any error with a fallback.
  • IFNA replace only #N/A from lookups.
  • ISERROR / ISNA / ISERR test for errors to drive custom logic, counts, or formatting.

Pick replacement functions when you just want a clean display, and the IS-family when you need to decide or measure based on errors.

Quick Check

Test your understanding of the error-testing functions.

Recap: ISERROR

You completed the error-handling toolkit:

  • =ISERROR(value) returns TRUE for any error, FALSE otherwise.
  • ISNA tests only for #N/A; ISERR tests for all errors except #N/A.
  • Pair with IF for custom handling, with SUMPRODUCT to count errors, or with conditional formatting to highlight them.
  • Use IFERROR or IFNA to simply replace; use the IS-family to test and decide.

Your spreadsheets can now stay clean, accurate, and professional.

Frequently asked questions

Is the “Detecting Problems With ISERROR” lesson free?

Yes — the full text of “Detecting Problems With ISERROR” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.

What will I learn in “Detecting Problems With ISERROR”?

Test whether a cell contains an error before acting on it. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Excel Formulas Academy?

No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Detecting Problems With ISERROR” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Excel Formulas Academy lesson?

Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Understanding Error Types
  2. Catching Errors With IFERROR
  3. Targeting Missing Lookups With IFNA
  4. Detecting Problems With ISERROR
← Back to Excel Formulas Academy