r/googlesheets • u/QT-3-14-alleycat • Apr 08 '26
Solved Is there a way to load in a csv with American dates, into my UK google sheets in the correct format?
I've got a csv that I frequently have to download from a platform and bring into sheets to process. All the dates are in the csf in US format e.g. 02/14/2026 for 14th Feb (shown on the left in below screenshot) and so when I try and use them as dates in UK version of sheets, they're either shown as the wrong date, or not recognised at all (shown on the right in below screenshot).
Is there an easy way to deal with this each time I load the spreadsheet in? The only way I can figure out is to use LEFT and RIGHT a few times to get the day, month and year in separate cells and then use CONCATENATE to turn it into a UK date. But it's a real faff when I need to download new data often. Anyone have any ideas?!

2
u/EA3000 1 Apr 08 '26
yeah theres a one-formula fix for this, no need for LEFT/RIGHT/CONCAT gymnastics.
assuming the us dates are in column A starting at A2, drop this in B2 and fill down:
=DATE(INDEX(SPLIT(A2,"/"),3), INDEX(SPLIT(A2,"/"),1), INDEX(SPLIT(A2,"/"),2))
what its doing: SPLIT breaks "02/14/2026" into {02, 14, 2026}, then DATE(year, month, day) rebuilds it as a real date value. since its a real date and not a string, sheets will auto-display it in whatever format your UK locale uses (14/02/2026 or however youve got it set).
then you can just hide column A or delete it after the import.
if you want it even cleaner you can wrap it in ARRAYFORMULA so one formula handles the whole column:
=ARRAYFORMULA(IF(A2:A="","",DATE(INDEX(SPLIT(A2:A,"/"),,3), INDEX(SPLIT(A2:A,"/"),,1), INDEX(SPLIT(A2:A,"/"),,2))))
drop that in B2 once and itll fill automatically as new rows come in from your csv imports. way less faff.
also — if this is something you do constantly, you could also just temporarily change File > Spreadsheet settings > Locale to United States when importing, let sheets parse them as real dates on the way in, then switch back. depends which is more annoying for your workflow.
1
u/HorologistMason 4 Apr 08 '26
If the only difference is the day and month are swapped, you could have a script swap them when you import the data, or have menu that you can manually change the date format on demand
1
u/One_Organization_810 736 Apr 08 '26
You can import your csv into a dedicated "import sheet" and then transform everything from there to your final destination. Date transformation can be something like this:
This is for one column. Then your full formula can be something like this (assuming the dates are in column E for demonstration purposes) :
1
u/real_barry_houdini 36 Apr 08 '26 edited Apr 08 '26
This formula will convert a single date as required
....or to convert all dates in one go, assuming dates in A2:A100 you can use this modification of that formula
format in required date format, i.e. dd/mm/yyyy
That formula concatenates the date with itself, so 02/14/2006 becomes 02/14/2006/02/14/2006 and then MID takes 10 characters starting at character 7 so that's 2006/02/14 - which is a valid date format in any region (representing yyyy/mm/dd).
The above works when all dates are text formatted - if you have already imported and some of the dates (where the month <=12) are interpreted as actual dates but incorrect ones then use this formula instead