Merge and de-duplicate spreadsheets without losing rows

Monthly exports, one file per account, or a PDF statement plus a CSV from the same period: the useful version is usually one workbook. The risk is silent loss — a month dropped, a header treated as data, or a “de-dupe” that deletes a real transaction because it looked similar.

Line the columns up before you combine anything

Give every file the same header names, in an order you can read: Date, Description, Amount, and then anything extra (Category, Payee, Account, Source). If one file has Withdrawals and Deposits instead of Amount, make a single signed Amount column first (deposits positive, withdrawals negative) so a later SUM means something. Dates should already be YYYY-MM-DD and amounts should already be numbers. Merging messy files just makes a larger mess.

Add a Source File column as you go — the original file name is enough. When a total is later off, you can filter back to the file that caused it.

Concatenate, then decide what “duplicate” means

The safe merge is concatenation: every row from file A, then every row from file B, then file C. You now have a raw combined count. Write it down. Then, and only then, remove exact duplicates: rows where every field except perhaps the Source File column is identical. Those usually appear when the same export was included twice, or when two systems were given the same transaction and produced the same line.

Do not treat “same date, same amount” as a duplicate by itself. People pay the same vendor the same amount twice in a day. If you need a tighter match later, do it as a review list — flag candidates, do not auto-delete them.

Reconcile the combined file immediately

You want three figures to agree:

A Category summary and a Monthly summary are useful after that, not before. They are filters on a file whose totals you already believe. SUMIF (or a pivot table) by category and by year-month will show you where the money went, and they should still add up to the same net.

Doing this in TableWren Pro

The free TableWren site cleans one file at a time. The Pro Offline Toolkit adds a third tab that accepts several CSV, Excel, and PDF files, unifies the columns, removes exact duplicates, and writes one workbook with a Clean Data tab, a Category / Monthly Summary tab, and a Reconciliation Check tab. It still runs on your computer. If you are merging by hand in Excel, the same three-tab idea is worth copying: data, summaries, and a check sheet that states the raw count, the duplicates removed, and the net.

A note on PDFs in a merge

A PDF statement can be one of the files, but only after you have extracted it and confirmed its own totals against the printed ending balance. Merging a bad extract with a good CSV will hide the error in a larger number. Check each source, then combine, then check the combination.