Convert text date including day name to DD/MM/YYYY

Paddington1881

Board Regular
Joined
Jan 12, 2005
Messages
62
Office Version
  1. 2016
Platform
  1. Windows
Hello
Could do with some help to convert a text date to Excel-friendly date. The date has been imported from an externally produced report. The cell shows:

Wednesday January 25, 2022

I'd like it to display as "25/01/2022". I don't need the day name included.

I'm working on a combination of LEFT, RIGHT, MID, LEN and FIND but can't seem to get the correct combination. If anyone has solved the same problem before, or has any tips, I'd be very grateful.

Many thanks
Darren
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If your date was in cell J1, the formula would look like this:
Excel Formula:
=DATEVALUE(MID(J1,FIND(" ",J1)+1,LEN(J1)))
Then just choose a format for the cell of "dd/mm/yyyy" to get it to display in the date format you want (instead of as a General number).
 
Upvote 0
If your date was in cell J1, the formula would look like this:
Excel Formula:
=DATEVALUE(MID(J1,FIND(" ",J1)+1,LEN(J1)))
Then just choose a format for the cell of "dd/mm/yyyy" to get it to display in the date format you want (instead of as a General number).

I'm sorry, I just get the #VALUE! error.
 
Upvote 0
I am guessing maybe you are using a European version of Excel that uses different date structures.

Can you tell me what this formula returns?
Excel Formula:
=DATEVALUE("January 25, 2022")
Does that return a number, date, or error?
 
Upvote 0
How about
Excel Formula:
=DATEVALUE(SUBSTITUTE(MID(A8,FIND(" ",A8,FIND(" ",A8)+1)+1,2),",","")&MID(A8,FIND(" ",A8)+1,3)&RIGHT(A8,4))

@Joe4 I get a #Value error with your formula as well.
 
Upvote 0
Solution
@Joe4 I get a #Value error with your formula as well.
OK. It works over here Stateside.
The differences between dates and formats between the different versions can be a real pain sometimes!
Thanks for coming up with a solution that should (hopefully) work for the OP.
 
Upvote 0
@Joe4 the formula =DATEVALUE("January 25, 2022") returned #VALUE! . Thank you for your efforts.

@Fluff your formula worked - thank you very much. Not in a million year would I have been able to come up with that, but I'm going to step through it to understand how it works.
 
Upvote 0
Glad we could help & thanks for the feedback.
The differences between dates and formats between the different versions can be a real pain sometimes!
Agreed.
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,025
Members
449,060
Latest member
LinusJE

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