Convert ddd mm/dd/yyyy to ddd dd/mm/yyyy

SachinC

New Member
Joined
Sep 25, 2017
Messages
26
Hi,
I have an issue.
I have some data in Excel which I need to covert.
The data is in the format: Mon 12/30/2017 where it needs to be Mon 30/12/2017.
I have tried Data>Text To Columns>DMY with no avail - so please do not mention that.
Helpful advise welcomed as it's bugging me!
Thank you.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Is the value in the cell actually a DATE formatted as ddd mm/dd/yyyy
Or is it a TEXT string ?

What does this return
=ISNUMBER(A1)
Where A1 is a cell with the value in it.
 
Upvote 0
Try this, and format the cell with the formula as ddd dd/mm/yyyy

=REPLACE(A1,1,4,"")+0
 
Upvote 0

Excel 2010
AB
1Mon30-12-17
2Mon 12/30/2017Sat Dec 30, 2017
9e
Cell Formulas
RangeFormula
B2=(MID(A2,8,2)&"/"&MID(A2,5,2)&"/"&RIGHT(A2,4))+0


Data Text to Column will work. First separate the "Mon " part.
The formula works if the text has two characters for day and month.
N.B. There are no trailing spaces.
 
Upvote 0
The formula I posted will only work if you have US date format on your pc.
Dave's formula handles that, but assumes you will always have 2 digit day and month.

This will work for US or UK, either single or double digit day/month

=DATE(RIGHT(A1,4),SUBSTITUTE(RIGHT(LEFT(A1,6),2),"/",""),SUBSTITUTE(LEFT(RIGHT(A1,7),2),"/",""))
 
Last edited:
Upvote 0
Hello SachinC

Try the suggestion in post 5.


What regional settings exist on your computer?



If your data is consistent, a formula solution is possible.

Post a few rows of your data and the expected result.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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