Excel Date Field - Inconsistent mm/dd/yy and mm/dd/yyyy

I have a date field where some of the entries are in the format


And some are in mm/dd/yyyy

Please offer how I can get all of them to be the first format - mm/dd/yy. I have tried changing to short date but this does not work,

Thank you.
exp vgAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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  can run a simple macro to modify the data.
Just change this row Set rng = Range("A2:A15") to whatever your range is.
Sub Demo()

    Dim rng As Range, cell As Range

    Set rng = Range("A2:A15")

    For Each cell In rng
        cell.Value = Format(cell.Value, "mm/dd/yy")
    Next cell

End Sub

Open in new window

exp vgAuthor Commented:
Thank you - is there a way to do this with a formula?
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Did custom format with mm/dd/yy not help?
Have you imported these dates into excel?
Also have you checked whether all of these are real dates by placing a formula =ISNUMBER(A2) in a column assuming all your dates are in col. A and starts from row2. If you get false for few dates that means those are not real dates but text values.

Would be helpful if you can upload a small sample data.
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.


Open in new window

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
Wayne Taylor (webtubbs)Commented:
I assume the dates in mm/dd/yyyy format are actually text values. To convert them to date values, enter the number 1 in a blank cell. Copy that cell, select your entire date range, the Paste Special > Multiply. This will force all text values to be converted to numerical values which can be correctly formatted as dates.
exp vgAuthor Commented:
Thank you.
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.