The same transaction twice in a PayPal or Etsy CSV export
A sale that appears twice in the file is counted twice in your books. It usually gets there when two downloads with overlapping dates are pasted into one file, or when the same period is exported twice. Choose the file below: the page works in your browser, drops every row that repeats an earlier row of the file in full, shows the first 20 cleaned rows and lists every line it left out, with the reason.
Clean your PayPal or Etsy CSV
The cleaner looks for a header row, a date column and an amount column, and writes eight fixed columns: date, description, amount, currency, fee, net, reference and source. If it cannot find those columns in your file, it says so and outputs nothing.
Your file is read in your browser and is never uploaded, stored or logged. It is held in the memory of this tab only, and closing or reloading the page discards it. Operator: Augeo. See the privacy notice.
Exports do not share one layout, and this page makes no promise about yours: the free preview shows what it does to your file.
The cleaning logic is checked by an automated test script that runs the engine file of this site over six synthetic sample files and a set of checks of the parsing rules; it ran in a sandbox before this site was published and finished with no failed check. The script does not open this page in a browser, does not test the licence key step, and nothing was tested against a real export from any provider. Use the free preview to check your own file.
Report
Warnings
Lines not parsed
Lines dropped
Preview of the cleaned rows
| line | date | description | amount | currency | fee | net | reference | source |
|---|
Download the full cleaned file
- Price: 6 USD, paid once on Gumroad. No subscription. You receive a licence key.
- What the key unlocks: the download of every cleaned row of the file you chose, as one CSV named after your file with -cleaned.csv at the end, instead of the first 20 rows on screen. The report and the way files are read stay the same.
- The key is for one buyer. Runs are not counted and no number of runs is promised. The key is kept in the memory of this page only, so you enter it again after closing or reloading the page.
- Refunds are requested through your Gumroad receipt and follow Gumroad's refund policy.
- Try the free preview first. If the preview cannot read your file, the full download cannot either.
Get a licence key on Gumroad for 6 USD
Prefer a file you keep? Offline CSV cleaner, single HTML file, 6 USD on Gumroad. The offline file was built from an earlier version of the engine, and its build self-check covered the six original sample layouts (PayPal activity, Etsy sold orders, Etsy monthly statement and three bank layouts); it does not include the later Fee/Net column reading used for the Stripe, Shopify, eBay and Square pages.
What happens to a transaction that is in the file twice
| Transaction ID in the export | date in the cleaned file | amount in the cleaned file | fee in the cleaned file | net in the cleaned file |
|---|---|---|---|---|
| TESTTXN0000000001 (line 2) | 2024-01-03 | 48.00 | -1.97 | 46.03 |
| TESTTXN0000000002 (line 3) | 2024-01-04 | 1250.00 | -44.12 | 1205.88 |
| TESTTXN0000000002 (line 4) | not written: exact copy of line 3 | |||
- The first copy stays and the later one is left out. The payment of the sample file is written once, with its amount, fee and net, and its second copy gives no row.
- Every row left out this way is listed. The report gives the line number of the copy and the line number of the row it repeats, so you can find both in the original file.
- The copies do not have to be next to each other. In the test, the copy sits two lines below the row it repeats, with another transaction between them, and it is still found.
- Rows that only look alike are kept. In the Etsy statement sample file, two fee lines of the same day and the same order differ in their title and their amount, and both are written.
- A refund is not a copy. In the PayPal sample file, a refund line that carries the Transaction ID of the first payment in its Reference Txn ID column is a row of its own, and both rows are written.
For the PayPal sample file as a whole the counts add up: rows in 8 = rows out 6 + duplicates dropped 1 + footer lines 0 + not parsed 1. The row not parsed is a pending line with N/A where the gross amount should be.
No Etsy sample file of this site holds a repeated row, so the table shows PayPal rows only. The rule is not tied to a provider: the test script also checks it on a plain file with a date, a description and an amount column.
Two identical rows can be two real transactions. This page has no switch to keep such rows: read the list of the lines left out, and if a row on it is a real second transaction, add it back to the cleaned file by hand. The page about keeping duplicate transactions says more.
The comparison is made inside the one file you choose. This page does not compare two files with each other. To check two downloads against each other, paste the rows of the second under the rows of the first, without its header line, save the result as one file and choose that file.
This is a cleaner for files of transactions and not a general CSV editor. The output is always the same eight columns, and columns of your file that are not among them are not carried over.
How to find repeated transactions by hand
These steps work in Excel, Google Sheets and LibreOffice Calc. The formula uses a placeholder column letter: the transaction or order number in M. Read your own header row and change the letter to match. If your spreadsheet uses a decimal comma, write the formula with a semicolon between the arguments.
- Work on a copy and keep the downloaded file untouched.
- Mark repeated numbers. In an empty column,
=COUNTIF(M:M,M2)>1returnsTRUEon every row whose number appears more than once. - Compare the marked rows. A repeated number is a reason to look, not proof: delete a row only when every cell equals the cell of the other row.
- Or use the remove-duplicates command of the spreadsheet with all columns selected, and note how many rows it says it removed.
- Check the sum. The sum of the net column should equal the change of your balance over the period.
Notices
- Privacy: files are read in your browser and never uploaded, stored or logged. Operator: Augeo.
- Independent tool, not affiliated with or endorsed by Etsy, PayPal, QuickBooks or any bank.
- Check the output before you use it. This is not accounting, tax or financial advice.
- Price of the full download: 6 USD one-time. The key is for one buyer. Refunds are requested through the Gumroad receipt.
- Only upload data you have the right to process. Choosing a file here does not send it anywhere, but you remain responsible for the data in it.
Other pages
- Clean a PayPal activity CSV
- Clean an Etsy sold orders CSV
- Clean an Etsy monthly statement CSV
- Remove duplicate rows from a CSV export
- Keep duplicate transactions in a CSV
- A CSV export with a totals row that breaks an import
- CSV amounts with a currency code column
- Any other CSV export of transactions