Dynamic Date - Converting Date Format from US to UK

Zakky

Board Regular
Joined
Mar 26, 2016
Messages
152
Office Version
  1. 365
Platform
  1. Windows
Hi All, Is there a way to make the formula dynamic so it works on all different formats (only works on the first date at the moment). Any help would be greatly appreciated. Thank you.


)
Dates.PNG
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Did you consider just copying the values into col B and formatting that column as UK dates?
 
Upvote 0
Had a similar question today. Try this:
Excel Formula:
=--TEXTJOIN("/",1,INDEX(TEXTSPLIT(A2,"/"),{2,1,3}))
 
Upvote 0
Upvote 0
Use Custom format for your personal preference with the date format

Dates and Time 2024.xlsm
AF
1
210/27/202327/Oct/2023
32/27/202327/Feb/2023
43/2/20232/Mar/2023
55/07/20237/May/2023
62/27/2327/Feb/2023
7
5i
Cell Formulas
RangeFormula
F2:F6F2=LET(dt,TEXTSPLIT(A2,"/"),y,INDEX(dt,3),--(IF(LEN(y)<4,"20"&y,y)&"-"&INDEX(dt,1)&"-"&INDEX(dt,2)))
 
Upvote 0
Cubist & Dave Patton. Many thanks for the prompt replies. Each solution works like a charm (does what it says on the tin). Happy days! Have a nice day.
 
Upvote 0
I guess I just don't get it. I copied the US dates to the next column and formated them to UK dates and got the posted result. Why the need for complex formulas?
 
Upvote 0
I am surprised they worked. My guess is that rows 5 and 6 are dates / numeric and those formulas should fail on those rows.

Building on the previous suggestions and assuming your default date format is dd/mm/yyyy (UK not US) it should need something like this.
Rich (BB code):
=--TEXTJOIN("/",1,INDEX(TEXTSPLIT(TEXT(A2,"dd/mm/yyyy"),"/"),{2,1,3}))

@Micron the OP's profile says US but it sounds like his default date format is UK.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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