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.

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

Rows of a synthetic PayPal activity sample file, named by their Transaction ID. Line 4 of that file is line 3 a second time.
Transaction ID in the exportdate in the cleaned fileamount in the cleaned filefee in the cleaned filenet in the cleaned file
TESTTXN0000000001 (line 2)2024-01-0348.00-1.9746.03
TESTTXN0000000002 (line 3)2024-01-041250.00-44.121205.88
TESTTXN0000000002 (line 4)not written: exact copy of line 3

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.

  1. Work on a copy and keep the downloaded file untouched.
  2. Mark repeated numbers. In an empty column, =COUNTIF(M:M,M2)>1 returns TRUE on every row whose number appears more than once.
  3. 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.
  4. Or use the remove-duplicates command of the spreadsheet with all columns selected, and note how many rows it says it removed.
  5. Check the sum. The sum of the net column should equal the change of your balance over the period.

Notices

Other pages

Report a problem — tell us what failed; we reply to your email when it is fixed.