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?
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.

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:


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
Copy and paste special|values to convert from a formula to a value.  Then format as in the first case.


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.    

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