Converting a column that has mixed formatted fields to a column of all dates in Excel

Experts,

The attched file has a mixture of formats.  although they all appear to be dates, some are formatted dates that are actually a text field and the others are dates.

Can someon tell me how to create a column of all dates from these dates?
Mismatch-Dates.xlsx
moriniaAdvanced Analytics AnalystAsked:
Who is Participating?

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

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

Haris DulicIT ArchitectCommented:
Hi,

you can use this formula:
=+IF(ISERROR(DATEVALUE(A2)),TEXT(A2,"dd/mm/yyyy"),TEXT(DATEVALUE(A2),"dd/mm/yyyy"))

Open in new window


I added this formula to your example and attached it..
Mismatch-Dates-corr---Copy.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
Tj aCommented:
The easiest way is to create a new column of values. Just go into an empty column then do this:

=VALUE(A2)

and drag that down for every cell in your old date range. Now just select that cell range and click "format cells" then select date and pick a date format of your choosing.
See the file attached.
Mismatch-Dates.xlsx
0
Rob HensonFinance AnalystCommented:
Without use of a helper column, you can use the Text to Columns function.

Select the column and Start the TTC function on the Data tab:

Step 1 - Choose Delimited
Step 2 - Deselect all delimiter options
Step 3 -  Select Date and use dropdown to select the Date format of source data

Click Finish.

Thanks
Rob H
0
Rob HensonFinance AnalystCommented:
Another option:

Type 0 in a blank cell and copy to the Clipboard - Ctrl C
Select the range of dates and then Selecte the Paste Special window.
In the top pane choose Values and then in the middle section select Add
Click OK

This forces excel to re-evaluate the contents of the cells and adds 0 to them. The text cells will be converted to dates.

Thanks
Rob H
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.