Changing Date format in Excel

I have some files sent to me that have the dates as YYMMDD and I would like a Macro that will change the date to MM/DD/YYYY can any one help me?
akeyesAsked:
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.

iaminitCommented:
You probably don't need a macro.  It may be that the dates are simply formatted as YYMMDD.  In this case, select the dates and then change the format:

format|cells|custom|mm/dd/yyyy

Or, if the dates are currently entered as text or numbers, use a formula to convert.  For example, if the date is in cell A1, use the formula
=DATE(LEFT(A1,2),MID(A1,3,2),RIGHT(A1,2))
Copy and paste special|values to convert from a formula to a value.  Then format as in the first case.


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
akeyesAuthor Commented:
I tried this format|cells|custom|mm/dd/yyyy
my 740108 and changed it to 5/6/3926.  So this did not work for me.    

0
akeyesAuthor Commented:
After playing around a little I was able to get this to work, Thanks.
0
criCommented:
akeyes, iaminit second procedure most probably will fix it.
0
criCommented:
I said so.
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 Office

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.