Sub topic 4
Finding the first period that breaks
When a three-statement model stops balancing, the fastest first step is to find the earliest period where it fails. This chapter shows how to do that reliably, and how to avoid some common ways of being misled.
What you need before you start
This chapter assumes you have these skills:
- You can read an income statement, balance sheet and cash flow statement.
- You are comfortable with spreadsheet formulas and cell references.
- You have a balance check row like the one built in the previous chapter. It shows the difference between total assets and total liabilities plus equity, and it has a tolerance flag.
Every example below uses the same layout. Years run across columns C to J, and the year labels are in row 3. Row 60 holds the balance difference and row 61 holds the OK/ERROR flag.
Why the first period matters
An integrated model carries balances forward. Cash, retained earnings, PP&E and debt each start from the prior period's closing balance. If an error puts the balance sheet out by 10 in 2026, that 10 usually sits in the 2026 closing balances. Every later period then starts from a wrong opening balance, so 2027, 2028 and beyond inherit the same imbalance.
This means the check row often shows a long run of ERROR flags that all trace back to a single mistake. If you start investigating in the last column, you are working with the effects of the problem. You are also likely to find several apparent errors that disappear once you fix the real one.
The rule is: always investigate the earliest failing period first. Fix it, recalculate, and then look at what remains.
Step 1: Make the first failure visible
Scanning a row of 10 or 20 flags by eye is slow and error-prone. Put a single cell near the top of the model that reports the first failing period. Assuming the flags are in C61:J61 and the year labels are in C3:J3:
=IFERROR(INDEX($C$3:$J$3, MATCH("ERROR", $C$61:$J$61, 0)), "Balanced")MATCH with a match type of 0 returns the position of the first cell that equals "ERROR". INDEX converts that position into the matching year label. If no flag says ERROR, MATCH fails and IFERROR returns "Balanced".
Two details matter here:
- The flag text must match exactly. If your flag formula returns "Error" in one place and "ERROR" in another,
MATCHwill still find both, because it ignores case. A flag that returns"Check"or an empty string will not be found, so keep the flag vocabulary fixed. - A flag cell that itself shows an error value (
#REF!,#N/A) is not "ERROR" text.MATCHskips it, and the model can report "Balanced" while a column is broken. Wrap the flag formula so that error values become "ERROR":
=IFERROR(IF(ABS(C60)<0.01,"OK","ERROR"),"ERROR")Step 2: Separate new errors from inherited ones
The difference row tells you how large the imbalance is in each period. It does not tell you where the imbalance was created. For that, add a row that measures the change in the difference from one period to the next:
Row 63, first period (C63):
=ROUND(C60,2)
Row 63, later periods (D63 and across):
=ROUND(D60-C60,2)A non-zero value in row 63 means something new went wrong in that period. A zero means the period added no new error, even if row 60 is still non-zero because of an inherited one.
Here is the same idea as a script. It uses six periods, with an error in 2026 and a second, partly offsetting one in 2029:
periods = ["2024", "2025", "2026", "2027", "2028", "2029"]
diffs = [0.0, 0.0, 10.0, 10.0, 10.0, 4.0] # assets minus liabilities and equity
tol = 0.01
previous = 0.0
new_errors = []
for period, diff in zip(periods, diffs):
change = round(diff - previous, 2)
if abs(change) > tol:
new_errors.append((period, change))
previous = diff
print(new_errors) # [('2026', 10.0), ('2029', -6.0)]The row 60 values alone would suggest one problem that was later partly fixed. The change row shows two separate events. The 2026 event added 10. The 2029 event removed 6, which is probably a different error that happens to point the other way. You now have two investigations, each with its own size and its own period.
The search procedure
The loop in the middle exists because the first ERROR flag is not always the first real problem, which the next section explains.
Step 3: Check the opening balances of the failing period
Once you know the failing period, compare its opening balances with the prior period's closing balances. For each balance sheet line that rolls forward (cash, receivables, inventory, PP&E, payables, debt, equity), the opening value in the roll-forward schedule should equal the prior closing value on the balance sheet.
A quick test is one extra row per schedule:
Opening tie-out (D row, for PP&E opening balance in D40):
=ROUND(D40-C25,2)Here C25 is the prior-year closing PP&E on the balance sheet. A result other than zero means the schedule is not picking up last period's closing balance. Typical causes are a link that points at the wrong column, a hardcoded opening value that was pasted over a formula, or a schedule that was copied from another model with stale references.
If every opening balance ties, the cause lies in the period's own flows. That is the point at which you move on to reading the size of the difference and checking the cash and roll-forward reconciliations, which later chapters cover.
Edge cases that mislead the search
The first column
The first forecast period depends on the last actual period. If the historical balance sheet itself does not balance, the model will fail in the first forecast column, and so will every later column. The check row will make this look like a forecast error. Test the last actual period first. If it is already out of balance, the fix belongs in the source data or in how you entered it, not in the forecast logic.
Errors that offset each other
Two errors of equal size and opposite direction in the same period leave the difference at zero. The model reports OK while two formulas are wrong. You will not find this by searching for the first imbalance. Roll-forward checks and the cash tie-out catch it, because they test individual lines instead of the total. Do not treat a green check row as proof that every line is right.
Errors that disappear and reappear
If the difference is 10 in 2026, 0 in 2027 and 10 in 2028, something is switching on and off. Likely candidates are a scenario or toggle, a formula that is inconsistent across columns, an IF that depends on a date, or a circular reference that has not converged. Treat each switch of the change row as its own event.
A tolerance that hides small errors
A tolerance of 0.01 is reasonable for a model in millions with two decimals. If the model is in thousands, 0.01 is a very small amount of money. If a model is in units of one, a rounding tolerance of 0.01 can hide a real one-cent error repeated across many lines. Make the tolerance an input cell and keep it small enough that real errors cannot hide under it.
Calculation mode
If the workbook is set to manual calculation, the check row may show results from before your last edit. Press F9 or set automatic calculation before you trust any flag. When a model contains an iterative circular reference, also confirm that iteration has settled, for example by recalculating twice and checking that the values do not change.
Putting it together
A good working order looks like this:
- Recalculate and confirm the calculation mode is automatic.
- Read the first failing period from the summary cell.
- Check whether the prior period closes in balance. If not, step back one period.
- Read the change row to see whether that period added a new error.
- Test the failing period's opening balances against the prior closing balances.
- If openings tie, move to the size and sign of the difference and to the roll-forward checks.
- After each fix, recalculate and rerun the search, because the first failing period may now move later.
Exercise
A model shows these differences (assets minus liabilities and equity) for 2024 to 2029: 0.00, 0.00, 0.00, 8.00, 8.00, 3.00. (a) Which period should you investigate first? (b) What does the change row look like? (c) What does the 2029 result suggest?
Show answer
(a) Investigate 2027, the first period with a non-zero difference. (b) The change row is 0, 0, 0, 8, 0, -5. (c) The 2029 change of -5 means a new, separate error occurred in 2029 and partly offsets the inherited 8. The imbalance dropped to 3 because of a second problem, not because of a fix, so the 2029 formulas need their own check after the 2027 error is resolved.