Sub topic 16
Finding the cause of an imbalance
This chapter assumes you have built the linked model from the earlier chapters. That means the retained earnings link, the cash flow adjustments, the PP&E roll-forward, the debt schedule and the cash reconciliation. It also assumes you have a balance check row, defined as total assets minus total liabilities and equity, that should equal 0. When that row shows a number other than zero, the model has a mistake. Finding it is a matter of method, not guessing.
Why an imbalance is informative
A double-entry model balances only if every change to one account is matched by an equal and opposite change elsewhere. The cash flow statement is the balancing mechanism here, because ending cash is the only balance sheet line that comes from it. So an imbalance means one of two things:
- A balance sheet line moved without a matching cash flow line, or the reverse.
- A formula broke a link, for example by pointing at the wrong cell or a hardcoded number.
The size and pattern of the difference narrows the search before you open a single formula.
Step 1: Rule out the starting point
Check the opening balance sheet first. If the last historical column does not balance, every forecast period inherits the error and you will chase mistakes that do not exist. Also confirm that each forecast opening balance equals the prior period's ending balance.
Step 2: Read the pattern of the error
Compare the balance check across periods.
| Pattern | Likely cause |
|---|---|
| Appears in the first forecast period and stays constant | A one-time error in period 1, carried forward by the roll-forwards |
| Grows or changes every period | A formula that is wrong in every period, such as a sign error |
| Appears in one period only, then the later periods show different values | A hardcode or a broken copy-across in that column |
| Equals a number you recognise (depreciation, dividends, a debt repayment) | That item was left out of one statement |
| Equals twice a number you recognise | That item has the wrong sign, which swings the total by 2 × the item |
| Equals the change in one working capital account | That account's change was left out of CFO or linked with the wrong sign |
The "twice" rule matters most. An increase in receivables should reduce cash. If you add it instead, cash is overstated by the increase and the balance sheet is off by that increase. The cash flow line is then wrong by twice the number, since it should be −10 and is +10. In your own model, a difference of 20 with a receivables change of 10 points to that sign.
Also try dividing the difference by 2 and checking whether the result matches a line item. If it does, look for a sign error on that line.
Step 3: Test each link in isolation
Test the five core relationships from the earlier chapters one at a time:
Retained earnings (end) = Retained earnings (begin) + Net income - Dividends
PP&E (end) = PP&E (begin) + Capex - Depreciation
CFO = Net income + Depreciation - Increase in AR + Increase in AP
Cash (end) = Cash (begin) + CFO + CFI + CFF
Balance check = Total assets - (Total liabilities + Total equity) -> should be 0Pair every balance sheet account with its cash flow counterpart. The pairs are listed here:
- Cash is the net of CFO, CFI and CFF.
- Receivables, inventory and payables are the working capital lines in CFO.
- PP&E is capex in CFI and depreciation in CFO.
- Debt is borrowing and repayment in CFF.
- Retained earnings is net income in CFO and dividends in CFF.
- Common stock is issuance and buybacks in CFF.
Every balance sheet line except cash should have at least one counterpart. If a line has none, such as an "other assets" line that changes with nothing in the cash flow statement, that line is the culprit.
A diagnostic you can run
The script below reuses the single-period model from this tutorial and injects one mistake at a time. It prints the balance check, which is assets minus liabilities and equity, so you can see how each error produces a recognisable signature.
OPENING = {"cash": 100, "ar": 50, "ppe": 200, "ap": 30,
"debt": 100, "common": 100, "re": 120}
def balance_gap(bug=None):
revenue, cogs, opex, da = 500, 300, 100, 20
interest = OPENING["debt"] * 0.05
ebt = revenue - cogs - opex - da - interest
net_income = ebt - ebt * 0.20
ar_end, ap_end = 60, 35
capex, debt_repaid, dividends = 30, 10, 20
d_ar = ar_end - OPENING["ar"]
d_ap = ap_end - OPENING["ap"]
# Cash flow statement (indirect method)
ar_term = d_ar if bug == "ar_sign" else -d_ar
da_addback = 0 if bug == "no_da_addback" else da
cfo = net_income + da_addback + ar_term + d_ap
cfi = -capex
cff = -debt_repaid - dividends
cash_end = OPENING["cash"] + cfo + cfi + cff
# Ending balance sheet
ppe_end = OPENING["ppe"] + capex - (0 if bug == "ppe_no_depr" else da)
debt_end = OPENING["debt"] - (0 if bug == "debt_not_reduced" else debt_repaid)
div_in_re = 0 if bug == "dividends_not_in_re" else dividends
re_end = OPENING["re"] + net_income - div_in_re
assets = cash_end + ar_end + ppe_end
liabilities_and_equity = ap_end + debt_end + OPENING["common"] + re_end
return assets - liabilities_and_equity
bugs = [None, "ar_sign", "no_da_addback", "dividends_not_in_re",
"ppe_no_depr", "debt_not_reduced"]
for bug in bugs:
print(f"{str(bug):<22}{balance_gap(bug):>8.1f}")The output is:
None 0.0
ar_sign 20.0
no_da_addback -20.0
dividends_not_in_re -20.0
ppe_no_depr 20.0
debt_not_reduced -10.0Three of these gaps equal 20, but they have different causes, and the sign of the gap separates them into two groups:
- A positive gap, with assets too high, comes from
ar_signandppe_no_depr. The receivables error overstates cash. The PP&E error overstates a fixed asset. - A negative gap, with assets too low or liabilities and equity too high, comes from
no_da_addbackanddividends_not_in_re. Missing the depreciation addback understates cash. Missing dividends overstates retained earnings.
Telling the two groups apart still leaves the ambiguity inside each group. The sign of the gap and the size of the gap together point you to a short list of suspects. You then confirm the culprit by checking the links.
Step 4: Narrow down by elimination
If the pattern does not give it away, use elimination:
- Pick one period and ignore the others.
- Compute the change in every balance sheet line by hand. Then compare each change to the cash flow items that should explain it.
- List any balance sheet line whose change is unexplained.
- Temporarily set suspect drivers to zero, such as dividends, capex or the debt repayment. If the check clears when a driver is zeroed, that driver's link is broken.
- Restore the driver and fix the formula.
Mistakes to avoid while debugging
- Do not add a plug. A line such as "other" that forces the balance sheet to balance hides the error and makes the model wrong in a way the check can no longer detect.
- Do not trust a check that rounds. A difference of 0.0001 can be a real error that has been rounded away. Use a tolerance such as
abs(gap) < 1e-9for floating-point noise, and fix anything larger. - Fix one error at a time. Two errors can partly cancel, so the gap can shrink after one fix without being resolved. Keep fixing until the gap is zero in every period.
- Check for circularity. If the model uses interest on average debt and a circular reference is switched on, a broken iteration can leave stale values. Turn the average-balance switch off, confirm the model balances, and turn it back on.
- Check copy-across. A formula copied to the right with a mixed or absolute reference ($) can point at the first period in every column.
Exercise
A model's balance check shows assets exceeding liabilities and equity by 30 in the first forecast period, and by 30 again in every later period. The last historical balance sheet balances. What does the constant gap suggest, and what is your first test?
Show answer
The gap does not grow, so no formula is wrong in every period. The error most likely happened once in period 1 and was carried forward by the roll-forwards. Compare the change in each balance sheet line in period 1 with its cash flow counterpart. Look for a line that moved by 30, or by 15 if the sign is wrong, with no matching cash flow item. Zero out capex, dividends and the debt repayment one at a time to see which clears the check.
Exercise
In the diagnostic script, a model shows a gap of +20 when receivables rose by 10. Which error is the most likely cause, and why does the gap equal 20 and not 10?
Show answer
The change in receivables was added to CFO instead of subtracted. The correct cash effect is −10 and the model used +10, so cash is overstated by 20, which is twice the change.