Mix of US and UK dates - how to fix?

TheWennerWoman

Active Member
Joined
Aug 1, 2019
Messages
270
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have inherited a file which has a mixture of US and UK dates - the locale of this system is UK.

So I have data like 31/03/2020 but also 2/28/2020. The US dates are aligned to the left and the UK ones to the right.

How do I fix? I've read about text to columns, formatting the cells and stuff like that but none of it works.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,​
if at least you post your attachment …​
 
Upvote 0
highlighted ones are US format
Capture123.JPG
 
Upvote 0

As a screenshot can't be obviously loaded to Excel as data so link your file with a files host website or via this forum tool XL2BB …​
 
Upvote 0
A possible formula option

MRXLMAY21.xlsm
AB
22/28/202028/02/2020
328/02/202028/02/2020
402/02/202002/02/2020
502/02/202002/02/2020
6
Sheet5
Cell Formulas
RangeFormula
B2:B5B2=IFERROR(DATEVALUE(SUBSTITUTE(RIGHT(A2,LEN(A2)-FIND("/",A2)),"/","/"&LEFT(A2,FIND("/",A2)))),A2)


Hope that helps.
 
Upvote 0
Solution
referencetablev2.xlsx
D
530903/09/2018
531003/09/2018
531103/12/2018
53122/26/2018
53132/26/2018
53142/26/2018
53152/27/2018
53162/27/2018
53172/28/2018
53182/28/2018
53192/28/2018
53202/28/2018
53212/28/2018
532202/01/2018
532302/01/2018
532402/01/2018
532503/01/2018
Reed
 
Upvote 0
I have inherited a file which has a mixture of US and UK dates

I'd be willing to bet that the dates are all in US format but Excel has recognised those where the day is less than 12 as a UK date, switching the day and month in the process.

You can convert all the dates by highlighting the column with the dates and choosing "Data" > "Text to columns" > "Next" > "Next" > Choose the "Date" option in the column data format section and choose "MDY" in the dropdown > "Finish"
 
Upvote 0
No it's definitely a mixture and text to columns doesn't work (in fact, nothing seems to work!)
 
Upvote 0

Forum statistics

Threads
1,215,250
Messages
6,123,887
Members
449,131
Latest member
leobueno

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top