Link to home
Start Free TrialLog in
Avatar of Will Schmidt
Will SchmidtFlag for United States of America

asked on

conversion formula

In excel I have about 250 entries with dates shown as this: "Fri Dec 8 12:57:00 CST 2017"  I want to change them to this: "8/12/17".  What is the formula for doing this?
Avatar of Bill Prew
Bill Prew

Do you want to preserve the time, or do not need that?


»bp
Assuming your string is in A2, then try this...

In B2
=DATEVALUE(MID(A2,9,2)&"-"&MID(A2,5,3)&"-"&RIGHT(A2,4))

Open in new window

and custom format the formula cell as d/m/yy
If you just want the date part, then use this formula, and then format the resulting column as a date format that you want.

=DATEVALUE(CONCATENATE(TRIM(MID(A1,9,2)),"-",MID(A1,5,3),"-",RIGHT(A1,4)))

Open in new window


»bp
@Subodh Tiwari (Neeraj),

We think alike, I'm just 22 seconds slower at typing :).


»bp
You are right Bill! :)

You may call me Neeraj only. :)
And if you want to get the time component you could do the following.  But that ignores the time zone component, taking that into consideration (assuming they could vary, and not knowing what time zone you want to convert to) would increase complexity substantially...

=TIMEVALUE(TRIM(MID(A1,11,9)))

Open in new window


»bp
Avatar of Will Schmidt

ASKER

Sorry I should have been more clear.  All i want is Month, date, and year
Okay, thanks, I think you have a solution for that.


»bp
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks for your efforts in helping me with this little issue.  It was a great help to me.  I used the last comment and it worked wonderfully .
Yes, that is what I am trying to do and it worked fine.  thank you very much for helping me out with this
You're welcome Will! Glad it worked as desired.