Sub topic 2
Precedents and dependents: the calculation chain
This chapter assumes you can write formulas with cell references, you know the difference between absolute and relative references, and you have seen a three-statement model (income statement, balance sheet, cash flow). Later chapters cover the tools that display the chain. This one covers the concept those tools rely on.
Why the chain matters for an audit
Every formula in a model depends on other cells. Excel keeps track of those links internally. It uses them to decide what to recalculate when you change a value. When you audit a model, you follow the same links to answer three questions:
- Where does this number come from?
- What else changes if this number changes?
- Is anything in the chain broken, missing, or typed in by hand?
Two terms describe the links.
- A precedent of a cell is any cell that the cell's formula reads, directly or through other cells.
- A dependent of a cell is any cell whose formula reads that cell, directly or through other cells.
The two terms describe the same link from opposite ends. If D10 contains =B10*C10, then B10 and C10 are precedents of D10, and D10 is a dependent of both B10 and C10.
Direct and indirect links
A link can be one step long or many steps long.
- A direct precedent is read by the formula itself.
- An indirect precedent is read by one of the cell's precedents, or by a precedent of that precedent, and so on.
- Dependents work the same way in the other direction.
Here is a small revenue build.
| Cell | Content | Meaning |
|---|---|---|
| B3 | 1,000 | Units sold (input) |
| B4 | 25 | Price per unit (input) |
| B5 | `=B3*B4` | Revenue |
| B6 | 0.40 | Cost of goods sold as a share of revenue (input) |
| B7 | `=B5*B6` | Cost of goods sold |
| B8 | `=B5-B7` | Gross profit |
The relationships in this table are:
B5has direct precedentsB3andB4.B8has direct precedentsB5andB7. It has indirect precedentsB3,B4, andB6, because they feedB5andB7.B3has direct dependentB5. It has indirect dependentsB7andB8.
Changing B3 therefore changes B5, B7, and B8. It does not change B4 or B6, because they are inputs and have no precedents.
Read the diagram left to right to see dependents. Read it right to left to see precedents. The chain is a directed graph, which means each link has a direction.
How the chain maps to model structure
A well-built model separates inputs, calculations, and outputs. The calculation chain should run in one direction: inputs feed calculations, and calculations feed outputs.
- Inputs have no precedents. They are typed values such as growth rates, prices, and opening balances.
- Calculations have both precedents and dependents. They sit in the middle of the chain.
- Outputs have precedents but few or no dependents. Examples are a valuation result or a summary table.
This gives you a quick test for each cell type.
| Cell type | Expected precedents | Expected dependents | Audit concern |
|---|---|---|---|
| Input | None | At least one | An input with no dependents is unused. |
| Calculation | At least one | At least one | A calculation with no dependents may be a dead end. |
| Output | At least one | None or few | An output with no precedents is a hardcode. |
Two problems show up often.
- An orphan input. A value that nothing reads. The model author may have meant to link it and forgot, so the model ignores a change you make to it.
- A disguised input. A cell inside a calculation block that holds a constant instead of a formula. It has no precedents, but it looks like part of the calculation. Later chapters cover finding these.
Direction and flow across a three-statement model
In a three-statement model the chain crosses sheets and statements. A typical set of links looks like this:
- Assumptions feed the income statement (revenue, costs).
- Net income feeds the cash flow statement and retained earnings on the balance sheet.
- Working capital balances on the balance sheet feed the cash flow statement through changes in those balances.
- The ending cash balance from the cash flow statement feeds the cash line on the balance sheet.
Step 4 is why the model contains a loop in logic but not necessarily in formulas. The balance sheet depends on the cash flow statement, and the cash flow statement depends on balance sheet changes. This is fine as long as the cash flow statement reads the prior period's balance and the current period's other balances, not the current period's cash itself. Excel only complains when a cell ends up reading itself through the chain. A cell that does this is part of a circular reference, which a later chapter covers.
Same-sheet and cross-sheet links
Links can stay on one sheet or cross to another sheet or another workbook.
- A same-sheet reference looks like
=B3*B4. - A cross-sheet reference looks like
=Assumptions!C12*B4. - An external reference points to another file, for example
='[Budget.xlsx]Inputs'!C12.
Cross-sheet and external links are where auditors lose track of the chain. The precedent exists, but you cannot see it without switching sheets. Excel's tracing arrows show these links with a special icon, and a later chapter explains how to follow them.
Absolute and relative references in the chain
Copying a formula across columns changes the links it creates. This is the main way a chain is silently damaged.
Consider revenue growth in row 5 with the growth rate in $B$2.
=C5*(1+$B$2)Copied one column right, this becomes =D5*(1+$B$2). The prior-period reference moves, and the growth rate stays fixed. The result is that every column has the same precedent pattern, which is what you want.
Now suppose someone writes =C5*(1+B2) without the dollar signs. Copied to the right, it becomes =D5*(1+C2), and C2 is empty. The formula returns the wrong answer without any error value. The chain now includes a link to an empty cell, and the only way to spot it is to inspect the precedents.
A useful rule: across a row of a time series, every formula should have the same shape. The precedents should sit at the same relative positions in every column. When one column differs, either the author intended a change, such as a first-period opening balance, or there is a mistake.
You can display a formula as text to compare neighbors:
=FORMULATEXT(E20)Place this in an adjacent cell and copy it across. Differences in the displayed text show where the pattern breaks.
Reading the chain for a specific question
Use the direction of the question to pick the direction of the trace.
| Question | Trace direction | What you learn |
|---|---|---|
| Why is this number wrong? | Precedents | Which inputs and calculations produced it |
| What does changing this input affect? | Dependents | Every cell that moves |
| Is this input used at all? | Dependents | Whether the list is empty |
| Is this output built from formulas only? | Precedents | Whether any hardcode sits in the chain |
For a wrong number, work backward. Check each direct precedent, decide which one looks wrong, and repeat on that cell. You stop when you reach an input, an error, or a hardcode. This is the core audit move, and every later technique is a faster way to do it.
For an impact analysis, work forward. Before changing an assumption, list its dependents to see how far the change spreads. If a single price input reaches only revenue, that is a small change. If it reaches debt covenants and the valuation, you should test the result carefully.
Edge cases and gotchas
- Ranges count as precedents.
=SUM(C5:C15)makes every cell inC5:C15a precedent, including blank cells. Inserting a row inside the range extends it. Inserting a row just below the range does not, and the new row is silently left out of the total. - Whole-column references.
=SUM(C:C)makes the whole column a precedent. This also pulls in subtotals that sit in the same column, which causes double counting. - Named ranges.
=Revenue*Marginhides the cell locations behind names. The links are real, but you must look up where each name points. - Constants inside formulas.
=C5*1.05has one precedent,C5, and one embedded assumption,1.05, which does not appear in the chain at all. Embedded constants are invisible to tracing and are among the most common modeling flaws. - Dynamic references. Functions such as
INDIRECTandOFFSETbuild the target at calculation time. Excel cannot always show the link in advance. A later chapter covers this limit.
Putting the idea to work
A short routine for any cell you doubt:
- Select the cell and read its formula in the formula bar.
- List its direct precedents and note which are inputs, which are calculations, and which sit on other sheets.
- Check that each precedent has the expected units and period. A monthly growth rate in an annual formula is a common mismatch.
- Repeat for the precedent that looks suspect, until you reach an input or a defect.
- Ask what the dependents are, and decide whether the result is consistent with the places the number is used.
Summary
- A precedent feeds a cell. A dependent reads from a cell. Both can be direct or indirect.
- Inputs have no precedents, outputs have few or no dependents, and calculations have both.
- Copying formulas with the wrong absolute or relative references silently changes the chain.
- Ranges, names, embedded constants, and dynamic references each hide part of the chain in a different way.
- Trace backward to find the cause of a wrong number, and forward to measure the impact of a change.
Exercise
A model has B3 = 1000, B4 = 25, B5 = B3*B4, B6 = 0.40, B7 = B5*B6, and B8 = B5-B7. List the direct precedents of B8, the indirect precedents of B8, and all dependents of B4.
Show answer
The direct precedents of B8 are B5 and B7. The indirect precedents are B3, B4, and B6, because they feed B5 and B7. B4 has direct dependent B5 and indirect dependents B7 and B8, so its dependents are B5, B7, and B8.
Exercise
In row 12, a growth formula in column D reads =C12*(1+B2) with no dollar signs. The author copies it to column E. What formula appears in E12, which precedent is now wrong, and how would you fix the original formula?
Show answer
Column E contains =D12*(1+C2). The growth rate precedent has moved from B2 to C2, and C2 is probably empty, so the growth rate is read as 0 and no error appears. Fix the original formula to =C12*(1+$B$2) so the growth rate stays anchored while the prior-period reference moves.
Exercise
A cell on the balance sheet shows =SUM(D5:D14) as total current assets. A new asset line is inserted directly below row 14, and the total does not change. Why, and what is the audit consequence in terms of the chain?
Show answer
The range D5:D14 does not expand when a row is added just below its last row, so the new cell is not a precedent of the total. The chain is missing a link. The total leaves out the new asset, which also makes the balance sheet fail to balance unless another error offsets it. To fix it, extend the range to include the new row.