How to check a bank CSV before importing it (the 10-minute audit)
"It imported fine" is the most expensive sentence in bookkeeping. A file can import without a warning, reconcile to nothing, and be short one transaction — because the bank capped the export at 5,000 rows, or a currency symbol stopped one amount being a number, or Excel turned a date into something Xero reads differently. None of these fail the import. All seven checks below take about ten minutes, and every one of them runs on formulas you can paste.
- Start from the raw file, not a spreadsheet
- Check 1 — tally the file against the statement
- Check 2 — the balance chain
- Check 3 — dates that cannot be read one way
- Check 4 — duplicates
- Check 5 — amounts that are not numbers
- Check 6 — where the file was cut off
- Check 7 — order, period and signs
- Keep the result
- When you would rather it ran itself
Start from the raw file, not a spreadsheet
Before any formula: open the file once in a plain text editor — Notepad, TextEdit in plain text, VS Code. You are looking for four things that a spreadsheet view is designed to hide.
- What a date actually says.
03/04/2026is both 3 April and 4 March. Excel shows you your own regional format and converts on open, so the cell cannot tell you what the file means. - What separates the fields. If the file uses semicolons (
;) rather than commas — normal on a machine set to a comma decimal separator — half the import tools in the world read the whole row as one column. - Whether an amount has a symbol or a suffix.
$1,045.50,(85.00)and85.00 CRare all text, however they look in a spreadsheet column. - Whether the file ends where you think. A trailing footer line ("End of statement") is harmless; a file that just stops mid-month is not.
Then work on a copy. Excel's CSV save is not round-trip safe: it will re-apply regional date formats, strip leading zeros from account numbers, and turn long numbers into scientific notation.
Check 1 — tally the file against the statement (2 minutes)
Write these six numbers down before you touch anything, from the statement itself:
- Opening balance
- Closing balance
- Number of transaction lines
- Total money in
- Total money out
- Statement period (first and last date)
Now the same five from the file. If the line count differs, stop there — the rest of the audit is about finding out why. If the count matches but the totals do not, one amount was read wrongly. If the totals match and the balance does not, a transaction is duplicated or has the wrong sign.
Check 2 — the balance chain (3 minutes, the check that finds a missing row)
If the export has a running balance column, you already have a row-by-row proof of completeness. Set the file up as A Date, B Description, C Amount (signed), D Balance, with the header in row 1 and data in rows 2 to 1001.
In E3, put the chain test: this row's balance should equal the previous balance plus this row's amount.
=ROUND(D3-C3-D2,2)
Fill it down to the last row. Every zero is a link that holds. A non-zero value is a break, and — this is the useful part — the difference it reports is usually the amount of the transaction that is missing.
Count the breaks in one cell instead of scrolling:
=SUMPRODUCT(--(ROUND(D3:D1001-C3:C1001-D2:D1000,2)<>0))
No balance column? Most banks still let you prove the total. The opening balance is the first row's balance minus its amount — or simply the statement's opening figure. Then:
=ROUND(SUM(C2:C1001)+opening-D1001,2)
Zero means the file's amounts account for the whole movement. This weaker check cannot tell you which row is missing, only that the total is short.
Check 3 — dates that cannot be read one way (2 minutes)
Two numbers matter: how many dates are ambiguous, and how many are unambiguous. In F2:
=IFERROR(DAY(A2),"not a date")
Fill down, then count in two cells:
=COUNTIF(F2:F1001,">12")
The rows whose day is above 12 — the ones that prove the file's order.
=COUNTIF(F2:F1001,"<=12")
The rows that could be read either way.
Rows after the 12th are the only ones that prove which order the file uses, because 14 cannot be a month. If the count after the 12th is zero — a short card statement covering only the first ten days of a month, for example — the file alone cannot settle the question and the paper statement is the only source of truth. Do not let a tool, or your own reading, paper over that.
Then check that every date falls inside the statement period:
=COUNTIFS(A2:A1001,"<"&DATE(2026,11,1))+COUNTIFS(A2:A1001,">"&DATE(2026,11,30))
A non-zero result means the export covers more or less than the statement says — usually a date range set wrong on the bank's download screen.
Check 4 — duplicates (1 minute)
Same date, same amount, same description is the signature of a transfer exported twice, or two overlapping date ranges merged into one file.
=COUNTIFS($A$2:$A$1001,A2,$C$2:$C$1001,C2,$B$2:$B$1001,B2)
Anything above 1 is a line to look at, not a line to delete. Two coffees on the same day at the same shop are real, and so are two identical subscription charges. The formula produces a shortlist; you decide.
Check 5 — amounts that are not numbers (1 minute)
=SUMPRODUCT(--NOT(ISNUMBER(C2:C1001)))
This must be 0. If it is not, the offending cells are the ones where a number did not survive the trip: a leading currency symbol, a trailing CR, parentheses around a credit, a non-breaking space after the figure, a comma used as a decimal separator (1.045,50). Excel left-aligns text by default and right-aligns numbers, which is the fastest visual check on a small file.
Convert rather than retype. VALUE() handles most of it once the decorations are gone:
=VALUE(SUBSTITUTE(SUBSTITUTE(TRIM(C2),"$",""),",",""))
Then paste the results back over the original column as values. Until this check passes, the balance chain in Check 2 is meaningless — a text amount contributes nothing to a sum, which is why a file with one text amount can "tie" to the wrong total.
Check 6 — where the file was cut off (1 minute)
Files are lost in four places, and only one of them is Excel.
- The bank's own cap. Plenty of bank download screens cap a CSV at a row count or a date window — 90 days, 12 months, 5,000 lines. The export is not truncated in any visible way; it simply ends earlier than the statement.
- The last row. Open the end of the file in the text editor. A partial final line is common when a download was interrupted.
- Excel's own limits. A single sheet holds 1,048,576 rows; less obvious is that Excel silently drops anything past the first worksheet when you save an
.xlsxthat had several — and most import tools only read the first sheet anyway. - The accounting software's limit. A QuickBooks Online CSV upload is capped at 1,000 lines per file, so a 1,400-line card statement must be split by date range — and the split is where people lose a day.
The test is the same in every case: the last date in the file against the statement's last date, and the closing balance against the statement's closing balance. Check 1 already gives you both.
Check 7 — order, period and signs (1 minute)
Three small things that cost nothing to check and a lot to discover later.
Out-of-order dates — the count of rows where the date goes backwards:
=SUMPRODUCT(--(A3:A1001<A2:A1000))
Most import tools sort by date, so this is usually cosmetic — but it breaks the balance chain's readability, and it is the first sign that two exports were concatenated.
Signs. Pick one purchase and one incoming payment and read them as the accounting software will: negative for money out in a single signed column, positive for money in. A card file where every amount is positive is the classic sign flip, and it has its own guide — why card CSVs import as income.
One date format for the whole file, and one decimal convention. Mixed formats inside one column are a silent error: the first unambiguous date decides how the rest are read — see the 03/04/2026 trap.
Keep the result
The audit is not just a gate; it is working paper. Save the six tally numbers, the break count, the ambiguous-date count and the duplicate shortlist next to the client file — a one-page note is enough. When someone asks in March why February changed, the note that says "file had 412 lines, statement had 413, one row missing, re-exported" is worth more than a clean-looking register.
The order matters if you only have five minutes: 1 → 2 → 5. Tally, chain, numeric amounts. Those three catch the failures that reach the books. Checks 3, 4, 6 and 7 catch the ones that reach them quietly.
When you would rather it ran itself
All seven checks are mechanical, and mechanical work is where a person gets tired on the fourth client file of the evening. StatementProof runs them on a bank or card CSV/TSV/Excel file inside the browser tab — no account, no upload, zero network requests, works with the Wi-Fi off — and then writes the import file:
- Balance chain rebuilt row by row, with the failing row number and the exact difference;
- Ambiguous dates counted, with the reading the rest of the file supports, and a plain statement when the file cannot settle it;
- Amount parsing for symbols, parentheses,
CR/DRand thousands separators, with every row it could not read listed and the reason; - Duplicates matched on date, amount and description, across files as well as within one;
- Opening-to-closing check when there is no balance column;
- Exports for Xero (
*Date, *Amount, Payee, Description, Reference), QuickBooks Online (Date, Description, Amount), a generic CSV, an audit CSV, and a printable verification report for the client file.
What it will not do: read PDF statements, choose categories for you, or tell you a file is complete when the bank cut it at 5,000 rows — that is what Check 6 and the statement itself are for.
StatementProof — $24, once
One HTML file, opened in your browser. No subscription, no account, no upload. Three sample statements included so you can see the audit run before you trust it with a client file. Launch code PROOF20 takes 20% off while it runs.
14-day refund if it cannot read your bank's export. Not accounting, tax or audit advice — check the import preview in your accounting software before you complete it.
Short answers
My file has no balance column. Is the audit still worth it? Yes — checks 1, 5 and 6 catch most failures, and check 2's total version still proves completeness even though it cannot point at the missing row.
My bank gives me PDFs only. Then the checks still apply to the statement, but the file has to be produced some other way; this audit starts from CSV or Excel.
Do I need to do this every month for every client? The first month for each bank, yes — that is when you learn where its export lies. After that, the chain check alone is usually enough.