Wrong dates and amounts after importing a CSV into Google Sheets
Google Sheets reads the dates and numbers of an imported CSV by the locale of the spreadsheet. When the file was written for another locale, a day-first date can change month or stay text, and an amount with a decimal comma is not read as the number it is. Choose the file below: the page works in your browser, rewrites the dates as year-month-day and the amounts with a decimal point, shows the first 20 cleaned rows and lists every line it left out, with the reason.
Clean your CSV export before the import
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 the cleaner rewrites before the import
| In the export | In the cleaned file |
|---|---|
01/03/2024;Transferencia recibida cliente 701;1.234,56;EUR;6.234,56;TR-0001 | 2024-03-01,Transferencia recibida cliente 701,1234.56,EUR,,1234.56,TR-0001,bank |
13/03/2024;Compra tarjeta envios;-310,25;EUR;6.697,97;TJ-0010 | 2024-03-13,Compra tarjeta envios,-310.25,EUR,,-310.25,TJ-0010,bank |
20/03/2024;Pago proveedor 88;-1.000;EUR;5.773,66;TR-0015 | 2024-03-20,Pago proveedor 88,-1000.00,EUR,,-1000.00,TR-0015,bank |
- Dates are written as year-month-day.
13/03/2024becomes2024-03-13. That form names the year first and does not depend on whether a program expects the day or the month first. - The order of day and month is taken from the file, never guessed. A date whose first number is above 12, such as
13/06/2024, proves that the file is day-first, and that order is then used for every date of the file, so03/04/2024in the same file becomes2024-04-03. - When no date settles the order, the page stops and asks. A file that holds only dates such as
03/04/2024and05/06/2024gives no rows until you choose day first or month first. With day first they become2024-04-03and2024-06-05; with month first,2024-03-04and2024-05-06. - A file that mixes both orders also stops. When one date can only be day-first and another can only be month-first, the page asks and does not pick one.
- Decimal commas become decimal points.
1.234,56is written as1234.56,-89,90as-89.90and450,00as450.00. The thousands separator is removed. - A thousands point is not mistaken for a decimal point. In a decimal-comma file,
-1.000is one thousand and is written as-1000.00, as in the last line of the table. - The decimal separator is taken from the amounts of the file, not from the settings of your computer or of a spreadsheet.
- The delimiter becomes a comma. A semicolon between columns, common in files with decimal commas, is replaced by a comma in the cleaned file.
The cleaned file always uses a decimal point. Import it into a spreadsheet whose locale uses a decimal point too. If the locale of your spreadsheet uses a decimal comma, set it to one that uses a decimal point before you import the cleaned file, or an amount such as 1234.56 is not read as the number it is.
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 get the same result inside Google Sheets
- Set the locale first. In a new spreadsheet, open File, then Settings, and choose the locale the CSV was written for: one that puts the day first and uses a decimal comma if your file does.
- Import the file with File, then Import, and let the separator be detected, or choose it yourself if the columns do not separate.
- Check that the values were understood. Dates and numbers that were read are right-aligned; anything still left-aligned is text.
=ISNUMBER(A2)returnsFALSEfor a cell that is still text. - Change the display, not the values. Give the date column the custom format
yyyy-mm-dd. If you need decimal points, switch the locale back afterwards: the stored values stay the same and only the way they are shown changes. - Compare a few rows with the original file in a text editor before you rely on the sheet, above all rows from the first twelve days of a month.
Notices
- Privacy: files are read in your browser and never uploaded, stored or logged. Operator: Augeo.
- Independent tool, not affiliated with or endorsed by Google, 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.