Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default sorting time in a column

I want to sort time in a column using a macro, but instead of the time
running in order from midnight (00:00) I want the starting point to be 06:00
and run until 05:59.

At the moment I have the macro copying data and sorting the time a-z and am
manually resorting the data.

Matt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default sorting time in a column

How about using a hidden column. In that column use an if formula to
determine if the cell value is 5:59. If so then return 1 otherwise return
0. Now just sort on this column last and you will be in the order you want.
Or if you want a macro solution let me know and I can get you the same result
that way (using the same general logic) I would want to know how many columns
are in your spreadsheet so that I could use one of the unused columns for a
sort flag.
--
HTH...

Jim Thomlinson


"mattguerilla" wrote:

I want to sort time in a column using a macro, but instead of the time
running in order from midnight (00:00) I want the starting point to be 06:00
and run until 05:59.

At the moment I have the macro copying data and sorting the time a-z and am
manually resorting the data.

Matt

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default sorting time in a column


Thanks, I will give that a try.

Matt
Reply
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
Real-time sorting Fernando Ronci Excel Discussion (Misc queries) 11 April 16th 09 09:13 PM
Referencing date column A & time column B to get info from column TVGuy29 Excel Discussion (Misc queries) 1 January 24th 08 09:50 PM
Sorting a Pivot Table Column that is not the first column... [email protected] Excel Worksheet Functions 1 October 10th 07 09:02 PM
Right column doesn't change when sorting left column. nohope Excel Discussion (Misc queries) 2 July 19th 05 03:27 PM
how do I convert a date and time column to a time column thdorsky2 Excel Worksheet Functions 1 March 4th 05 08:49 PM


All times are GMT +1. The time now is 08:58 PM.

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

About Us

"It's about Microsoft Excel"