Extract dy month and year from date in excel 2007

Hi There,

I have a huge amount of data coming in.
One of the fields is in the format
Fri Apr 06 01:04:46 2011

I need to extract this in three separte columns as

Month      Day     year
Apr           06       2011


I tried the month and year does not work.


Any help would be appreciated.

SMadhaviAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jppintoCommented:
If the data is formated as text, not date, then you can use some simple MID and RIGHT functions like on the attached file.
If the data is formated as date, you could do it simple using MONTH, DAY and YEAR functions.

jppinto
Extract-Dates.xlsx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
barry houdiniCommented:
Try these formulas for Month, Day and Year respectively, assuming data in A2

=RIGHT(A2,4)

=MID(A2,5,3)

=MID(A2,9,2)

regards, barry
0
jppintoCommented:
Barry, this where my proposed formulas:

=RIGHT(A2,4)
=MID(A2,5,3)
=MID(A2,9,2)

You were right on target! LOLOL

Regards,

jppinto
0
barry houdiniCommented:
....great minds, JP.....

My only reservation about those formulas is that the results are text, maybe better to convert to a date then you can do any "date math" you want......

regards, barry
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.