OpsBench AI Tell us your problem
3 min read Excel, Reconciliation

Excel formulas to check a bank statement: totals, running balance and duplicates

Copy-ready Excel formulas to prove a converted bank statement is complete, find the exact row where it goes wrong, and spot duplicates before you import.

In short: three formulas cover it. A total check (opening + all amounts − closing = 0) proves nothing is missing. A running balance column compared with the statement's printed balance finds the first wrong row. A COUNTIFS duplicate flag catches rows entered twice. Use them on every converted statement before it goes into your accounting software.

These work on any layout with a date, a description and one amount column (money in positive, money out negative). If your file has separate Debit and Credit columns, add an Amount column first: =D2-E2 (credit minus debit).

Sheet layout used below

A B C D
1 Date Description Amount Printed balance
2 2026-10-01 Deposit 1250.00 9670.15
3 2026-10-03 Hydro -184.37 9485.78

Opening balance in G1, closing balance in G2.

Check 1: the total

=ROUND(G1 + SUM(C2:C1000) - G2, 2)
  • 0 = complete: every transaction is there exactly once (unless two errors cancel out; check 2 catches that).
  • Anything else = the size of the gap. Search for a transaction of that amount, or half of it (a sign error).

Why ROUND? Excel stores decimals in binary, so a sum can come out as 0.0000000001. Rounding to cents removes that noise.

Check 2: running balance

Add a column E, "Calculated balance":

E2:  =ROUND(G1 + C2, 2)
E3:  =ROUND(E2 + C3, 2)

Fill E3 down. Then column F, "Matches?":

F2:  =IF(D2="", "", IF(ROUND(E2-D2, 2)=0, "ok", "CHECK"))

The first "CHECK" is the first wrong row: a missing transaction just above it, a wrong amount, or a wrong sign. Fix it and the rest usually turn to "ok".

Not every statement prints a balance on every line. Where it's blank, the formula leaves the cell empty.

Check 3: possible duplicates

H2 (helper column):  =COUNTIFS(A:A, A2, C:C, C2, B:B, B2)

Anything above 1 is a row with the same date, description and amount as another. Some are genuine (two identical coffees on one day), so treat it as "look at this", not "delete this".

Check 4: dates inside the statement period

=IF(OR(A2 < start_date, A2 > end_date), "OUTSIDE", "")

Catches rows from the previous or next statement that slipped in.

Put the checks on their own sheet

Keep a small Check sheet with the opening balance, closing balance, sum of transactions, difference, count of "CHECK" rows and count of possible duplicates. Anyone opening the file later can see at a glance that the statement was proven. This is the approach behind the OpsBench Statement Converter, which adds a Check sheet to every Excel file it makes.

Frequently asked questions

Why does my SUM show 0.00 but the check isn't exactly zero?

Floating-point rounding. Wrap the formula in ROUND(..., 2), as above.

My amounts are text and won't add up. How do I fix them?

Use =VALUE(SUBSTITUTE(SUBSTITUTE(C2, "$", ""), ",", "")) in a helper column, or Data > Text to Columns on the amount column. Amounts with a trailing minus ("184.37-") need =-VALUE(SUBSTITUTE(C2,"-","")).

Can I do this in Google Sheets?

Yes. All four formulas work the same way in Google Sheets.

What if the statement has no opening balance?

Use the previous statement's closing balance. If you don't have it, you can't prove completeness, only check the running balance between printed lines.

More from the blog
  1. How to automate a weekly Excel report (from easy wins to fully hands-off)

    Four levels of automating a recurring Excel report, from Power Query refresh to a scheduled job that downloads the data, builds the workbook and emails it, with the checks each level needs.

  2. How to schedule an Excel macro to run automatically (and what breaks)

    Run an Excel VBA macro on a schedule with Windows Task Scheduler and a small script, the settings that matter, and the problems that stop unattended Excel runs.

  3. Why won't my bank reconciliation balance? 9 causes and how to find each

    The common reasons a bank reconciliation is off, a quick test for each one, and an order to check them in so you find the difference fast.

Have work your team repeats every week? / Tell us about it.

Tell us your problem