How to fix CSV imports with wrong dates and decimals in Sheets
You open a CSV in Google Sheets and 1.234,56 becomes text, 03/04/2026 flips between March and April, and a product code loses its leading zeros. These are locale mismatches between the file and your spreadsheet. They are fixable once you know which setting controls what.
Why this is harder than it looks
A CSV is plain text with no record of which locale wrote it. Sheets interprets it using your spreadsheet locale, so a European export with semicolons and decimal commas lands wrongly in a US-locale sheet, and the reverse. Ambiguous dates are converted silently, so wrong values look valid and spread into formulas and reports.
Step by step
- Spot the symptom. Numbers aligned left are text, so SUM returns 0. Check a cell with =ISNUMBER(A2); FALSE confirms text. Dates that convert only when the day is 12 or lower show a day-first file read as month-first. If everything sits in column A, the delimiter is wrong, not the locale.
- Check the spreadsheet locale. Open File > Settings > General and read Locale. It controls decimal separator, date order and default formats for the whole spreadsheet. Compare it with where the file came from: Germany, France and Spain use decimal commas and day-first dates, while the United States uses decimal points and month-first dates.
- Re-import as plain text. Use File > Import > Upload, pick Insert new sheet, set Separator type to Custom and enter a semicolon for semicolon files, then untick Convert text to numbers, dates, and formulas. Everything arrives exactly as written, so nothing is misread silently and leading zeros survive.
- Repair decimals with a formula. For text like 1.234,56 in a point-decimal sheet use =VALUE(SUBSTITUTE(SUBSTITUTE(A2,".",""),",",".")). It removes thousands dots, then turns the comma into a point. Fill down, copy the results and use Edit > Paste special > Values only over the originals. In a comma-decimal sheet, reverse the swap.
- Repair dates explicitly. For day-first text such as 31/12/2026 build the date from parts: =DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2)). Splitting the text never depends on locale. ISO text such as 2026-12-31 is read correctly by DATEVALUE in any locale. Finish with Format > Number > Date.
- Keep identifiers as text. Phone numbers, postal codes and SKUs are labels, not quantities. Format the column with Format > Number > Plain text before pasting, or import with conversion switched off. Numbers beyond 15 digits lose precision once converted, and that damage cannot be reversed.
- Validate against the source. Compare the repaired column total with the total in the program that produced the CSV. Spot-check five rows, including a date with a day above 12, a negative number and a value with thousands separators. Matching totals confirm the conversion worked.
Common mistakes
- Changing the spreadsheet locale after import and expecting wrong values to fix themselves
- Leaving automatic conversion on, so ambiguous dates become wrong valid dates
- Converting codes to numbers, then padding zeros back on
- Overwriting the original sheet instead of repairing a copy
Where LocaleFix Sheets fits in
LocaleFix Sheets is a Google Workspace Editor add-on for Sheets that repairs CSV imports damaged by locale differences. It addresses the same problems covered in steps 3 to 5, inside the spreadsheet. It is built but not listed in any store.
LocaleFix Sheets support and FAQ
FAQ
Sheets reads dates using the spreadsheet locale. If the file is day-first and the locale is month-first, any date with a day of 12 or lower converts wrongly and silently, while others stay as text.
No. Values converted at import stay as they are. Change the locale first, then re-import, or import as text and convert with formulas. Changing it later only changes how existing values are displayed.
Import with Convert text to numbers, dates, and formulas unticked, or format the column as Plain text before pasting. Once a code becomes a number, the zeros are gone and must be rebuilt from a known length.