Sub topic 3
Tracing precedents and dependents with arrows
This chapter assumes you can write formulas with relative and absolute references, you know the layout of a three-statement model, and you understand that every formula has precedents (the cells it reads) and dependents (the cells that read it). Here you will turn that idea into a visual tool: the tracing arrows on the Formulas tab.
What the arrows show
Excel can draw arrows on the sheet to show which cells feed a formula and which formulas use a cell. The commands are in Formulas > Formula Auditing.
- Trace Precedents draws arrows from the cells a formula reads to the formula cell. It answers the question "where does this number come from?"
- Trace Dependents draws arrows from the selected cell to every formula that reads it. It answers "what breaks if I change this?"
- Remove Arrows clears the arrows. The drop-down also offers Remove Precedent Arrows and Remove Dependent Arrows, which clear only one direction.
Each click of a trace command adds one level. The first click of Trace Precedents shows the direct precedents. A second click on the same cell shows the precedents of those cells, and so on back toward the inputs. The keyboard shortcuts are Ctrl+[ to jump to direct precedents and Ctrl+] to jump to direct dependents. Those two shortcuts select cells rather than draw arrows, so they are covered with the other navigation tools in the next chapter.
Reading the arrow styles
Excel uses different arrow styles, and each one tells you something.
| What you see | Meaning |
|---|---|
| Solid blue arrow with a dot at the source | A cell on the same sheet feeds the formula. The dot marks the precedent. |
| Blue arrow to a bordered range | The formula reads a range, and the border shows its extent. |
| Dashed black arrow with a small worksheet icon | The precedent is on another sheet or in another workbook. |
| Red arrow | The precedent is returning an error that flows into the selected cell. This appears with Trace Error. |
A dashed arrow ending in a small table icon is a link to another sheet. Double-clicking the dashed line opens the Go To dialog listing the off-sheet references. Pick one and click OK to jump to it. This is the quickest way to follow a revenue build on an assumptions sheet into the income statement.
Worked example: tracing a net income figure
Suppose the income statement has a net income cell in F40. Follow it back to its inputs.
- Select
F40. - Choose Trace Precedents. Arrows appear from pre-tax income and tax expense, for example
F36andF38. - Click Trace Precedents again. Now the arrows from
F36show EBIT and interest, and the arrows fromF38show pre-tax income and a tax rate cell, perhaps on the assumptions sheet (a dashed arrow). - Keep clicking until the arrows stop growing. The cells at the far end with no further precedents are your inputs: growth rates, margins, a tax rate.
Now reverse the process. Select the tax rate cell on the assumptions sheet and choose Trace Dependents. You should see arrows to the tax expense row, one per forecast year. If one forecast year is missing an arrow, that year's tax formula is not reading the shared assumption. It may use a typed-in rate, which is a hardcode, or it may point to a different cell.
Expected shapes in a healthy model
Arrows are most useful when you know what a correct pattern looks like. In a well-built forecast, formulas copied across a row should have the same shape. Select a cell in column G and trace its precedents, then do the same in column H. The arrows should look identical, just shifted one column to the right.
Compare these healthy and unhealthy patterns:
- Healthy. A row of revenue formulas each point back to the prior column's revenue and to one growth-rate cell in the same column.
- Suspicious. One column's arrow points to a different row, or to a cell far from its neighbours. This often means someone overwrote a formula or inserted a row and fixed one cell by hand.
- Suspicious. A cell that has no precedent arrows at all in the middle of a calculation block. It is a hardcode, a constant typed over a formula.
- Suspicious. An input that has no dependent arrows. An unused assumption can mean a formula was disconnected and the model no longer responds to that driver.
You can pair the arrows with FORMULATEXT to see the formula in text form next to the number:
=FORMULATEXT(E20)Put this in a helper column beside the row you are auditing. Compare the text across columns. R1C1-style differences are easier to spot if you also switch reference style, but the arrows give you the same answer visually.
Tracing a range and a whole row
Trace Precedents works on one active cell. If the cell reads a range, such as =SUM(D10:D15), Excel draws a single arrow from a bordered box around that range. Check the border: a total that should include six lines but boxes only five is a classic error from inserting a row at the edge of a range.
To audit a block quickly, work in this order:
- Pick the first forecast column and trace precedents for the key line items.
- Move one column right and repeat for the same items.
- Note any cell whose arrow pattern differs.
For a long model this is slow, so use arrows for investigation and use the systematic checks later in the tutorial (Go To Special, ISFORMULA counts, integrity checks) for coverage.
Following the chain through the three statements
The arrows are especially useful for the links between statements. Take the cash balance on the balance sheet. Trace its precedents and you should arrive at the ending cash of the cash flow statement. Trace precedents of that cell and you should see net income, working capital changes and capital expenditure. Trace the net income and you are back on the income statement.
A correct model forms a loop of links: net income flows to cash flow, cash flow to the balance sheet, and retained earnings back from net income. When the arrows do not show one of these links, the balance sheet probably will not balance either. The check formula that detects this is:
=ROUND(Total_Assets - (Total_Liabilities + Total_Equity), 2)When this returns a non-zero value, use the arrows to follow each side of the balance sheet back until you find the line that is missing or duplicated.
Common problems with the arrows
Several situations confuse learners the first time.
- No arrow appears and Excel beeps or shows a message. Excel says "The Trace Precedents command requires that the active cell contain a formula which refers to valid cells." The cell may hold a constant, which means it has no precedents. That is useful information in itself.
- The dashed arrow goes nowhere visible. The precedent is on another sheet or workbook. Double-click the arrow to open the Go To list.
- The arrows disappear after you edit. Excel clears them when the structure changes. Draw them again.
- Arrows do not show a dependency you expect. Tracing only sees direct cell references. Formulas built with
INDIRECT,OFFSET, external links or some named-range tricks hide their true precedents. A later chapter covers these limits. - Hidden rows, columns or sheets. Arrows still point to hidden cells, but you cannot see the destination. Unhide before you conclude that a trace is wrong.
- Too many arrows. On a dense sheet, tracing three or four levels produces a tangle. Trace one level at a time, write down what you find, and use Remove Arrows between passes.
Dependents as an impact check
Before you change an assumption or delete a row, trace its dependents. This is the model-review equivalent of checking what calls a function before you edit it. If you plan to remove a legacy input, and Trace Dependents shows even one live formula using it, you have found something to resolve first. Likewise, an input with dependents on only one statement, when it should drive two, hints at a missing link.
Exercise
A tax rate cell on the Assumptions sheet should drive tax expense in five forecast columns. You select it and click Trace Dependents once, and you see arrows to only four of the five columns. Name two likely explanations and one way to confirm each.
Show answer
Likely explanations: (1) the fifth column's tax formula contains a typed-in rate, so it is a hardcode. Confirm by selecting that cell and checking the formula bar, or by looking at it with Trace Precedents, which will show no arrow back to the assumption. (2) The fifth column's formula points to a different cell, such as a neighbouring row or an old rate. Confirm by selecting that cell, using Trace Precedents, and seeing where the arrow lands, or compare it with the adjacent column using FORMULATEXT.
Exercise
You trace precedents of a total and the box drawn around the range covers D10:D14, but the schedule has lines in D10:D15. What probably happened, and how do you fix it?
Show answer
A row was inserted at the end of the range or the total formula was not extended, so the sum range stops one row short. Fix the formula so it covers D10:D15, then trace precedents again to check the box. Also look at the same total in other columns, since the same mistake is likely repeated.