Sub topic 3
Building a Balance Check You Can Trust
This chapter assumes you can read the three statements, write Excel formulas with absolute and relative references, and know that every transaction affects at least two accounts. It covers how to build a check row that reports an imbalance correctly, so you can rely on it when it says "OK".
What a balance check must do
A balance check tests the accounting identity in every forecast period:
Total assets = Total liabilities + Total equity
A good check has four properties:
- It is computed, not asserted. It reads the actual totals from the balance sheet. It never contains a typed number.
- It tolerates floating-point noise. Spreadsheets store decimals in binary, so a model that balances in theory can show a difference like 0.0000000000004. An exact
=0test would flag that as an error. - It is visible. The flag sits where you will see it: next to the balance sheet totals, and summarised at the top of the model.
- It covers every period. One formula, copied across all columns, including historical columns.
The core check rows
Place three rows directly under the balance sheet totals. In this example, total assets are in row 30, total liabilities in row 45, total equity in row 58, balance sheet cash in C5 and cash flow statement ending cash in C75.
Balance difference (row 60):
=ROUND(C30-(C45+C58),2)
Balance flag (row 61):
=IF(ABS(C60)<0.01,"OK","ERROR")
Cash tie-out (row 62):
=ROUND(C75-C5,2)Each row has a distinct job:
| Row | Formula idea | What it tells you |
|---|---|---|
| Balance difference | Assets minus (liabilities + equity), rounded | The size and sign of the imbalance |
| Balance flag | Text based on a tolerance | A quick pass/fail you can scan across columns |
| Cash tie-out | Cash flow ending cash minus balance sheet cash | Whether the cash flow statement feeds the balance sheet correctly |
Keep the numeric difference as its own row. The flag hides the number, and the number is what you need for diagnosis (the chapter "Reading the size and sign of the difference" uses it).
Why round, and to how many decimals
ROUND(...,2) removes floating-point residue so the difference displays as 0.00 rather than a tiny nonzero value. The tolerance of 0.01 in the flag then absorbs any remaining cent-level rounding.
Match the tolerance to your units. If the model is in thousands, a difference of 0.01 means ten dollars. If it is in millions, 0.01 means ten thousand dollars. A tolerance that is too loose lets real errors through, because a small genuine error can hide inside it. Use the smallest tolerance that still ignores floating-point noise.
Why use ABS
The difference can be positive (assets exceed liabilities plus equity) or negative. Without ABS, the test C60<0.01 would pass for every large negative difference. A check that passes on a negative imbalance is a common bug in inherited models, so test the formula yourself by forcing an error in each direction.
Building the master check
Individual flags are hard to scan across 10 or 20 columns, and nobody scrolls to row 61 in every sheet. Create one master check cell that summarises all periods and put it in a prominent place, such as the top of the model or the cover sheet.
Assume the period columns run from C to L:
Master balance check:
=IF(SUMPRODUCT(--(ABS(C60:L60)>=0.01))=0,"OK","ERROR")This counts the periods whose absolute difference is at or above the tolerance. It returns "OK" only when the count is zero. Using the same 0.01 threshold as the row flags keeps the two consistent. Better still, store the tolerance in one input cell, for example Tol, and reference it in every check:
Balance flag (row 61):
=IF(ABS(C60)<Tol,"OK","ERROR")
Master balance check:
=IF(SUMPRODUCT(--(ABS(C60:L60)>=Tol))=0,"OK","ERROR")A single tolerance cell prevents the flag in one sheet being quietly set looser than in another.
If the model has several checks (balance, cash tie-out, roll-forwards), add a check summary block:
| Check | Where | Result |
|---|---|---|
| Balance sheet balances | Row 61 | OK |
| Cash ties to balance sheet | Row 62 | OK |
| Retained earnings roll-forward | Equity schedule | OK |
| Debt roll-forward | Debt schedule | OK |
Then one overall cell tests that every check is "OK". Conditional formatting on that cell (green for OK, red for ERROR) makes the state visible without reading text.
Making the check hard to fool
A check can say "OK" while the model is wrong. These are the usual ways that happens.
The check totals the wrong range
If a new line item is inserted below the last row included in a SUM, the total assets no longer include it, but the check compares the same wrong totals on both sides. Verify that the totals include every line by looking at the formula ranges after any structural change.
The check is built from the plug
If a cell inside the balance sheet is calculated as "total assets minus liabilities", the check passes by construction. The check must compare two independently computed sides. Equity should come from the retained earnings roll-forward and contributed capital, and cash should come from the cash flow statement. Plugs are covered in their own chapter later in this tutorial.
Errors that propagate as text or `#N/A`
If a total contains an error value, ABS(C60)<Tol returns an error and the flag shows an error value instead of "ERROR". The master check then also returns an error. This is acceptable because the problem is visible, but make sure no IFERROR wrapper turns it into a pass:
Bad (hides failures):
=IFERROR(IF(ABS(C60)<0.01,"OK","ERROR"),"OK")Do not wrap checks in IFERROR with a passing fallback. If you must handle errors, fall back to "ERROR".
The check was overwritten
Someone pastes values over the flag row, and it shows "OK" forever. Copy the same formula across every column, then use Go To Special (Formulas or Constants) to confirm that no cell in the row is a constant.
Testing the check itself
Before you trust a check, break the model on purpose and confirm that the flag reacts. This takes a few minutes and is the only real proof that the check works.
- Note the current state. The flag should be "OK" in every column.
- In a forecast period, temporarily change a balance sheet input by a known amount, such as adding 10 to a liability line that is a hardcode.
- Confirm that the difference row shows the expected value (here, -10), that the flag in that column and every later column shows "ERROR", and that the master check shows "ERROR".
- Repeat with a negative change to confirm that
ABSis working. - Undo the change and confirm that everything returns to "OK".
The imbalance usually carries forward into all later periods, because the balance sheet is cumulative. That pattern is what lets you find the first failing period, which is the topic of the next chapter.
A short script as an independent check
You can reproduce the check outside the spreadsheet. This is useful for models you receive from others, or when you want a second opinion that does not share the spreadsheet's formulas. The following code computes the imbalance for each period and reports the first period where it exceeds the tolerance.
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) # 2026The script rounds before comparing, as the spreadsheet does, and uses abs for the same reason. The result shows the carry-forward pattern: the difference of 10 begins in 2026 and persists in 2027, so the cause lies in or before 2026.
Common mistakes
| Mistake | Effect | Fix |
|---|---|---|
| Exact test `=C30=C45+C58` | False errors from floating-point noise | Round, then compare against a tolerance |
| No `ABS` | Negative imbalances pass | Wrap the difference in `ABS` |
| Tolerance too large for the units | Real errors hidden | Pick a tolerance suited to the units; keep it in one cell |
| Check only in some columns | Errors in unchecked periods go unseen | Copy one formula across all periods |
| Fallback of "OK" inside `IFERROR` | Failures reported as passes | Let errors show, or fall back to "ERROR" |
| Check hidden on a back sheet | Nobody notices a failure | Show a master check on the first sheet |
How the checks fit together
Exercise
A model is in thousands of dollars. The balance flag is =IF(C60<0.5,"OK","ERROR"), where C60 is =ROUND(C30-(C45+C58),2). In 2027, total assets are 1,200.00 and total liabilities plus equity are 1,205.00. What does the flag show, and which two changes make the check reliable?
Show answer
C60 is -5.00, which is less than 0.5, so the flag shows "OK" even though the model is out of balance by 5 thousand dollars. First, wrap the difference in ABS so that negative imbalances fail: =IF(ABS(C60)<Tol,"OK","ERROR"). Second, tighten the tolerance from 0.5 to something like 0.01 and store it in one input cell, since 0.5 thousand is 500 dollars and is far larger than floating-point noise.
Exercise
You paste values over row 61 by accident, so it shows "OK" in every column. Name one way to detect this and one way to prove the check itself still works.
Show answer
To detect it, select the row and use Go To Special, Constants, which highlights any cell that holds a typed value instead of a formula. To prove the check works, break the model on purpose, for example by adding 10 to a hardcoded liability. A working check shows a difference of -10 and "ERROR" in that period and in later ones. Then undo the change.