Sub topic 6
Tying cash flow ending cash to the balance sheet
This chapter assumes you can read the three statements and follow cell references across sheets. It also assumes you have a balance check row like the one built earlier in this tutorial. Here you will use cash as a second, independent test of a model's integrity, and you will learn what a cash mismatch tells you.
Why cash is the natural tie-out
In an integrated model, the cash flow statement (CFS) is the only statement that explains every movement in cash. The balance sheet shows where cash ended up. If the two disagree, the model has an internal contradiction before you look at any other line.
Cash is a good first test for three reasons:
- It is one line, so a mismatch is easy to see and measure.
- Every other balance sheet line feeds into it through the CFS, so a problem anywhere in the model can surface here.
- Its error is exact. A cash gap of 10.00 means something worth exactly 10.00, or a multiple of an item, is misrouted.
The relationship to check is:
Ending cash (CFS) = Beginning cash + Cash from operations + Cash from investing + Cash from financing
and the balance sheet cash for the same period must equal that ending cash.
The three cash checks
One check is not enough. A model can pass the main tie-out and still hide a problem, so use three.
| Check | What it tests | Typical formula |
|---|---|---|
| Ending cash tie-out | CFS ending cash equals balance sheet cash | `=ROUND(C75-C5,2)` |
| Opening cash continuity | This period's beginning cash equals last period's ending cash | `=ROUND(C70-B75,2)` |
| Subtotal arithmetic | Ending cash equals beginning cash plus the three section totals | `=ROUND(C75-(C70+C71+C72+C73),2)` |
In these formulas row 70 is beginning cash, rows 71 to 73 are the operating, investing and financing totals, row 75 is ending cash, and row 5 on the balance sheet is cash. Adjust the references to your layout.
Here are the spine's balance and tie-out formulas, with a flag for the cash check:
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)Add a flag for row 62 in the same way as row 61, using the same tolerance. Then roll up all your checks into one master cell, for example =IF(AND(C61="OK",C63="OK"),"OK","ERROR"), and put it on the first sheet or in the header of each statement.
What the checks tell you
Combine the balance check and the cash tie-out and you get four outcomes.
| Balance check | Cash tie-out | Likely location |
|---|---|---|
| Balanced | Ties | No evidence of a problem. Both checks can still pass if two errors offset. |
| Out of balance | Does not tie | The CFS and the balance sheet disagree on cash. Start with the cash links and the CFS sections. |
| Out of balance | Ties | Cash is linked correctly, but a non-cash line or a CFS item is wrong. |
| Balanced | Does not tie | Unusual. Suspect a hardcoded cash cell, or a plug elsewhere that forces balance. |
The third row is the common one, and the next section explains why.
When cash ties but the balance does not
If balance sheet cash is linked directly to CFS ending cash (=C75), the tie-out is zero by construction. This is the right design. It also means the tie-out can never catch a wrong item inside the CFS. A wrong CFS item changes cash, and the balance sheet cash moves with it, so the two stay equal while the balance sheet fails.
You need a second view that does not depend on the CFS. Rearrange the accounting identity to solve for cash:
Implied cash = Liabilities + Equity − Non-cash assets
If the model were correct, implied cash would equal CFS ending cash. The gap shows how much cash the CFS is overstating (positive gap) or understating (negative gap).
# Worked example: the 2026 column of a small model.
# Change in inventory was entered with the wrong sign on the CFS.
beginning_cash = 100.0
cash_flow = {
"net_income": 50.0,
"depreciation": 20.0,
"change_inventory": 5.0, # should be -5.0: inventory rose by 5
"capex": -42.0,
"dividends": -7.0,
}
ending_cash_cfs = beginning_cash + sum(cash_flow.values())
# Balance sheet items other than cash, 2026
inventory = 45.0 # 40 last year, +5
ppe = 360.0 + 42.0 - 20.0 # opening + capex - depreciation
liabilities = 200.0
equity = 300.0 + 50.0 - 7.0 # opening + net income - dividends
implied_cash = liabilities + equity - inventory - ppe
gap = round(ending_cash_cfs - implied_cash, 2)
print(ending_cash_cfs) # 126.0
print(implied_cash) # 116.0
print(gap) # 10.0The CFS says cash is 126. The rest of the balance sheet says it should be 116. The gap of 10 is twice the inventory movement of 5. That points to a flipped sign on that item, which is the pattern from the previous chapter on reading the size of the difference. The next chapters cover sign errors in more detail.
In Excel, the same test is one cell:
Implied cash (row 63):
=C45+C58-(C30-C5)
Gap versus CFS (row 64):
=ROUND(C75-C63,2)Because C30-C5 is total assets without cash, row 64 equals the balance difference in row 60 whenever cash is linked correctly. It carries the same number but frames it as a cash question, and that framing is what drives the next step: find the CFS line responsible.
Finding the line responsible
Work from the gap to the cause in this order.
- Confirm that the gap first appears in one period. Use the first-imbalanced-period method. A gap that appears in 2026 and stays at 10 in later periods means the error is in 2026, with later periods inheriting it.
- Compare the gap to the CFS items for that period. A gap equal to twice an item suggests a flipped sign. A gap equal to an item suggests that item is missing, double-counted or linked once instead of twice.
- For each non-cash balance sheet line, compare its period change with the CFS line that should reflect it. Every change in a non-cash asset, liability or equity account must appear in exactly one CFS line, with the correct sign.
Step 3 can be written as a check per line. For an asset, the CFS effect is minus the change. For a liability or equity account, the CFS effect is plus the change.
Inventory CFS check:
=ROUND(-(C12-B12)-C80,2)
Accounts payable CFS check:
=ROUND((C40-B40)-C81,2)Here row 12 is inventory, row 40 is accounts payable, and rows 80 and 81 are the matching CFS lines. A non-zero result names the line directly, so you do not have to hunt through the whole statement.
Common causes of a cash mismatch
- Opening cash is hardcoded. Someone typed the first period's beginning cash, and a later edit to the prior period left it stale. The continuity check catches this.
- A sum range is incomplete. The CFO total omits a newly inserted row because the range did not expand. The subtotal arithmetic check catches this.
- Balance sheet cash is calculated separately. If the balance sheet cash is rebuilt from its own formula rather than linked, the two can drift apart.
- A non-cash charge is missing. Depreciation, amortization, stock compensation or an impairment reduces net income but does not use cash, so the CFS must add it back.
- A balance sheet line is missing from the CFS. A new line such as prepaid expenses or deferred revenue is added to the balance sheet but not to the working capital section.
- Cash definitions differ. The CFS reconciles cash and equivalents plus restricted cash, while the balance sheet shows only one of them. Decide the definition once and apply it to both statements.
- Foreign exchange effects. A model with foreign currency items needs an effect-of-exchange-rates line in the CFS, or the cash will not reconcile.
Making the cash checks part of the model
- Place the three cash checks directly under the balance check so you see them together.
- Use the same tolerance as the balance check, for example 0.01, and test the absolute value.
- Check every period column, not only the latest. An error in an early period can be offset later.
- Include the cash checks in the master check, so one cell tells you whether the model is sound.
- After any structural change such as inserting rows, add a new statement line or switch scenarios, read the master check before doing anything else.
Exercise
In 2027, the cash tie-out (CFS ending cash minus balance sheet cash) is 0.00, but total assets exceed total liabilities and equity by 14.00. Implied cash is 14.00 lower than CFS ending cash. The CFS shows a change in accounts payable of +7.00, and accounts payable on the balance sheet rose by 7.00. What is the most likely cause, and how would you confirm it?
Show answer
The gap of 14.00 is twice 7.00, which suggests a flipped sign on an item of 7.00. Since a rise in accounts payable is a source of cash, +7.00 appears correct for that line. Check which other CFS item has a magnitude of 7.00, such as dividends or a change in another working capital account, and compare each balance sheet change with its CFS line. Use the per-line checks: for assets, the CFS value should equal minus the change, and for liabilities and equity it should equal plus the change. The line whose check is non-zero by 14.00 (the sign error contributes twice the item) is the one to fix. It could also be accounts payable if the CFS formula is mis-signed elsewhere, such as in a total, so verify the formula in the cell rather than just the displayed value.