How can I convert this date expression "19410712" to "January 12, 1941" or "1/12/1941"?
How can I convert this date expression "19410712" to "January 12, 1941" or "1/12/1941"?
I think u can go to data -> text to columns -> choose fixed width and separate the text into 1941,07,12...after that use concatenate function(e.g. =concatenate(A3,"/",A2,"/",A1).)Originally Posted by ljw
or u can try tis out
=CONCATENATE(MID(A1,7,2),"/",MID(A1,5,2),"/",MID(A1,1,4))
Juz put your text in A1...
I can see where the 1941 comes from, but not sure how you get January out of either 07 or 12, but try theseOriginally Posted by ljw
=MID(A1,5,2)&"/"&RIGHT(A1,2)&"/"&LEFT(A1,4) this will give a text result of 07/12/1941
=1*(RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4)) custom format to "mmmm dd, yyyy" without the " "
=TEXT(A1,"0000-00-00")*1 custom format to "mm/dd/yyyy" without the " "
Re-edited
Last edited by oldchippy; 03-02-2007 at 05:50 AM.
oldchippy
-------------
Blessed are those who can give without remembering and take without forgetting
If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
***Originally Posted by oldchippy
I apologize for not reading the date correctly. Late nite here. Thanks for your help.
***Originally Posted by wei82
***
Thanks for the simple fix. I apologize for misreading the date.
Thank you all for the help. Somewhat new at this!
Last edited by VBA Noob; 03-02-2007 at 09:20 AM.
Glad to help - thanks for the feedback
You can actually convert such dates in situ, with Text to columns without having to split and concatenate....
Select column of dates
Data > Text to columns > Next > Next
At step 3 choose "date" under "column data format" and YMD option
Finish
***Originally Posted by daddylonglegs
So simple! Learned much from this community. Hope I can reciprocate. Thank you all from the windy isle of Avalon in southern NJ.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks