Sub topic 8
Error-Checking Rules and What the Green Triangles Mean
This chapter assumes you can write formulas with relative and absolute references, and that you know the layout of a three-statement model. You should also have met Excel's error values (#REF!, #DIV/0!, #N/A) in the previous chapter. Here you will learn how Excel flags suspect cells in the background, what each flag means, and which flags you should act on in a financial model.
What the green triangle is
Excel runs a set of background rules against every cell. When a cell breaks a rule, Excel draws a small green triangle in its top-left corner. The triangle is a hint, not an error. The formula still calculates, and the value may be correct.
Select a flagged cell and a warning icon (a yellow diamond with an exclamation mark) appears beside it. Its menu shows the rule that fired and the options for dealing with it.
The menu usually offers these options:
- A description of the problem, such as "Inconsistent Formula".
- A fix suggestion, such as "Copy Formula from Left".
- Help on this error.
- Show Calculation Steps, which opens Evaluate Formula.
- Ignore Error, which removes the flag from that cell.
- Edit in Formula Bar.
- Error Checking Options, which opens the settings.
Ignoring a flag does not fix anything. It only hides the warning, so use it only after you have decided the formula is correct.
Where the rules live
Open File > Options > Formulas. The Error Checking section has one master checkbox, "Enable background error checking", and a color picker for the triangle. Below it, under Error checking rules, is a list of individual checkboxes. All are on by default except "Formulas referring to empty cells".
Turn the master checkbox off and every triangle disappears. A model that has been reviewed with it off tells you nothing about its quality. Check this setting first when you open an unfamiliar workbook.
To re-show flags you previously ignored, click Reset Ignored Errors in the same dialog.
The rules and what they mean for a model
| Rule | What triggers it | Typical meaning in a model |
|---|---|---|
| Cells containing formulas that result in an error | Any cell showing `#REF!`, `#DIV/0!`, `#N/A` and so on | A real failure. Always investigate. |
| Inconsistent calculated column formula in tables | A formula differs from the rest of an Excel Table column | An override in a table column. |
| Cells containing years represented as 2 digits | A text date like "24" | Ambiguous dates. Rare in models. |
| Numbers formatted as text or preceded by an apostrophe | A number stored as text | A value that formulas will ignore or mis-handle. |
| Formulas inconsistent with other formulas in the region | A formula differs from its neighbors in the same row or column | A broken pattern or a hardcode. High value in a model. |
| Formulas which omit cells in a region | A range such as `SUM(C5:C9)` stops short of adjacent numbers | A total that misses a new row. |
| Unlocked cells containing formulas | A formula in a cell that is unlocked | A protection gap. |
| Formulas referring to empty cells | A formula points at a blank cell | Possibly a missing input. Off by default. |
| Data entered in a table is invalid | A value fails data validation | A broken input control. |
| Misleading number formats | A format that hides the sign or meaning of the value | Display that disagrees with the value. |
The two rules that matter most in a financial model are "Formulas inconsistent with other formulas in the region" and "Numbers formatted as text". The next sections cover them.
Inconsistent formula
Excel compares a formula with the formulas next to it. It compares them in R1C1 form, which is the relative pattern of the formula and not its literal address. If the cells on both sides share a pattern and the middle cell does not, it gets a triangle.
Consider a revenue row where each period grows from the prior one:
=D10*(1+D$6)Copied across, this reads the same way in every column. Now suppose someone types over F10 with =E10*1.05. The cell uses a different pattern, so Excel flags F10. The flag points at a hardcoded growth rate that no longer follows the assumptions row.
Excel will not always flag the cell. It needs neighbors that agree with each other. These cases get missed:
- The inconsistent cell is at the edge of the row, such as the first forecast column.
- Two adjacent cells have the same wrong formula, so each looks consistent with one neighbor.
- A formula is replaced by a constant. A constant is not a formula, so this rule does not compare it.
- Columns alternate between two patterns, such as quarterly and annual totals.
Because of these gaps, do not treat a clean sheet as proof of consistency. Use the hardcode checks from the earlier chapter to cover constants, and use FORMULATEXT to compare patterns yourself:
=FORMULATEXT(E20)Place it in an adjacent helper row and fill it across. Reading the text of each formula shows differences the triangles skip.
Number stored as text
A number stored as text looks like a number but is a string. It is left-aligned by default and ignored by SUM. A typical cause is data pasted from a PDF, a web page, or a system export. The cell gets a triangle with the message "Number Stored as Text".
The damage is quiet. Consider this layout:
| Cell | Content | Stored as |
|---|---|---|
| C5 | 1200 | number |
| C6 | 800 | text |
| C7 | 500 | number |
=SUM(C5:C7) returns 1700, not 2500. No error value appears. The total is simply wrong. Compare with =C5+C6+C7, which returns 2500 because the + operator converts the text. Two formulas on the same cells disagree, which is itself a way to find the problem.
To find text numbers across a range, use a count of cells that are text yet look numeric:
=SUMPRODUCT(--ISTEXT(C5:C80), --ISNUMBER(--C5:C80))The --C5:C80 part tries to convert each cell to a number. Non-numeric labels produce an error inside ISNUMBER, which returns FALSE, so only convertible text is counted. Place the formula somewhere visible and expect 0. This is an addition to the formulas in the topic's code set, and it is safe to run on any range of mixed labels and numbers.
To fix a flagged range, select it, open the warning menu on one flagged cell, and choose Convert to Number. Check that the result is not a date or an ID with leading zeros, since converting those changes their meaning.
Formulas that omit cells
This rule fires when a range stops short of adjacent numeric cells. For example, =SUM(C5:C9) with a number in C10 directly below gets flagged.
In a model this usually means a row was added at the bottom of a block and the total did not extend. The rule only compares against directly adjacent cells. A total that skips a number two rows away will not be flagged. Inserting rows inside a range does extend it. Adding below the last row does not.
Check totals on every block you did not build yourself by selecting the total cell and pressing F2. Excel outlines the referenced range in color. Look at whether the colored outline covers everything it should.
Rules for working with the flags
Before changing a rule or ignoring a flag, decide how you will treat each triangle. A workable approach:
- Do not fix cells as you find them. First log each one: sheet, cell, rule, and your judgment.
- Group flags by rule. Many triangles of one kind usually share one cause, such as a single bad paste.
- Fix the cause, then recheck. Do not click through "Copy Formula from Left" on each cell without reading it. The suggestion assumes the left neighbor is the correct one.
- Ignore a flag only when the formula is intended, and write the reason in the log.
Intended exceptions do exist. A first forecast column often differs from later ones because it links to the last actual period. Excel flags it, and the flag is correct about the difference but wrong about the cause. A good model marks such columns visibly, for example with a shaded header and a note, so a reviewer can tell intent from error.
Walking through the whole workbook
Triangles are visible only when you scroll past them. To list every flagged cell, use the Error Checking command on the Formulas tab. It opens a dialog that steps through each flagged cell in the active sheet, shows the rule, and offers Previous and Next. It checks only the active sheet, so repeat for each sheet.
The following diagram shows the sequence for a single cell.
Common mistakes
- Reading "no triangles" as "no problems". The rules miss constants, edge cells, and logic errors.
- Turning off a rule because it produces noise. Fix or ignore the individual cells instead.
- Using Ignore Error across a whole row to clear the sheet before sharing it.
- Accepting "Copy Formula from Left" when the left cell is the one that is wrong.
- Reviewing only one sheet. Error Checking runs per active sheet.
Summary
Green triangles come from background rules that you can view and configure in File > Options > Formulas. The "inconsistent formula" and "number stored as text" rules matter most for financial models, but both have blind spots. Treat triangles as leads to log and investigate, and never as a complete test.
Exercise
In row 15, columns D to N each contain =C15*(1+D$8) copied across, except H15, which contains the typed value 4350. Will the inconsistent formula rule flag H15, and what two checks from this tutorial would catch it?
Show answer
No. The rule compares formulas with neighboring formulas, and a typed constant is not a formula, so H15 gets no triangle. Two checks would catch it: =SUMPRODUCT(--NOT(ISFORMULA(D15:N15))), which returns 1 for this row, and Go To Special with Constants selected, which highlights H15. Reading FORMULATEXT across the row would also reveal that H15 has no formula.
Exercise
C5 holds the number 1200, C6 holds the text "800", and C7 holds the number 500. What does =SUM(C5:C7) return, what does =C5+C6+C7 return, and what does the difference tell you?
Show answer
SUM returns 1700 because it ignores the text in C6. C5+C6+C7 returns 2500 because the + operator converts the text to a number. The disagreement shows that C6 is a number stored as text. Convert it with the Convert to Number option on the warning menu.
Exercise
A model has 40 green triangles on one sheet, all in the same row. What should you do before clicking "Copy Formula from Left" on each one?
Show answer
Log the cells, then find the shared cause, such as a single paste or an overwritten range. Check whether the left neighbor is itself correct, since the suggested fix copies it. Fix the cause once, recheck with Error Checking, and ignore a flag only if the formula is intended and the reason is logged.