#1   Report Post  
Posted to microsoft.public.excel.misc
Jamesy
 
Posts: n/a
Default Grouping Times

Hi All,

I'm hoping this will be an easy answer, heres my query...

00:01 - 12:00 = 1, 12:01 - 18:00 = 2, etc etc

A B
12:45 2
11:41 1
00:25 1
13:15 2
14:54 2

Now from the criteria above I would like column B to show 1's & 2's etc etc.

Any ideas guys??

Thanks,
James.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Grouping Times

Try:

Hours are divide by 24 to get Excel representation i.e 24 hours 1.0, 12
hours=0.5

=IF(A2(18/24),3,IF(A2(12/24),2,1))

HTH

"Jamesy" wrote:

Hi All,

I'm hoping this will be an easy answer, heres my query...

00:01 - 12:00 = 1, 12:01 - 18:00 = 2, etc etc

A B
12:45 2
11:41 1
00:25 1
13:15 2
14:54 2

Now from the criteria above I would like column B to show 1's & 2's etc etc.

Any ideas guys??

Thanks,
James.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Jamesy
 
Posts: n/a
Default Grouping Times

Toppers you legend!

Quality stuff, thanks a bunch!

"Toppers" wrote:

Try:

Hours are divide by 24 to get Excel representation i.e 24 hours 1.0, 12
hours=0.5

=IF(A2(18/24),3,IF(A2(12/24),2,1))

HTH

"Jamesy" wrote:

Hi All,

I'm hoping this will be an easy answer, heres my query...

00:01 - 12:00 = 1, 12:01 - 18:00 = 2, etc etc

A B
12:45 2
11:41 1
00:25 1
13:15 2
14:54 2

Now from the criteria above I would like column B to show 1's & 2's etc etc.

Any ideas guys??

Thanks,
James.

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
Running a Macro a number of times JWF Excel Discussion (Misc queries) 2 March 14th 06 12:10 PM
sorting multiple minimum times the swimmer Excel Discussion (Misc queries) 2 December 23rd 05 03:32 AM
Charting and analyzing Times' times data for trends Johnny Excel Discussion (Misc queries) 1 May 5th 05 02:36 AM
Copy from worksheet to another x times Union70 Excel Discussion (Misc queries) 0 March 7th 05 10:03 PM
SUMPRODUCT ON TIMES Bob Phillips Excel Worksheet Functions 1 January 13th 05 06:28 PM


All times are GMT +1. The time now is 04:51 AM.

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"