Sub topic 9
Reading the error indicator and the error menu
This chapter assumes you can enter and edit formulas, use cell references and ranges such as A2 and A2:A10, and use basic functions like SUM, AVERAGE and VLOOKUP. It also assumes you know the difference between numbers and text in a cell. Here you learn to read the visual signals Excel gives when a formula has a problem, and to use the error menu to decide what to do next.
What the indicator is
When Excel suspects a problem in a cell, it can draw a small green triangle in the cell's top-left corner. This is the error indicator. Select the cell and a small warning button with an exclamation mark appears beside it. Clicking that button opens the error menu.
The indicator is a hint, not a verdict. Excel applies a set of background rules to every formula. If a formula breaks a rule, the triangle appears. The formula may be fine, and the rule may simply not match your intent. The reverse also holds. A cell can show a real error value such as #DIV/0! with no triangle at all, or a wrong answer with no flag.
Two separate things are easy to confuse:
- An error value is the result displayed in the cell, such as #N/A or #REF!. It starts with a # sign.
- An error indicator is the green triangle. It flags a possible problem and can appear on cells that show a perfectly normal result.
A cell can have either, both or neither.
Reading the cell first
Before you open any menu, read what the cell shows. The error text names the category of problem. The rest of this tutorial covers each one in detail, but this table is enough to orient you.
| Cell shows | Usual meaning |
|---|---|
| #DIV/0! | The divisor is zero or blank |
| #VALUE! | A value has the wrong type, such as text where a number is needed |
| #REF! | A reference is invalid, often after deleting cells |
| #NAME? | Excel does not recognize a function or name |
| #N/A | A lookup found no match |
| #NUM! | A number is invalid for the operation |
| #NULL! | Two ranges do not intersect |
| #SPILL! | A dynamic array result is blocked |
Also notice a related display: a cell filled with ##### is not a formula error. The column is too narrow for the number, or a date or time value is negative. Widen the column, or check the formula that produced the negative time.
Opening the error menu
Select a cell with the green triangle, then click the warning button that appears next to it. The menu is context sensitive, so its entries depend on which rule fired. For a formula that returns an error value, you typically see:
- A first line that names the problem, for example "Invalid Name Error" or "Divide by Zero Error". It is a label and cannot be clicked.
- Help on this error opens the documentation page for that error.
- Show Calculation Steps opens Evaluate Formula, which steps through the formula one piece at a time. The next chapter covers it.
- Ignore Error removes the triangle for that cell without changing the formula.
- Edit in Formula Bar puts the cursor in the formula so you can fix it.
- Error Checking Options opens the settings dialog.
Some cells show other entries. For a number stored as text, the menu offers Convert to Number. For an inconsistent formula in a column, it offers Copy Formula from Above or Copy Formula from Left. For a formula that leaves out neighboring cells, it offers Update Formula to Include Cells.
The rules behind the triangle
Excel checks formulas against a list of rules. You can see and change them in File > Options > Formulas, under Error checking rules. The common ones are:
- Cells containing formulas that result in an error. This flags cells that show a value like #DIV/0! or #N/A.
- Inconsistent calculated column formula in tables. This flags a cell in a table column whose formula differs from the rest of the column.
- Cells containing years represented as 2 digits. This flags text dates such as "25" that Excel may read ambiguously.
- Numbers formatted as text or preceded by an apostrophe. This flags numbers stored as text. It is a common cause of #VALUE! and of lookups that fail.
- Formulas inconsistent with other formulas in the region. This flags a formula whose pattern differs from its neighbors.
- Formulas which omit cells in a region. This flags a SUM or similar formula that stops short of adjacent data.
- Unlocked cells containing formulas. This flags formulas that are not protected when the sheet is locked.
- Formulas referring to empty cells. This is off by default because it fires often.
- Data entered in a table is invalid. This flags values that break the table's validation.
The same dialog has an Enable background error checking box. Clearing it turns off all triangles. Doing so removes the hints but does not remove any real error values. The Reset Ignored Errors button restores triangles you dismissed earlier, which is useful when a workbook you inherited has many ignored errors.
A worked example
Suppose a sheet has these entries.
| Cell | Content |
|---|---|
| A2 | 120 |
| B2 | 0 |
| C2 | `=A2/B2` |
| A3 | 80 |
| B3 | `'40` (typed with a leading apostrophe) |
| C3 | `=A3+B3` |
Cell C2 shows #DIV/0! with a green triangle. The menu's first line reads "Divide by Zero Error". That confirms the diagnosis you could already make from the cell text. The fix is in the formula, because the divisor in B2 is zero:
=IF(B2=0,"",A2/B2)Cell B3 holds the text "40", not the number 40. It shows a green triangle, and its menu reads "Number Stored as Text" with Convert to Number available. C3 returns 120 here because the plus operator coerces numeric-looking text. If B3 held "n/a", the same formula would return #VALUE!. In that case the menu rule on B3 would not help, because "n/a" is not a number in disguise. You would need to clean the data or change the formula. The chapter on numbers stored as text covers this in detail.
Notice that the triangle on B3 appears on the data cell, not on the formula cell. The menu is reporting a problem with an input. Always look at the cell the triangle sits on, and also at the cells the formula refers to.
What the menu cannot tell you
The error menu is a quick check and not a full diagnosis. Keep these limits in mind.
- It only sees rule violations. A formula that sums the wrong range, uses the wrong column, or applies an incorrect rate produces a clean, wrong answer with no triangle.
- It names a symptom. "Invalid Name Error" tells you Excel cannot recognize a name. It does not tell you whether the cause is a typo, a missing add-in, or a named range that was deleted.
- It can flag correct formulas. A deliberately different formula in one row triggers the inconsistency rule. This is where Ignore Error is appropriate, and a short note in an adjacent cell keeps the reason visible.
- It does not flag every error value consistently. Depending on the rule settings and the cause, some cells with error values show no triangle.
For these reasons, treat the triangle as a prompt to look, not as proof of the cause.
A workflow for reading an error
Use the same order each time. It is fast and avoids mistakes.
- Select the cell and read the value it shows.
- Look at the formula in the formula bar.
- If a triangle is present, open the menu and read its first line.
- Check the input cells, including those on other sheets.
- Decide whether the fix belongs in the formula or in the data.
- If you cannot find the cause, move to the debugging tools from the next chapter.
Changing how Excel shows errors
You have some control over the display. Under File > Options > Formulas, you can change the Indicate errors using this color setting to make triangles easier to see. You can also scan a whole sheet at once. On the Formulas tab, choose Error Checking in the Formula Auditing group. Excel steps through each flagged cell and offers the same actions as the menu, along with Previous and Next buttons.
To find error values quickly, use Home > Find & Select > Go To Special, choose Formulas, and clear every box except Errors. Excel selects all cells whose formulas return an error value. This works even when no triangles are showing.
Exercise
A cell shows #N/A and has no green triangle. A teammate says there is no problem because Excel did not flag it. Is that reasoning sound, and how can you find all such cells on the sheet?
Show answer
No. The triangle is a hint from background rules and is not a test for errors. #N/A is a real error value, usually a lookup that found no match, and it can appear with no triangle. To find every error value on the sheet, use Home > Find & Select > Go To Special, choose Formulas, clear all boxes except Errors, and click OK. Excel selects each cell whose formula returns an error.
Exercise
Cell B3 shows the text "40" with a green triangle, and =A3+B3 returns the expected total. Should you choose Ignore Error? What would you choose instead, and why?
Show answer
Choose Convert to Number instead. The formula works only because the plus operator coerces numeric-looking text, and other functions or lookups may treat "40" as text and fail. Ignore Error hides the warning but leaves the data in the wrong type. Convert to Number fixes the cause.