R
RJQMAN
I import a large amount of data from another source - the data
sometimes has the time of day displayed as (for example) 2:10PM and
sometimes as 2:10 PM with a space before the PM. I would like to be
able to sort the data by time of day, but because the two formats are
different, I do not know how to do it. Ideally I would like to insert
a space before the PM so that I can use a vacant column and convert
the time of day to a number (0.590277778) and then sort by the number
so that the times are consecutive, but if the data does not have a
space, I guess Excel does not know it is a time of day. Is there any
easy way to convert the data to add the space so that Excel recognizes
it as a time of day? A macro would be fine or any suggestion would be
very much appreciated.
Thanks in advance from a person who knows just enough about Excel to
screw it up...
sometimes has the time of day displayed as (for example) 2:10PM and
sometimes as 2:10 PM with a space before the PM. I would like to be
able to sort the data by time of day, but because the two formats are
different, I do not know how to do it. Ideally I would like to insert
a space before the PM so that I can use a vacant column and convert
the time of day to a number (0.590277778) and then sort by the number
so that the times are consecutive, but if the data does not have a
space, I guess Excel does not know it is a time of day. Is there any
easy way to convert the data to add the space so that Excel recognizes
it as a time of day? A macro would be fine or any suggestion would be
very much appreciated.
Thanks in advance from a person who knows just enough about Excel to
screw it up...