Case 2: bank reconciliation

At month end the balance per bank and the balance per books almost never agree. You find out which items are missing, which were posted wrong, and explain the difference down to the cent.

In short: an item is matched when its reference and amount appear on both sides. COUNTIFS checks both at once. The totals of unmatched items explain the gap between the balances: ledger balance plus items only on the statement minus items only in the ledger must equal the bank balance. A simpler XLOOKUP version is on the page Excel for accounting.

The situation

On the first working day of November, the financial controller wants to close the bank account for October. The statement ends at 6,940.50, the bank account in the general ledger at 5,952.40. Before the month is locked, the difference has to be fully explained and every open item needs a clear next step.

The workbook sheet by sheet

  • Statement: the bank's transaction export for October with date, reference and amount. Money in is positive, money out negative.
  • Ledger: the postings to the bank account in the same period, with document number and amount, same signs.
  • Reconciliation: opening balance, closing balance per statement and the reconciliation itself (task 1), or the summary by status (task 2).

In real exports the reference often holds more text than the invoice number. You would pull the number out with text functions first; here that step is already done.

Task 1: match and explain the difference

Task Reconcile the bank account for October. Statement D2: "yes" if the Ledger sheet has an entry with the same reference and exactly the same amount, otherwise "no" (down to D9). Ledger D2: the same check the other way round against the statement (down to D9). Then on the Reconciliation sheet: B4 the closing balance per ledger (opening balance plus all entries), B5 the total of items that appear only on the statement, B6 the total of items that appear only in the ledger, B7 the unexplained difference: B4 plus B5 minus B6 minus B3, rounded to cents.

ABCDE
1 Date Reference Amount In ledger?
2 2 Oct 2026 R-2026-318 1500
3 5 Oct 2026 ER-4471 -2380
4 8 Oct 2026 LOHN-10 -14250
5 14 Oct 2026 R-2026-327 3570
6 19 Oct 2026 ER-4502 -642.6
7 21 Oct 2026 R-2026-312 2000
8 30 Oct 2026 ER-4519 -1258
9 31 Oct 2026 Account fee Oct -18.9
10
11

Step 1: is the item in the ledger?

On the Statement sheet, D2 is =IF(COUNTIFS(Ledger!$B$2:$B$9,B2,Ledger!$C$2:$C$9,C2)>0,"yes","no"). COUNTIFS counts ledger rows where both the reference and the amount match. Checking the reference alone is not enough, because a mistyped amount would then pass as matched. The Ledger sheet gets the same formula the other way round.

Step 2: the reconciliation

On the Reconciliation sheet, B4 is the balance per ledger: =B2+SUM(Ledger!C2:C9). B5 adds up what is only on the statement, things the bank has done that are not posted yet: =SUMIF(Statement!D2:D9,"no",Statement!C2:C9). B6 does the same for postings the bank has not processed yet, such as payments in transit. Then ledger plus B5 minus B6 equals the bank balance, and B7 checks exactly that: =ROUND(B4+B5-B6-B3,2). ROUND catches tiny floating-point leftovers that cent amounts can produce.

Task 2: a status for every item

Task To clear the differences, "yes" or "no" is not enough. Statement D2: "matched" if the reference and amount appear in the ledger, "check amount" if the reference is there with a different amount, otherwise "to post". E2: the difference, statement amount minus ledger amount; if there is no ledger entry, count it as 0. D2 and E2 are filled down to row 9. Reconciliation B2: how many items have the status in A2, filled down to B4. B6: the total difference of all items marked "check amount".

ABCDEF
1 Date Reference Amount Status Difference
2 2 Oct 2026 R-2026-318 1500
3 5 Oct 2026 ER-4471 -2380
4 8 Oct 2026 LOHN-10 -14250
5 14 Oct 2026 R-2026-327 3570
6 19 Oct 2026 ER-4502 -642.6
7 21 Oct 2026 R-2026-312 2000
8 30 Oct 2026 ER-4519 -1258
9 31 Oct 2026 Account fee Oct -18.9
10
11

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

Step 3: three states instead of yes and no

"no" does not tell anyone what to do. So D2 tells the cases apart: =IF(COUNTIFS(…)>0,"matched",IF(COUNTIF(Ledger!$B$2:$B$9,B2)>0,"check amount","to post")). If the document is there with a different amount, something usually went wrong at entry; if it is missing, it needs posting, like the bank fee.

Step 4: the difference and the divide-by-9 test

E2 is =C2-XLOOKUP(B2,Ledger!$B$2:$B$9,Ledger!$C$2:$C$9,0). The 0 at the end replaces #N/A when the document is missing, so E2 shows the full amount. For ER-4519 you get 27.00: 1,258.00 on the statement, 1,285.00 in the ledger. A difference that divides evenly by 9 often points to two swapped digits. It is not proof, but a good hint where to look first.

Step 5: summary by status

On the Reconciliation sheet, B2 counts each status: =COUNTIF(Statement!$D$2:$D$9,A2), filled down to B4. B6 adds up the differences of all "check amount" items: =SUMIF(Statement!D2:D9,A3,Statement!E2:E9).

Common mistakes

Signs

Some banks export debits and credits in separate columns, or outgoing payments without a minus. COUNTIFS then finds nothing although the item is there. Bring both sides to the same sign convention first.

Ranges without $

Without $ the lookup range slides down as you fill, and the last items are no longer found.

Text instead of numbers

If an amount comes in as text, 1258 and "1258" are different for COUNTIFS. Check with ISNUMBER and convert with VALUE if needed.

How to check your result

  • Both sheets show exactly two "no".
  • B4 is 5,952.40, B5 is -1,276.90, B6 is -2,265.00, and the unexplained difference in B7 is 0.
  • In task 2 the counts in B2:B4 add up to 8, the number of statement lines.

The functions in German Excel

COUNTIFS is ZÄHLENWENNS, COUNTIF is ZÄHLENWENN, SUMIF is SUMMEWENN, ROUND is RUNDEN and XLOOKUP is XVERWEIS. Example: =WENN(ZÄHLENWENNS(Bankkonto!$B$2:$B$9;B2;Bankkonto!$C$2:$C$9;C2)>0;"ja";"nein").

Excel versions

COUNTIFS, COUNTIF, SUMIF and ROUND are in every current version of Excel. XLOOKUP needs Microsoft 365 or Excel 2021 and later; in older versions write E2 as =C2-IFERROR(VLOOKUP(B2,Ledger!$B$2:$C$9,2,FALSE),0). To compare two lists side by side without formulas, see the lesson on comparing two columns.

Frequently asked questions

What if the same amount appears more than once?

Then the amount alone is not a usable key. Use reference and amount together, as here. If even that repeats, for example two identical direct debits, add the date as a third criterion or compare the number of matches on each side.

When is a bank reconciliation done?

When the unexplained difference is 0 and every unmatched item has a reason: still to post, not yet cleared by the bank, or an amount to correct. Items in transit should show up on next month's statement.

Next: case 3, fixed asset register

Straight-line depreciation, pro rata by month in the first year, with a capitalisation threshold and net book value for any year.

Start case 3

Write to us

Choose language

Select your preferred language