sodcalculator

10 Tech How-To

Excel Highlight Error Cells: How to Find Them Fast

Guide 10-21236 · Updated · Step by step

To highlight error cells in Excel, use Conditional Formatting with a formula like =ISERROR(A1) applied to your data range—this instantly colors any cell containing an error. Alternatively, use the built-in Go To Special feature (F5 > Special > Formulas > Errors) to select all error cells, then apply a manual fill color. This guide explains both methods, how to customize them, and how to handle common pitfalls.

Why Highlight Errors?

Errors in Excel—like #DIV/0!, #N/A, #VALUE!, #REF!, #NAME?, #NUM!, and #NULL!—often break calculations or make reports look unprofessional. Manually scanning a large dataset for these tiny red/green markers is slow and error-prone. Highlighting them with a fill color makes them instantly visible, so you can fix or address them quickly. This is especially useful in dashboards, financial models, or any sheet where data comes from external sources and may contain unexpected blanks or bad inputs.

Method 1: Conditional Formatting (Dynamic)

Conditional Formatting is the best approach because it automatically updates as new errors appear or get fixed. Here’s how to set it up:

  1. Select the range where you want to check for errors (e.g., A1:F100). If you want the entire sheet, click the corner triangle above row 1 and left of column A.
  2. Go to Home > Conditional Formatting > New Rule.
  3. Choose Use a formula to determine which cells to format.
  4. In the formula box, enter =ISERROR(A1) (adjust to the top-left cell of your selection).
  5. Click Format, go to the Fill tab, pick a color (e.g., light red), and click OK.
  6. Click OK again to apply the rule.

Now any cell in the range that contains any error type gets the fill. The rule uses the relative reference A1, so it automatically applies to every cell in the selection.

Method 2: Go To Special (One-Time Selection)

If you just need a quick snapshot, use Go To Special:

  1. Press F5 (or Ctrl+G) to open the Go To dialog.
  2. Click Special.
  3. Select Formulas and check only Errors (uncheck Numbers, Text, Logicals).
  4. Click OK. Excel selects all error cells in the current sheet.
  5. Apply a fill color from the Home tab (e.g., the paint bucket icon).

This method is static—it doesn’t update if new errors appear later. It’s great for a quick audit before sending a report.

How to Choose the Right Method

Use Conditional Formatting when:

  • Your data changes frequently (e.g., live formulas, imported data).
  • You want errors to stand out permanently without extra steps.
  • You need to apply the rule to many sheets or new rows automatically.

Use Go To Special when:

  • You only need to see errors once, and you’ll fix them immediately.
  • You want to copy or delete all error cells at once (after selection, press Delete).
  • You’re working on a one-off cleanup and don’t want to leave formatting behind.

Common Problems and Fixes

Problem: The conditional formatting rule doesn’t highlight anything.
Fix: Check that the formula reference matches the top-left cell of your selected range. If you selected B2:D10, the formula must start with B2. Also ensure the range is correct—if you applied the rule to the whole column, the formula should reference the first data row.

Problem: The rule highlights cells that aren’t errors.
Fix: Your formula might be using ISERROR on a range that includes text or blanks. That’s fine—ISERROR returns FALSE for non-errors. If you see highlights on blank cells, check that your range doesn’t accidentally include cells with formulas that return empty strings (""). Those are not errors, but if you used ISERROR, they won’t be highlighted. If you want to highlight only specific error types, use ISNA for #N/A, or ISERR for all errors except #N/A.

Problem: The highlight disappears after I fix the error.
Fix: That’s expected—conditional formatting responds to the cell’s current value. Once the formula returns a valid result, the highlight goes away automatically.

Advanced: Highlight Only Specific Error Types

Sometimes you only care about certain errors. For example, #N/A often appears in VLOOKUP when a lookup value is missing—you might want to treat it differently from a division by zero. Use these formulas in Conditional Formatting:

  • =ISNA(A1) – highlights only #N/A.
  • =ISERR(A1) – highlights all errors except #N/A.
  • =AND(ISERROR(A1), NOT(ISNA(A1))) – same as ISERR.
  • =IFERROR(A1,"")="" – highlights cells where IFERROR would return a blank (i.e., any error), but this is less direct.

You can also combine with other conditions, like highlighting only errors in a specific column or only if the cell is not blank.

Alternatives to Manual Highlighting

If you don’t want to use conditional formatting, consider:

  • Excel’s built-in error checking: Go to Formulas > Error Checking (under Formula Auditing). It cycles through errors one by one, but doesn’t color them.
  • IFERROR wrapper: Wrap your formulas with =IFERROR(original_formula, "") to display a blank or a custom message instead of an error. This hides errors rather than highlighting them, but is useful for clean reports.
  • Power Query: When importing data, use the “Replace Errors” transformation to set errors to a default value. This is a permanent fix before loading data into the sheet.

Frequently Asked Questions

Q: Can I highlight errors across multiple sheets at once?
A: Conditional Formatting is per-sheet. You can apply the same rule to each sheet manually, or group sheets (Ctrl+click tabs) and apply the rule—but grouping only works for changes that affect all selected sheets, and conditional formatting rules are not shared across sheets. You’ll need to repeat the steps for each sheet.

Q: How do I remove the highlighting later?
A: For Conditional Formatting, go to Home > Conditional Formatting > Clear Rules > Clear Rules from Selected Cells (or the entire sheet). For Go To Special, just change the fill color back to “No Fill” after selecting the cells.

Q: Does this work in Google Sheets?
A: Yes, the same logic applies. In Google Sheets, use Format > Conditional formatting, select “Custom formula is”, and enter =ISERROR(A1). The Go To Special feature doesn’t exist, but you can use the FILTER function or an add-on to find errors.

Q: Why does my VLOOKUP return #N/A and how do I highlight it?
A: #N/A means the lookup value wasn’t found. Use =ISNA(A1) in Conditional Formatting to highlight only those. To fix, check for extra spaces, number vs. text mismatches, or use IFERROR to display a custom message.

Q: Can I highlight errors in a pivot table?
A: Pivot tables rarely show errors, but if they do (e.g., from calculated fields), you can apply conditional formatting to the pivot’s data range. Select the pivot cells, then use the same formula-based rule. Note that the reference must be to a cell inside the pivot, and the rule may not extend if the pivot refreshes and expands—you may need to reapply it.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →