Sub topic 14
Designing Models That Stay Balanced
This chapter assumes you can read the three statements, write spreadsheet formulas with cell references, and understand double entry. It also assumes you have met the balance check, roll-forwards and audit tools from earlier chapters. Here the focus changes from finding imbalances to making them hard to create.
Why prevention beats diagnosis
Every technique so far starts after the model breaks. You find the first bad period, read the size of the difference, and trace it to a cell. That works, but it costs time and relies on someone noticing the check.
Most imbalances come from a small set of causes:
- A cash flow item is linked with the wrong sign.
- A balance sheet line changes but its cash flow counterpart is missing.
- A number is typed over a formula.
- A formula is copied across a row but changes in one column.
- A plug hides a real error.
Each one has a structural defense. The aim is to build the model so that these errors either cannot happen or show up the moment they do.
Principle 1: One home for every number
Each input and each calculation should live in exactly one cell. Every other use points to that cell.
When the same figure is typed twice, one copy goes stale. For example, if capex appears on the cash flow statement as a typed value and again in the PP&E roll-forward as a typed value, changing one breaks the balance. If both link to a single capex line, a change flows everywhere.
Apply this as follows:
- Put assumptions on a dedicated inputs sheet or section.
- Calculate each schedule (PP&E, debt, working capital, equity) once, in its own block.
- Let the statements only link to schedules. They should not recalculate anything.
Principle 2: Build every statement from the schedules
Use the roll-forward pattern for every balance sheet account that moves:
Closing balance = Opening balance + Additions - ReductionsThe opening balance links to the prior period's closing balance. The additions and reductions link to the income statement or the cash flow statement. The balance sheet then reads the closing balance.
This pattern gives each balance sheet change a named source. If an account moves, the schedule shows why, and the cash flow statement picks up the same movement. This is what keeps the two statements consistent. You can see how cash flow is derived with the same logic:
- Cash flow from the change in inventory reads the difference in the inventory schedule's closing balances.
- Cash flow from capex reads the PP&E schedule's additions line.
- Cash flow from dividends reads the equity schedule's dividends line.
If the cash flow statement reads the same cell that the balance sheet reads, the two cannot disagree.
Principle 3: Make the cash flow statement derive from balance sheet movements
A common source of sign errors is building the cash flow statement by hand, item by item. A more reliable method is to define each line as a movement in a balance sheet account, with one rule for the sign:
| Account type | Balance increases | Cash effect |
|---|---|---|
| Asset (non-cash) | Inventory rises | Cash falls |
| Liability or equity | Debt rises | Cash rises |
So an asset line is prior - current, and a liability or equity line is current - prior. Write the rule once, then use the same pattern for every line of the same type. Reviewers can then check that a whole block follows the rule instead of checking each cell on its own.
Principle 4: Keep formulas consistent across a row
A row should hold one formula, copied across every period. If the first forecast column differs from the others, use a clear visual marker and a documented reason. Avoid "special" cells in the middle of a row.
Useful habits:
- Use a timeline with flags (such as
1for forecast,0for actual) so one formula handles both cases instead of two different formulas. - Use absolute references (
$C$5) only for true constants and keep the rest relative so copying works. - Use R1C1 view or a row consistency check to confirm that all cells in a row have the same relative formula.
- Keep input cells formatted differently from formula cells, for example blue font for inputs and black for formulas. A hardcode inside a black row then stands out.
Principle 5: Build checks in, not on
A model should check itself every time it recalculates. Place checks in a dedicated block and summarize them in one master flag at the top of the model.
A useful set of checks:
| Check | What it tests |
|---|---|
| Balance check | Total assets minus liabilities and equity is within tolerance |
| Cash tie-out | Cash flow ending cash equals balance sheet cash |
| Retained earnings roll-forward | Opening plus net income minus dividends equals closing |
| PP&E roll-forward | Opening plus capex minus depreciation equals closing |
| Debt roll-forward | Opening plus draws minus repayments equals closing |
| Sign checks | Items that must be non-negative (cash, PP&E, debt) are non-negative |
| Input checks | Percentages are between 0 and 1, dates run in order |
Each check returns 0 when it passes, so a single sum can combine them. Here is a master flag in Excel, with check rows 60 to 66:
Total checks failing:
=SUMPRODUCT(--(ABS(C60:C66)>=0.01))
Master flag (cover sheet):
=IF(SUM(C60:AZ66)=0,"ALL CHECKS OK","CHECK ERRORS")For the master flag to work, each check row must return a number that is zero when it passes. A check that returns text such as "OK" cannot be summed this way, so keep a numeric difference row and a separate text flag row, as in the balance check you built earlier.
Show the master flag on every sheet, near the top, in a conspicuous format. A model whose users must scroll to find the check is a model where the check gets ignored.
Principle 6: Never plug
As covered earlier, a plug forces the balance sheet to balance by adding a balancing figure, and it hides the error that created the gap. Prevention means removing the temptation:
- Cash on the balance sheet must come from the cash flow statement and from nowhere else.
- No formula should reference the balance check row.
- If the check fails, the fix goes to the cause, and the check row stays untouched.
Search the workbook for any formula that refers to the difference row. There should be none apart from the flag and master check.
Principle 7: Control circularity
Interest on average balances creates a loop: interest affects net income, net income affects cash, cash affects the debt balance, and the debt balance affects interest. This is a legitimate design, but it is a frequent source of corrupted results.
Protect the model with these habits:
- Add a circularity switch input. When it is
0, interest uses the opening balance and the loop is broken. When it is1, interest uses the average balance. - Keep the switch visible on the inputs sheet and mention it in the checks block.
- If errors such as
#REF!or#VALUE!enter the loop, they repeat forever. Set the switch to0, fix the error, then set it back to1. - Enable iterative calculation deliberately and set a low maximum change, such as
0.001, so results converge.
An interest formula that uses the switch looks like this:
Interest expense:
=Rate * IF(Circ_Switch=1, AVERAGE(Debt_Open, Debt_Close), Debt_Open)Principle 8: Add a script as a second opinion
Checks inside a workbook share the workbook's weaknesses. An outside script can read the same file and test it independently, for example by comparing the balance difference in every period and reporting the first failure. The following Python example does this with the tolerance used in the spreadsheet:
periods = ["2024", "2025", "2026", "2027"]
assets = [500.0, 560.0, 640.0, 735.0]
liab_equity = [500.0, 560.0, 630.0, 725.0]
tol = 0.01
diffs = [round(a - le, 2) for a, le in zip(assets, liab_equity)]
first_bad = next((p for p, d in zip(periods, diffs) if abs(d) > tol), None)
print(diffs) # [0.0, 0.0, 10.0, 10.0]
print(first_bad) # 2026Run such a script before a model is shared, and in particular after every structural change.
Principle 9: Change the model in small steps
Many imbalances come from large edits made all at once. When you add a new schedule or line item:
- Confirm the checks pass before you start.
- Add one schedule or one line.
- Link it into all three statements.
- Recalculate and confirm the checks still pass.
- Save a dated version.
If the check fails after step 4, you know the last change caused it, and the fix is small. This is the same logic as finding the first imbalanced period, applied to the model's history instead of its timeline.
A prevention checklist
Before you hand a model to someone else, run through this list:
- Every input is in one place and every number has one source.
- Every moving balance sheet account has a roll-forward schedule.
- The cash flow statement links to the same cells as the balance sheet.
- Each row has one consistent formula across all periods.
- The balance check, cash tie-out and roll-forward checks are all present and roll up into one master flag.
- No plug exists, and nothing references the check rows.
- The circularity switch works in both positions.
- You have broken the model on purpose at least once and seen the flag respond.
Common mistakes
- Treating a passing balance check as proof of correctness. A model can balance while still having offsetting errors, such as a wrong sign on two items of equal size. The roll-forward checks catch these.
- Using a tolerance that is too wide. A tolerance of
1in a model that reports in millions hides a million-unit error. Use0.01or less, and match it to the units. - Putting checks only on the last period. An error in the middle of the timeline can be masked later, so check every column.
- Leaving circularity on while debugging. Turn it off first so you can trace a single pass.
Exercise
A colleague's model balances in every period, and the master flag shows "ALL CHECKS OK". You then notice that the balance check row is built as =ROUND(C30-C30,2) for total assets minus total assets, copied from an earlier version. Name the problem, explain why the flag is misleading, and describe two steps that would have prevented it.
Show answer
The check always returns zero because it compares total assets with itself, so it passes by construction and can never fail. The master flag therefore says nothing about the model's real state. Two preventive steps: (1) test each check by deliberately breaking the model, for example flipping a cash flow sign, and confirm the flag turns on; (2) write the check as =ROUND(C30-(C45+C58),2) using independent totals for liabilities and equity, and review check formulas whenever the layout changes. A scripted second check that recomputes the difference from the raw line items would also expose the error.
Exercise
A model's interest formula is =Rate*AVERAGE(Debt_Open, Debt_Close). After someone mistypes a cell reference, #REF! appears across the income statement and will not clear even after the reference is corrected. What happened, and how do you recover? What design feature would have made recovery easier?
Show answer
The model has a circular loop, so the error value feeds back into itself through interest, net income, cash and debt, and it persists even after the original fault is fixed. To recover, break the loop by setting interest to use the opening balance only (or by temporarily typing 0 into the interest cell), recalculate so the errors clear, fix the cause, then restore the formula. A circularity switch input, such as Circ_Switch, makes this a one-cell change: set it to 0, recalculate, then set it back to 1.