ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Data to Date conversion with multiple formats (https://www.excelbanter.com/excel-discussion-misc-queries/254527-data-date-conversion-multiple-formats.html)

adammled

Data to Date conversion with multiple formats
 
I have a single column of data that includes dates in two formats:
mddyy
mddyy hh:mm

I tried using the DataText-to-Columns... with mdy to change them to dates.
It worked for the mddyy data, but it messed up the mddyy hh:mm data.

I need to convert these so I can sort them by yearmonthdayhourminute.

Jacob Skaria

Data to Date conversion with multiple formats
 
If all the dates are in excel date format and not in text format...You can
custom format that to display date in any format along with the time for
example m/d/y hh:mm:ss and then the normal sort would sort the dates in
sequence..

--
Jacob


"adammled" wrote:

I have a single column of data that includes dates in two formats:
mddyy
mddyy hh:mm

I tried using the DataText-to-Columns... with mdy to change them to dates.
It worked for the mddyy data, but it messed up the mddyy hh:mm data.

I need to convert these so I can sort them by yearmonthdayhourminute.



All times are GMT +1. The time now is 09:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com