Confident CellsExcel practice Start free

Bank reconciliation in Excel: matching the cash book to the statement

Updated 26 November 2026 · 5 min read

A bank reconciliation checks that your cash book and the bank statement agree. Match each item in one list against the other by reference and amount with COUNTIFS, =COUNTIFS($D$2:$D$7,A2,$E$2:$E$7,B2). The items left over explain the gap between the two balances, and once they're all accounted for, the difference is £0.00. COUNTIFS, SUMIFS and SUMIF work the same in every version of Excel on Windows and Mac, in Excel for the web and in Google Sheets.

Bank reconciliation at a glance

You wantFormulaWhat you get
Is this cash book line on the statement?=IF(COUNTIFS($D$2:$D$7,A2,$E$2:$E$7,B2)>0,"Yes","No")Yes if the reference and the amount both match
Is this statement line in the cash book?=IF(COUNTIFS($A$2:$A$7,D2,$B$2:$B$7,E2)>0,"Yes","No")No for bank charges and direct debits not entered yet
Unpresented cheques=SUMIFS(B2:B7,C2:C7,"No",B2:B7,"<0")Money out in the cash book that hasn't cleared
Outstanding lodgements=SUMIFS(B2:B7,C2:C7,"No",B2:B7,">0")Money in that isn't on the statement yet
Items to enter in the cash book=SUMIF(F2:F7,"No",E2:E7)The statement lines nobody has entered
One amount from Paid in and Paid out=C2-B2Money in as a plus, money out as a minus

Each one is worked through below, with a sheet.

A worked example

A small print firm's cash book and bank statement both started November at £2,400.00. On 30 November the cash book says £4,413.50 but the statement says £3,645.00. Going through the two lists item by item:

Unpresented cheques and outstanding lodgements are timing differences: they'll be on next month's statement. The bank charges and the direct debit are real and need entering in the cash book.

They agree, so the difference is £0.00 and the cash book is right apart from the two items to enter.

Matching the two lists

Put the cash book on the left and the statement on the right. Both lists here show money in as a plus and money out as a minus. Then ask of each cash book line: is there a line on the statement with the same reference and the same amount?

=IF(COUNTIFS($D$2:$D$7,A2,$E$2:$E$7,B2)>0,"Yes","No")

Then do the same the other way round, in column F, to find statement lines that aren't in the cash book. The No lines are the ones to explain, and SUMIFS adds them up for the reconciliation underneath.

ABCDEF
1Cash bookAmountOn bank?StatementAmountIn cash book?
2SALES 1101£1,250.00YesSALES 1101£1,250.00Yes
3CHQ 104871-£380.00YesDD Rates-£186.00Yes
4BACS Kerr£640.00YesCHQ 104871-£380.00Yes
5CHQ 104872-£215.50NoBACS Kerr£640.00Yes
6DD Rates-£186.00YesBank charges-£15.00No
7SALES 1128£905.00NoDD Insurance-£64.00No
8
9Statement balance£3,645.00
10Unpresented cheques-£215.50
11Outstanding lodgements£905.00
12Adjusted bank balance£4,334.50
13
14Cash book balance£4,413.50
15Items to enter-£79.00
16Adjusted cash book£4,334.50
17Difference£0.00
C2 holds =IF(COUNTIFS($D$2:$D$7,A2,$E$2:$E$7,B2)>0,"Yes","No"), copied down, and F2 does the same the other way. B10 adds up the unmatched money out, B11 the unmatched money in, and B15 the statement lines not in the cash book. B17 is the difference: £0.00.

Read the bottom half as the reconciliation: the statement balance, less the cheques that haven't cleared, plus the money that hasn't arrived, gives the same figure as the cash book once the bank's own items are in it.

What to do with each item left over

If the difference isn't £0.00 and it divides exactly by 9, look for two digits swapped: £450 typed as £540 is a difference of £90. Customers who still owe you money after the month end belong in an aged debtors report, and a bill paid in advance, such as a year's insurance by direct debit, may need spreading as a prepayment.

A statement with Paid in and Paid out columns

Most bank exports have two money columns. Make one Amount column first, with money in as a plus and money out as a minus. With Paid out in B and Paid in in C, that's =C2-B2. A blank cell counts as 0, so each row gives the one amount that's there, with the right sign.

ABCD
1StatementPaid outPaid inAmount
2SALES 1101£1,250.00£1,250.00
3DD Rates£186.00-£186.00
4CHQ 104871£380.00-£380.00
5BACS Kerr£640.00£640.00
6Bank charges£15.00-£15.00
7DD Insurance£64.00-£64.00
D2 holds =C2-B2, copied down. DD Rates: nothing paid in, less £186.00 paid out, is -£186.00.

The cash book must use the same signs, or nothing will match. If the export puts the money in a single column with "DR" or "CR" next to it, use IF: =IF(C2="DR",-B2,B2) turns each debit into a minus.

Common mistakes

Matching on the reference only

=COUNTIF($D$2:$D$7,A2) says Yes to a cheque entered as £450 that cleared at £540. Match the amount as well, which is why it's COUNTIFS with two conditions.

The statement range moves

Without $ signs, the copy in row 5 looks in D5:D10, so items near the top of the statement are missed and show No. Lock the range.

Two identical lines

Two direct debits for the same amount to the same supplier both match one line on the statement. If an item can appear twice, compare how many times it's in each list. In this sheet the waste collection is in the cash book twice but on the statement once, so one of the two hasn't cleared.

ABCDEFG
1Cash bookAmountIn cash bookOn statementStatementAmount
2DD Waste-£48.0021DD Waste-£48.00
3BACS Kerr£640.0011BACS Kerr£640.00
4DD Waste-£48.0021CHQ 104875-£92.00
5CHQ 104875-£92.0011Bank charges-£12.00
C2 holds =COUNTIFS($A$2:$A$5,A2,$B$2:$B$5,B2), counting the line in the cash book, and D2 counts it on the statement. DD Waste is 2 against 1, so one £48.00 is still to clear.

Where the two counts differ, the difference is how many are missing.

A difference of a penny

Amounts worked out by formula, such as VAT, can hold fractions of a penny. Round them where they're worked out (see ROUND), not at the end.

Try it now

Your turn

In C2, show Yes if the cash book line is on the statement with the same reference and the same amount, or No if it isn't. Your formula will be copied down to C9.

ABCDE
1Cash bookAmountOn statement?StatementAmount
2CHQ 200341-£420.00BACS Hale Farm£1,180.00
3BACS Hale Farm£1,180.00CHQ 200341-£420.00
4DD Water-£96.40DD Water-£96.40
5CHQ 200342-£275.00Paid in 0412£650.00
6Paid in 0412£650.00CHQ 200342-£257.00
7CHQ 200343-£138.60Card sales 0512£2,315.80
8Card sales 0512£2,315.80Bank charges-£18.50
9Paid in 0612£480.00Interest£2.14

Open this in Try a formula: the same sheet with the answer filled in, to change or share by link.

Part of Excel for finance and bookkeeping: every lesson on the topic, with a project in Excel.

Questions

How do I do a bank reconciliation in Excel?

Put the cash book and the bank statement side by side, each with a reference and an amount, money in as a plus and money out as a minus. Next to each line, use COUNTIFS to check whether the other list has the same reference and amount. Add up the lines marked No: unpresented cheques and outstanding lodgements adjust the bank balance, and bank charges and direct debits adjust the cash book. The two adjusted balances should agree.

What are unpresented cheques and outstanding lodgements?

An unpresented cheque is one you've written and entered in the cash book that hasn't cleared the bank yet, so it's not on the statement. An outstanding lodgement is money you've paid in that the bank hasn't shown yet, often because it went in on the last day. Both are timing differences: they'll be on next month's statement. Take the cheques off the statement balance and add the lodgements on.

Why won't my bank reconciliation balance?

Check the signs first: both lists need money in as a plus and money out as a minus. Then look for a line in both lists at different amounts, such as a cheque entered as £275 that cleared at £257. A difference that divides exactly by 9 often means two digits swapped. Also check for items entered twice, an opening balance that doesn't match last month's, and amounts with fractions of a penny from formulas.

Can Excel match bank transactions automatically?

Yes, with formulas. COUNTIFS checks each line against the other list by reference and amount, and shows Yes or No once copied down. Matching on the amount as well as the reference catches typing errors. Where the references differ between the two lists, match on the amount and the date instead. Conditional formatting can colour the No lines so the items to explain stand out.