LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default sorting time format

It's not clear if the times are entered as numbers with the cells
formatted to show leading zeroes, or if they are entered as text.
However, you can introduce this formula in a helper column:

=IF(VALUE(A1)<600,1,0)

assuming your "time" data starts in cell A1. Copy this formula down
and include this helper column in your sort range, sorting on this
field first then on your time field. This should drop all the times
before 06:00 down to the bottom of your sorted list. You can get rid
of the helper column after you have sorted.

Hope this helps.

Pete

On Mar 30, 12:42 pm, "Guerilla" wrote:
Hello,

I have a spreadsheet which contains arrival and departure times of
vehicles. The format of this is "0100" and not 01:00. This to speed
up input. However, when sorting the data I need to start the column
at 0600 (morning) and run to 0559. When I sort the data at the
moment, I get all of the 0000 and so on until 2359, and I have to
manually move the 0000 - 0559 to the end of the dataset. How can I
get Excel to sort the data starting at 0600 instead of 0000?

Regards,

Matt



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Cell format to mimic time format [email protected] Excel Discussion (Misc queries) 6 November 7th 06 09:17 PM
sorting two columns at the same time bullseye Excel Worksheet Functions 3 June 6th 06 05:18 PM
convert time imported as text to time format for calculations batfish Excel Worksheet Functions 3 October 27th 05 11:24 PM
Converting time figures into 24-hour format & sorting them... Clint Johnson Excel Worksheet Functions 1 February 23rd 05 01:23 AM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM


All times are GMT +1. The time now is 02:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"