DEV Community

Cover image for Bank CSV export or PDF statement: which one should your Excel sheet trust?
BankStatementScan
BankStatementScan

Posted on

Bank CSV export or PDF statement: which one should your Excel sheet trust?

A bank CSV export and a PDF statement are not the same document. The CSV is a plain-text download of transactions for whatever date range you chose; the PDF is the statement the bank issues for a period, with its opening and closing balances. For a spreadsheet, use the CSV as the data source when it exists, and use the PDF to check that the CSV covers the same period and adds up to the same figures.

When someone asks for an official statement, they usually mean the PDF. When Excel needs rows, the CSV saves you OCR and copy-paste.

What does a CSV export leave out?

A typical bank CSV has one line per transaction and a header such as Date,Description,Amount,Balance. Compared with the PDF it may:

  • cover any date range you picked, not the statement period;
  • leave out the opening balance, page numbers and the bank's heading;
  • use one signed amount column instead of separate debit and credit columns;
  • use its own date order, delimiter and decimal mark.

None of this is wrong, but it means the CSV cannot prove its own completeness. The PDF can, because it prints the balances the transactions must reach.

How do you check one against the other?

  1. Match the scope: same account, same currency, same first and last date as the statement period.
  2. Count: the number of CSV data lines must equal the number of transactions on the PDF pages.
  3. Total separately: debits and credits, not just the net.
  4. Apply the equation: printed opening balance + CSV credits − CSV debits = printed closing balance.

If the CSV has a single signed column, credits are the positive values and debits the negative ones, taken as positive numbers.

What if only the PDF exists?

Then the PDF becomes the data source as well, and the question changes: does each page have a text layer, or is it an image that needs OCR? Test several pages, because one statement can mix both. Rows extracted from a PDF need a row-by-row review against the page, and the same balance equation at the end.

How do you import the CSV without damaging it?

Never double-click it. Use Data > From Text/CSV, set the file origin to UTF-8 and the real delimiter, choose Transform Data, then type references as Text, dates with the bank's locale and amounts as numbers. A double-click is how references lose leading zeros and 03/04 turns into the wrong month.

Can several monthly CSVs replace a statement?

They can feed the same sheet, but check that their periods do not overlap: two exports that both include October 25–31 will show those transactions twice. Compare each file's first and last date before combining, and still close the combined table against the printed balances.

Read the full guides

BankStatementScan turns scanned or PDF bank statements into Excel rows that you review beside the source page. Get started

Top comments (0)