CSV amounts with a currency code column

Some exports name the currency in a column of its own, as a code such as USD or EUR, next to amounts that may still carry a symbol. Others have no such column and show the currency only as a symbol inside the amount, or not at all. Choose the file below: the page works in your browser, writes a plain number in the amount column and a code in the currency column where the file gives one, shows the first 20 cleaned rows and lists every line it left out, with the reason.

Clean your CSV export

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.

Where the currency of each row comes from

Amounts from the synthetic sample files. A blank currency cell means that column is left empty in the cleaned file.
Amount in the exportCurrency column of that fileamount in the cleaned filecurrency in the cleaned file
1.234,56Divisa, holding EUR1234.56EUR
$30.48Currency, holding USD30.48USD
-1,000.00Currency, holding USD-1000.00USD
£310.00none310.00GBP
(310.00)none-310.00

No sample file of this site holds rows in more than one currency, so this page shows no such rows. If your export mixes currencies, look at the currency column of the preview, and filter the cleaned file by that column before you import it into software that expects one currency per file.

An empty currency column is not an error. Fill it yourself when your importer asks for a code: you know which account the file came from, and the file does not say.

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 do the same by hand in a spreadsheet

These steps work in Excel, Google Sheets and LibreOffice Calc. The formula uses a placeholder column letter: the amount in C. Read your own header row and change the letter to match. If your spreadsheet uses a decimal comma, write the formula with semicolons between the arguments.

  1. Work on a copy and keep the downloaded file untouched.
  2. If the file has a currency column, leave it as it is and go to the step about symbols.
  3. If it has none, add one. While the amounts are still text, =IF(LEFT(C2,1)="£","GBP","") writes the code for amounts that start with a pound sign; change the symbol and the code for your file. For a file with no symbol, type the code of the account in the first row and fill it down.
  4. Remove the symbols from the amount column only, with find and replace on that column, so a symbol in a description stays where it is.
  5. Check that the amounts are numbers. =ISNUMBER(C2) returns FALSE for a cell that is still text, often because of a thousands separator or parentheses.
  6. Do not convert. Keep each amount in its own currency and let the software you import into apply its own rates.

Notices

Other pages

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