When I tried
F2, followed by
Enter on your data it looked correct; it put the time element on a new line within the cell and applied word wrap to the cell but it still didn't convert to dates/times - they remained as strings. In fact, deeper digging showed that all the
F2 then
Enter did was to convert the single carriage return in the cells to a line feed and apply word wrap.
The danger with relying on Excel's interpretation of dates is that correct interpretation depends on your locale; do it in the US on your data and some of the dates will be wrongly interpreted (in the UK, since the date strings are in the format d/m/y all will be interpreted correctly).
Had your date strings not contained a time element I'd have advised using
Text-to-Columns, but this doesn't work well with an included time element.
Since the strings are all
d/m/y you can select all the cells containing what look like dates and run this macro:
Alan, the extra steps are easy and don't add any actual steps to the query: highlight both columns, right-click one of the headers and choose
Change Type then choose
Using locale… In the resultant dialogue box, choose
Date/Time in the first field and
English (United Kingdom) in the second. That's it.
Bookmarks