Convert this text into a useable date format

Mark F

Well-known Member
Joined
Jun 7, 2002
Messages
515
Office Version
  1. 365
Platform
  1. Windows
Hi

I have tried various things, but I am sort of admitting defeat!

In column A I have text fields in the format April 1, 2023 08:30

I am looking to convert this into a useable Excel date format and time format, in Column B. 01/04/2023, or 45017

I know it should be simple, but I can't work it out.

Any help appreciated

Mark
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Select data -> Text-to-Column -> Delimited -> Uncheck all -> Date (MDY) -> Finish.
 
Upvote 0
Thanks,

It's a good idea, and one I hadn't considered, but for the data I have that option isn't working unfortunately. Next is greyed out.

1717095120089.png
 
Upvote 0
Your data is MDY and hit finish.
Another option is to try:
Excel Formula:
=DATEVALUE(A1)
 
Upvote 0
Date prel.xlsx
ABC
1
2April 1, 2023 08:301-Apr-23 8:301-Apr-23 8:30
3
Sheet1
Cell Formulas
RangeFormula
B2B2=--CONCAT(INDEX(TEXTSPLIT(A2,{" ",","},,1),{2,1,3}))+RIGHT(A2,4)
C2C2=LET(x,TEXTSPLIT(A2,{" ",","},,1),DATE(INDEX(x,3),MONTH(1&INDEX(x,1)),INDEX(x,2))+INDEX(x,4))
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,996
Members
452,542
Latest member
Bricklin

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