Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,510
Default Lookup

Hi Whitney,

Following formulas should work on your sample data. You need to make one
criteria greater than () and the next one less than or equal to (<=)
otherwise a time like 6:15:00 would get included in the 6:00:00 to 6:15:00
and also 6:15:00 to 6:30:00. Based on this, you might have to adjust the
formulas to return the required values. You might want to make the first
criteria equal to or greater (=) and the second one less than (<)

Examples assuming:
Dates are in column A
Times in column B
Agents in column C

6:00 to 6:15 =SUMIFS(C2:C39,B2:B39,"6:00:00",B2:B39,"<=6:15:00 ")

6:15 to 6:30 =SUMIFS(C2:C39,B2:B39,"6:15:00",B2:B39,"<=6:30:00 ")

6:30 to 6:45 =SUMIFS(C2:C39,B2:B39,"6:30:00",B2:B39,"<=6:45:00 ")

6:45 to 7:00 =SUMIFS(C2:C39,B2:B39,"6:45:00",B2:B39,"<=7:00:00 ")

7:00 to 7:15 =SUMIFS(C2:C39,B2:B39,"7:00:00",B2:B39,"<=7:15:00 ")


Feel free to get back to me if this does not answer your question as you
would like.

Regards,

Ossiemac



"Whitney" wrote:

Can anyone help with a lookup formula that will look at the cell closes to
6:00, 6:15, 6:30, 6:45, 7:00, etc. and tell me what the number of agents
we're (cell to the right) in each interval? There is no pattern, so the
lookup value will not always be in the same cell location each day.


Date Time Agents Available
11/2/2007 06:12:56 15
11/2/2007 06:14:56 15
11/2/2007 06:15:20 14
11/2/2007 06:15:28 15
11/2/2007 06:15:52 14
11/2/2007 06:16:40 13
11/2/2007 06:22:16 14
11/2/2007 06:23:28 15
11/2/2007 06:23:52 16
11/2/2007 06:24:16 15
11/2/2007 06:24:56 14
11/2/2007 06:25:12 13
11/2/2007 06:25:20 13
11/2/2007 06:25:28 12
11/2/2007 06:28:40 15
11/2/2007 06:29:20 14
11/2/2007 06:30:00 15
11/2/2007 06:30:08 14
11/2/2007 06:30:56 15
11/2/2007 06:31:04 14
11/2/2007 06:32:48 13
11/2/2007 06:44:48 13
11/2/2007 06:44:56 14
11/2/2007 06:45:04 13
11/2/2007 06:45:12 13
11/2/2007 06:45:20 13
11/2/2007 06:45:28 13
11/2/2007 06:45:36 12
11/2/2007 06:45:44 12
11/2/2007 06:45:52 12
11/2/2007 06:59:20 20
11/2/2007 06:59:28 20
11/2/2007 07:00:00 21
11/2/2007 07:00:08 22
11/2/2007 07:00:16 23
11/2/2007 07:00:40 22
11/2/2007 07:01:12 23
11/2/2007 07:02:24 22

 
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
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
How do I lookup and return different values when the lookup value. kg Excel Discussion (Misc queries) 1 January 20th 05 12:53 AM


All times are GMT +1. The time now is 12:27 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"