Testing a converted bank statement with three Excel formulas
Three Excel formulas catch most problems in a bank statement converted to a spreadsheet: one counts amounts stored as text, one rebuilds the running balance row by row, and one checks that the signed column agrees with the debit and credit totals. When all three pass, the sheet is arithmetically consistent with the statement; it still needs a row-by-row look for swapped descriptions.
Treat them like unit tests. Each one has an expected value you can write down before you run it, and each failure points to a specific kind of error.
Test 1: are all the amounts real numbers?
=COUNTA(B2:B200)-COUNT(B2:B200) Expected result: 0. The formula returns the number of non-empty amount cells that are not numbers. It matters because SUM silently skips text cells, so a total can look plausible while ignoring half the rows.
When it fails, inspect one cell with =ISTEXT(B2), then find the culprit character with =UNICODE(MID(B2,2,1)). A result of 160 means a non-breaking space used as a thousands separator, 8239 a narrow non-breaking space, 32 an ordinary space.
Test 2: does the running balance follow the printed one?
With debit in C, credit in D and the printed balance in E, type the opening balance in F2, then fill down:
=F2+D3-C3 and in G3:
=ROUND(F3-E3,2) Expected result: every value in G is zero. The first nonzero row is the one to inspect, not the last one: every later balance inherits the same gap. In a fictional statement that opens at 1,000.00 with credits of 1,523.40 and debits of 313.30, the closing balance is 2,210.10. If a debit of 89.90 was read as 899.00, G shows −809.10 from that row onward.
Test 3: does the signed column agree with debit and credit?
If you added a signed amount column in F, it must satisfy one identity: the sum of signed amounts equals total credits minus total debits. Compare with rounding, so that a floating-point residual does not fail the test:
=ROUND(SUM(F2:F200),2)=ROUND(SUM(D2:D200)-SUM(C2:C200),2) Expected result: TRUE. In a fictional pair of rows, a debit of 75.20 and a credit of 120.00 give −75.20 and +120.00, net +44.80 = 120.00 − 75.20. If the identity holds but a known payment appears positive, the direction rule is wrong; if it fails, a range skipped some rows.
How do you read a failing balance test?
The size of the gap is a clue, never proof. Each line below starts from a correct fictional table and introduces one error.
| Error | Gap (calculated − printed) |
|---|---|
| A debit of 23.40 left out | +23.40 |
| The same debit counted twice | −23.40 |
| The debit turned into a credit | +46.80 |
| 89.90 read as 899.00 | −809.10 |
| Opening balance imported as a credit | +1,000.00 |
A gap equal to twice an amount suggests a flipped sign; a gap equal to one amount suggests a missing or duplicated row; a gap that, counted in cents, divides by 9 suggests a shifted decimal point or transposed digits.
What does a full pass not prove?
Two descriptions swapped between rows leave every number intact. Two errors can offset each other, and a wrong date can keep every balance right. These tests check arithmetic against the printed figures; they are not a bank reconciliation, and they do not replace comparing rows with the source page.
Read the full guides
- Check a bank statement balance in Excel: the five-step method and what to do when it does not match.
- Amounts stored as text in a bank CSV: the characters that block conversion, and how to remove only them.
- Combine debit and credit columns: a signed formula that refuses doubtful rows.
BankStatementScan turns scanned or PDF bank statements into Excel rows that you review beside the source page. Get started