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.
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.
Where the currency of each row comes from
| Amount in the export | Currency column of that file | amount in the cleaned file | currency in the cleaned file |
|---|---|---|---|
| 1.234,56 | Divisa, holding EUR | 1234.56 | EUR |
| $30.48 | Currency, holding USD | 30.48 | USD |
| -1,000.00 | Currency, holding USD | -1000.00 | USD |
| £310.00 | none | 310.00 | GBP |
| (310.00) | none | -310.00 |
- A currency column of the file is carried over. In the sample files that have one, it is named
CurrencyorDivisa, and the code it holds is the code written in the cleaned file. - The amount becomes a plain number either way.
$30.48in a file with a currency column is written as30.48, with the code in the next column and no symbol left in the number. - Without a currency column, a symbol that names one currency fills the column. The pound sign gives
GBP, as in the fourth line of the table, which comes from a file with no currency column. - A code written next to the number is read with it. The amount parser reads
12.50 EURas the amount12.50and the currencyEUR. - A dollar sign alone does not fill the column. Several currencies use it, so
($45.10)in a file with no currency column is written as-45.10with the currency left empty. - No column and no symbol means an empty currency. The last line of the table comes from such a file. Nothing is assumed from the language of the file or from your computer.
- Amounts are not converted. The number written is the number of the file, in the currency of the file.
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.
- Work on a copy and keep the downloaded file untouched.
- If the file has a currency column, leave it as it is and go to the step about symbols.
- 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. - 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.
- Check that the amounts are numbers.
=ISNUMBER(C2)returnsFALSEfor a cell that is still text, often because of a thousands separator or parentheses. - Do not convert. Keep each amount in its own currency and let the software you import into apply its own rates.
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
- Remove currency symbols and thousands separators from a CSV
- CSV amount column read as text in Excel
- Negative amounts in parentheses in a CSV
- Convert decimal commas to decimal points in a CSV
- Wrong dates and amounts after a Google Sheets CSV import
- The same transaction twice in a PayPal or Etsy CSV
- Any other CSV export of transactions