Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need create a formula that show how many patients were available to be seen
on each day of the month. I would like to make the cut-off for changes of dates as 3pm, meaning that one day is from 3pm - 3pm the next day. e.g. - 12/30/09 available patients would be all those there from 3:01pm on 12/29/09 to 3:00pm on 12/30/09. If they're available for the full day count them only. Using this logic with the data below on 12/30/09 only 2 patients were available to be seen. Name Request DT Res DT P1 12/27/2009 1:26 12/31/2009 16:28 P2 12/27/2009 12:00 12/30/2009 7:20 P3 12/23/2009 9:09 12/23/2009 9:12 P4 12/18/2009 10:25 12/18/2009 12:44 P5 12/29/2009 6:04 12/31/2009 9:20 P6 12/13/2009 15:37 12/13/2009 15:39 -- Miroshak |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Your question is not clear enough for an outsider, because you don't specify
clearly the criterium of being available, what do "Request DT" and "Res DT" mean, but maybe this formula gives you a guide: if days are in column D then enter formula in E2 and fill it down as required; it counts values in C2:C7 between 3pm - 3pm the next day. Clarify yor request for more help! -- Regards! Stefi €˛miroshak€¯ ezt Ć*rta: I need create a formula that show how many patients were available to be seen on each day of the month. I would like to make the cut-off for changes of dates as 3pm, meaning that one day is from 3pm - 3pm the next day. e.g. - 12/30/09 available patients would be all those there from 3:01pm on 12/29/09 to 3:00pm on 12/30/09. If they're available for the full day count them only. Using this logic with the data below on 12/30/09 only 2 patients were available to be seen. Name Request DT Res DT P1 12/27/2009 1:26 12/31/2009 16:28 P2 12/27/2009 12:00 12/30/2009 7:20 P3 12/23/2009 9:09 12/23/2009 9:12 P4 12/18/2009 10:25 12/18/2009 12:44 P5 12/29/2009 6:04 12/31/2009 9:20 P6 12/13/2009 15:37 12/13/2009 15:39 -- Miroshak |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
With the query date 12/30/09 in cell D1 try the below formula...
=SUMPRODUCT((B1:B10<D1-1+TIME(15,0,0))*(C1:C10=D1+TIME(15,0,0))) -- Jacob "miroshak" wrote: I need create a formula that show how many patients were available to be seen on each day of the month. I would like to make the cut-off for changes of dates as 3pm, meaning that one day is from 3pm - 3pm the next day. e.g. - 12/30/09 available patients would be all those there from 3:01pm on 12/29/09 to 3:00pm on 12/30/09. If they're available for the full day count them only. Using this logic with the data below on 12/30/09 only 2 patients were available to be seen. Name Request DT Res DT P1 12/27/2009 1:26 12/31/2009 16:28 P2 12/27/2009 12:00 12/30/2009 7:20 P3 12/23/2009 9:09 12/23/2009 9:12 P4 12/18/2009 10:25 12/18/2009 12:44 P5 12/29/2009 6:04 12/31/2009 9:20 P6 12/13/2009 15:37 12/13/2009 15:39 -- Miroshak |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Assuming the date to check is in cell E1, try
=SUMPRODUCT(--(B2:B7<=$E$1-1+"15:00:00"),--(C2:C7=$E$1+"15:00:00")) HTH Bob "miroshak" wrote in message ... I need create a formula that show how many patients were available to be seen on each day of the month. I would like to make the cut-off for changes of dates as 3pm, meaning that one day is from 3pm - 3pm the next day. e.g. - 12/30/09 available patients would be all those there from 3:01pm on 12/29/09 to 3:00pm on 12/30/09. If they're available for the full day count them only. Using this logic with the data below on 12/30/09 only 2 patients were available to be seen. Name Request DT Res DT P1 12/27/2009 1:26 12/31/2009 16:28 P2 12/27/2009 12:00 12/30/2009 7:20 P3 12/23/2009 9:09 12/23/2009 9:12 P4 12/18/2009 10:25 12/18/2009 12:44 P5 12/29/2009 6:04 12/31/2009 9:20 P6 12/13/2009 15:37 12/13/2009 15:39 -- Miroshak |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sorry, forgot to paste the formula:
=SUMPRODUCT(--($C$2:$C$7=D2-1+TIME(15,0,0)),--($C$2:$C$7<=D2+TIME(15,0,0))) -- Regards! Stefi €˛Stefi€¯ ezt Ć*rta: Your question is not clear enough for an outsider, because you don't specify clearly the criterium of being available, what do "Request DT" and "Res DT" mean, but maybe this formula gives you a guide: if days are in column D then enter formula in E2 and fill it down as required; it counts values in C2:C7 between 3pm - 3pm the next day. Clarify yor request for more help! -- Regards! Stefi €˛miroshak€¯ ezt Ć*rta: I need create a formula that show how many patients were available to be seen on each day of the month. I would like to make the cut-off for changes of dates as 3pm, meaning that one day is from 3pm - 3pm the next day. e.g. - 12/30/09 available patients would be all those there from 3:01pm on 12/29/09 to 3:00pm on 12/30/09. If they're available for the full day count them only. Using this logic with the data below on 12/30/09 only 2 patients were available to be seen. Name Request DT Res DT P1 12/27/2009 1:26 12/31/2009 16:28 P2 12/27/2009 12:00 12/30/2009 7:20 P3 12/23/2009 9:09 12/23/2009 9:12 P4 12/18/2009 10:25 12/18/2009 12:44 P5 12/29/2009 6:04 12/31/2009 9:20 P6 12/13/2009 15:37 12/13/2009 15:39 -- Miroshak |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I sum a range using two parameters (eg location & date) | Excel Discussion (Misc queries) | |||
Excel 2002: How to sum up base on date parameters ? | Excel Discussion (Misc queries) | |||
Count on multiple parameters | Excel Worksheet Functions | |||
Using parameters to use different source files dependant on the date. | Excel Discussion (Misc queries) | |||
Help : Using Parameters with External Date Query | Excel Discussion (Misc queries) |