Sub topic 3
Using trace precedents, error checking and formula views
This chapter assumes you can read the three statements, write spreadsheet formulas with cell references, and know that Assets must equal Liabilities plus Equity. It covers the auditing tools that locate errors, plus the habits that keep a model balanced.
Tracing formulas to their sources
Select a cell and use Formulas > Trace Precedents to draw arrows to every cell it depends on. Trace Dependents shows where a cell is used. Press Ctrl+` (Show Formulas) to display every formula instead of its value, which makes an inconsistent formula stand out across a row.
Hunting hardcodes, broken links and inconsistent formulas
A hardcode is a typed number where a formula belongs. A broken link is a reference to a blank or wrong cell. Each forecast cell in a row should share one formula pattern. Use Home > Find & Select > Go To Special > Constants to list typed numbers in a sheet.
Circular references and interest on average balances
Interest on average debt depends on ending debt. Ending debt depends on the cash sweep, and the cash sweep depends on interest. This loop is a circular reference. Enable iterative calculation only with a circuit breaker, which is a switch cell that sets interest to zero when it is on. Without one, a single error can spread through the whole model.
Why you should never plug the balance sheet
A plug is a balancing figure forced into cash or equity so the check reads zero. It hides the error, and the imbalance returns in later periods. Find the cause and fix it.
Automating checks with a script
Export the totals and compare them each period:
periods = ["2024", "2025", "2026"]
assets = [500.0, 560.0, 640.0]
liab_equity = [500.0, 560.0, 630.0]
tol = 0.01
for p, a, le in zip(periods, assets, liab_equity):
diff = round(a - le, 2)
status = "OK" if abs(diff) < tol else "ERROR"
print(p, diff, status)Designing models that stay balanced
Use one formula pattern per row. Keep inputs on their own sheet. Put the balance check near the top of the model, and link every statement to a single source.
Exercise
The balance check shows 10.0 in 2026 and 0.0 in earlier years. Your Trace Precedents arrows for 2026 total assets point to a cell with a typed number. What is the likely cause, and what is the fix?
Show answer
A hardcode in a forecast cell replaces a formula, so the value no longer updates with the model. Replace the typed number with the row's formula pattern, then confirm the balance row returns 0.0 in 2026.