How to Find Errors in Excel: A Step-by-Step Guide
In this article
To search for errors in Excel, use the Go To Special dialog (Ctrl+G > Special > Formulas > Errors) to select all error cells at once, or use the Find and Replace dialog (Ctrl+F) and search for specific error values like #DIV/0! or #N/A. Excel also provides the Error Checking tool under the Formulas tab to walk through errors one by one. This guide covers these methods plus tips to prevent errors.
What You'll Need
- Microsoft Excel (any modern version; labels may differ slightly by version, platform, or region)
- A spreadsheet that may contain errors (formulas returning #N/A, #VALUE!, #DIV/0!, etc.)
- Basic familiarity with Excel's ribbon and dialog boxes
Step-by-Step
- Open your workbook and go to the sheet you want to check.
- Select the range to search (or click any cell to search the entire sheet). To search the whole workbook, you'll need to repeat per sheet or use a macro (not covered here).
- Use Go To Special to find all errors at once: Press
Ctrl+G(orF5) to open the Go To dialog, click Special…, choose Formulas and check Errors only, then click OK. All error cells in the selected range are now highlighted. You can then apply a fill color to mark them. - Alternatively, use Find to search for specific error values: Press
Ctrl+F, type an error like#N/Ain the Find what box, and click Find All or Find Next. This is useful when you know which error type you're hunting. - Use the Error Checking tool for a guided review: Go to the Formulas tab and click Error Checking (in the Formula Auditing group). Excel will jump to each error and explain it. Use Next to step through. Note: this checks only the active worksheet, not the whole workbook.
- Trace precedents/dependents if needed: With an error cell selected, use Trace Precedents (Formulas tab) to see which cells feed into the formula. This helps identify the source of the error.
- Fix the error by editing the formula or the referenced cells. Common fixes: correct a typo in a function name, ensure divisor cells are not zero, or handle missing values with
IFERROR. - Repeat the search to confirm no errors remain. You can also use Conditional Formatting > New Rule > Format only cells that contain > Errors to highlight errors automatically as you work.
Common Mistakes
- Searching only the active sheet: Go To Special and Error Checking work on the current selection or sheet. Errors on other sheets are missed unless you repeat the process.
- Forgetting hidden rows/columns: Go To Special includes hidden cells if they are in the selection; Find may skip them depending on settings. Unhide or expand selection to be safe.
- Confusing error values with text: A cell containing the text "#N/A" (as a string) is not a formula error. Go To Special > Errors only finds formula errors.
- Overlooking errors in merged cells: Merged cells can behave unpredictably with Go To Special; unmerge temporarily if needed.
- Assuming Error Checking covers everything: It ignores errors in cells not calculated (e.g., manual calculation mode) and some error types like those from external links.
Tips
- Use IFERROR to handle errors gracefully: Wrap formulas like
=IFERROR(A1/B1, "")to display a blank or custom message instead of an error code. - Enable background error checking: In Excel Options > Formulas, ensure "Enable background error checking" is on. This flags errors with a green triangle as you type.
- Create a error-checking macro: If you need to scan many sheets, record a macro that loops through sheets and runs Go To Special. (Advanced; test on a copy first.)
- Use Conditional Formatting for visual cues: Set a rule to color all error cells red so they stand out even when not selected.
- Check calculation mode: If formulas aren't recalculating, errors may not appear. Press
F9to recalculate or set calculation to Automatic in Formulas > Calculation Options.
Troubleshooting
- Go To Special finds no errors but you see them: Ensure the correct range is selected and that the errors are formula errors, not text. Also check if the sheet is protected—some features are disabled.
- Error Checking button is grayed out: The sheet may be protected or the workbook may be shared. Unprotect via Review > Unprotect Sheet (password may be required).
- Find doesn't locate #N/A: In Find options, ensure "Look in" is set to Formulas (not Values) and "Match entire cell contents" is off. Also check that you're searching the right sheet.
- Errors persist after fixing: The workbook may be in manual calculation mode. Press
F9to recalculate, or set calculation to Automatic. - Conditional formatting not highlighting errors: Verify the rule applies to the correct range and uses the formula
=ISERROR(A1)(adjust cell reference).
Frequently Asked Questions
Can I find errors across all sheets at once?
Not with a single built-in command. Go To Special and Error Checking work per sheet. You can use a macro to loop through sheets, or repeat the steps for each sheet.
What's the difference between Go To Special > Errors and Error Checking?
Go To Special selects all error cells in a range at once, while Error Checking walks you through each error with an explanation and options to fix or ignore.
Why does Excel show a green triangle in the corner of a cell?
That indicates a potential error or inconsistency, such as a number stored as text or a formula that omits adjacent cells. You can hover over the icon to see details and choose to ignore or fix.
How do I search for a specific error like #VALUE!?
Use Ctrl+F, type #VALUE! in the Find what box, and click Find All. Ensure "Look in" is set to Formulas.
Can I prevent errors from appearing in the first place?
Yes. Use data validation to restrict inputs, IFERROR to handle expected errors, and consistent formula auditing. Also enable background error checking in Options.
Does Error Checking work in Excel for the web?
Excel for the web has limited features; Error Checking may not be available. Use Go To Special or Find as alternatives, or open the file in desktop Excel.