Text string to a date conversion

Mark McInerney

Active Member
Joined
Apr 4, 2012
Messages
283
Office Version
  1. 365
Platform
  1. Windows
Hi Folks - Thanks in advance for checking this out.

I have a text string (see below) - is there a quick way to format this as DD/MM/YYYY?


Sunday, September 08, 2024
 
Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
N.B.
- Regional Date format dd-mmm-yy
- I am not sure of the source information or what result(s) are required
- 3 versions to test

Dates and Time 2024.xlsm
AB
11Sunday, September 08, 20248-Sep-24
12Sunday, September 08, 20248-Sep-24
13Sunday, September 08, 20248-Sep-24
14
4i
Cell Formulas
RangeFormula
B11B11=--TEXTJOIN(,1,CHOOSECOLS(TEXTSPLIT(A11,{","," "}),4,3,6))
B12B12=LET(t,TEXTSPLIT(A12,{" ",","},,1),DATE(INDEX(t,4),MONTH(INDEX(t,2)&"-1"),INDEX(t,3)))
B13B13=--CONCAT(INDEX(TEXTSPLIT(A13,{" ",","}),{4,3,6}))
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,635
Members
452,661
Latest member
Nonhle

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