Sub topic 11
Checks that prove the tab ties
This chapter assumes you can use cell references, absolute and relative references, and basic functions such as ROUND, IFERROR and SUMPRODUCT. It also assumes the income statement, balance sheet and cash flow statement are already entered as sourced inputs on the historical tab, as covered in the earlier chapters.
A historical tab is only useful if you can trust it. Typing errors, sign mistakes and missed line items are common when you copy dozens of numbers from a PDF. Integrity checks are formulas that test the tab against facts the annual report already guarantees. If a check fails, you have an error to find. If every check passes, you have good evidence that the tab matches the report.
What a check is and where it goes
A check is a formula that returns zero (or TRUE) when the data is consistent and a non-zero value (or FALSE) when it is not. Good checks share four traits:
- They compare two numbers that come from independent places in the report.
- They use a tolerance for rounding, because reports round each line to the nearest thousand or million.
- They sit in a dedicated checks block, one row per test and one column per year, so you can scan across.
- They roll up into a single master flag that is visible at the top of the tab.
Checks do not repair anything. They tell you that something is wrong and in which year, which cuts the search down to one column.
The checks that matter most
Most of the value comes from a short list of tests. Each one links two statements or two parts of one statement.
| Check | What it compares | What a failure usually means |
|---|---|---|
| Balance sheet balances | Total assets against total liabilities plus total equity | A missing line, a wrong sign, or noncontrolling interest left out |
| Cash tie-out | Ending cash on the cash flow statement against cash on the balance sheet | Restricted cash treatment, or a cash flow line entered with the wrong sign |
| Subtotal match | Your formula subtotal against the reported subtotal | A missing or mis-entered component line |
| Net income link | Net income on the income statement against the starting line of the cash flow statement | Net income entered before or after noncontrolling interest in one place |
| Retained earnings roll | Opening retained earnings plus net income less dividends against closing retained earnings | Buybacks, other adjustments or restatements not captured |
Balance sheet balances
The accounting identity is assets = liabilities + equity. Define total equity as including any noncontrolling interest, since that is how most reports present it.
Balance check (row 60): =ROUND(D25-(D45+D58),2)
Cash tie-out (row 61): =ROUND(D70-D12,2)
Revenue growth (row 80): =IFERROR(D6/C6-1,"n.a.")
Gross margin (row 81): =IFERROR(D8/D6,"n.a.")
EBITDA (row 82): =D14+D90In this layout, row 25 is total assets, row 45 is total liabilities and row 58 is total equity. Row 60 should return 0 in every year. The ROUND function keeps tiny floating-point residue from showing up as a failure.
Cash tie-out
The cash flow statement ends with cash at the end of the period. That figure should equal the cash line on the balance sheet. Many companies report "cash, cash equivalents and restricted cash" on the cash flow statement, while the balance sheet shows only "cash and cash equivalents". When that happens, the two will differ by the restricted cash amount. Look in the notes for a reconciliation table. Then either add a restricted cash line to the tab or adjust the check so it compares like with like.
Subtotals against the reported figures
Do not type subtotals. Build them with formulas that sum your inputs, then compare each one with the figure the company reports. Put the reported figure in a separate input row, labeled clearly.
Gross profit (formula): =D6-D7
Gross profit (reported): =18450
Gross profit check: =ROUND(D30-D31,2)If the check fails by a round number such as 500, a line is probably missing. If it fails by exactly twice a line item, a sign is probably wrong. If it fails by 1 or 2, you are likely seeing rounding in the report.
Choosing a tolerance
Reports round each line separately, so reported subtotals can differ slightly from the sum of the rounded lines. A fixed tolerance is a practical way to handle that. Set it once in an input cell, for example $C$3, and refer to it everywhere.
Tolerance (input): =1
Pass flag: =IF(ABS(D60)<=$C$3,0,1)Choose a tolerance in the same units as your data. If you enter figures in millions, a tolerance of 1 means one million. A tolerance that is too large hides real errors, and one that is too small produces false alarms. As a rule, allow a few units for the sum of rounding across a statement, and never more than a tiny fraction of the smallest line you care about.
Building the master flag
Individual checks are easy to overlook if they are spread across the tab. Add one cell near the top that summarizes them all.
Failed checks (row 62): =SUMPRODUCT(--(ABS(D60:D61)>$C$3))
Master flag (cell C1): =IF(SUM(D62:H62)=0,"OK","CHECK")Use conditional formatting to turn the master flag green when it reads OK and red otherwise. This gives anyone who opens the model an immediate signal. Downstream sheets can also refer to the flag, and a forecast can show a warning if the historical tab does not tie.
Checking the cash flow statement from the inside
The cash flow statement has its own internal logic, and two checks catch many mistakes.
- Operating, investing and financing cash flows plus the effect of exchange rates should equal the net change in cash.
- Opening cash plus the net change in cash should equal closing cash.
Net change check (row 66): =ROUND(D64-(D62+D63+D65+D67),2)
Roll-forward check (row 68): =ROUND(C70+D64-D70,2)The second check uses the prior year closing balance in column C. It cannot run for the first year on the tab unless you also enter the opening balance, so leave that cell blank or mark it as not applicable rather than forcing a zero.
Working-capital movements against the balance sheet
A softer check compares the change in a balance sheet item with the matching cash flow line. Receivables rising by 50 should show up as a cash outflow of roughly 50 in operating cash flow. The two rarely match exactly, because of acquisitions, currency translation and non-cash items. Use this test to spot gross errors rather than to demand an exact tie.
Change in receivables (BS): =D20-C20
Cash flow line (negated): =-D75
Difference: =D95-D96Treat a difference as a prompt to read the notes. If an acquisition closed during the year, the gap is expected and you should document it in a source note.
Handling the first column
The earliest year has no prior year on the tab, so any check that uses column C needs a guard. Use IF to return an empty string, or build the formula so it refers only to cells that exist.
=IF(ISNUMBER(C70),ROUND(C70+D64-D70,2),"n.a.")Make sure your master flag ignores text such as "n.a." so a skipped check is not counted as a failure. Skipped checks should still be visible, so you know which years were not tested.
Where the checks sit in the process
The diagram shows the order in which checks run and how failures loop back to data entry.
A debugging routine for failed checks
When a check fails, work through the same steps each time.
- Find the year. The check is laid out by column, so only the failing years need attention.
- Look at the size of the difference. A round number suggests a missing line. Double a known item suggests a sign error. A small number suggests rounding.
- Re-check the section totals against the report before looking at single lines.
- Compare against the next year's report. If the prior-year column there differs from your entry, the company restated, and the comparability chapter applies.
- Fix the input, not the formula. Never add a plug cell to force a balance.
Optional: the same check in code
If you extract data into a script, the balance test is a short comparison. This example uses placeholder figures.
import pandas as pd
bs = pd.DataFrame(
{
"FY2022": {"total_assets": 1000.0, "total_liabilities": 600.0, "total_equity": 400.0},
"FY2023": {"total_assets": 1120.0, "total_liabilities": 655.0, "total_equity": 465.0},
}
)
diff = bs.loc["total_assets"] - bs.loc["total_liabilities"] - bs.loc["total_equity"]
print(diff.abs().lt(0.5))Both years print True, which means each year is within the 0.5 tolerance.
Common errors
- Comparing a rounded figure with an unrounded one, which produces tiny false failures.
- Leaving noncontrolling interest out of total equity.
- Using the wrong sign for outflows on the cash flow statement.
- Testing only the latest year. Errors often sit in older columns.
- Letting text results such as "n.a." count as failures, or hiding them so completely that nobody knows a check was skipped.
Exercise
In FY2023 your balance check returns 250, and the cash tie-out returns 0. Total assets on your tab are correct. Name two likely causes and the first thing you would look at.
Show answer
The difference sits on the liabilities and equity side, since assets are correct and cash ties. Likely causes are a missing liability or equity line (for example noncontrolling interest or deferred taxes), or a wrong sign on one entered line. A round number such as 250 points toward a missing line. First compare your section subtotals for current liabilities, long-term liabilities and equity against the reported subtotals, to see which section is off, then check the lines in that section against the balance sheet.
Exercise
Your cash tie-out fails by 12 every year, always the same amount. What is the most probable explanation, and how do you fix the check?
Show answer
The cash flow statement probably reports cash, cash equivalents and restricted cash, while the balance sheet shows cash and cash equivalents only. The constant 12 is the restricted cash balance. Find the reconciliation in the notes, add a restricted cash row to the tab, and compare ending cash on the cash flow statement with balance sheet cash plus restricted cash.