L
Laurence Lombard
I have not managed to get an array formula to work on this problem. I wonder
if any of you could help.
Below is an example of a list of Terminally ill patients. One would like to
know how many patients are on the care list at Givendate ie those who have
been admitted before Givendate, but who have not been put on hold OR have
died by GivenDate. A patient could be on hold AND died - the formula must
not double count this case.
One needs to check for empty cells hence my test B1:B100>Date(1900,1,1)
My attempts have gone along the following (split for readability)
SUM(
(B1:B100>Date(1900,1,1) * (B1:B100 < GivenDate)
*OR
(C1:C100 > Date(1900,1,1)*(C1:C100 >= GivenDate)
,
(D1
100>(Date(1900,1,1) *( D1
100>=Givendate)
)
A,B,C,D
NAME,ADMIT,ON HOLD,DIED
Jack,01/03/2003,02/04/2003
Steven,15/03/2003,,19/04/2003
Mary,16/03/2003,18/03/2003,25/03/2003
Peter,01/04/2003
Susan,15/06/2003
if any of you could help.
Below is an example of a list of Terminally ill patients. One would like to
know how many patients are on the care list at Givendate ie those who have
been admitted before Givendate, but who have not been put on hold OR have
died by GivenDate. A patient could be on hold AND died - the formula must
not double count this case.
One needs to check for empty cells hence my test B1:B100>Date(1900,1,1)
My attempts have gone along the following (split for readability)
SUM(
(B1:B100>Date(1900,1,1) * (B1:B100 < GivenDate)
*OR
(C1:C100 > Date(1900,1,1)*(C1:C100 >= GivenDate)
,
(D1


)
A,B,C,D
NAME,ADMIT,ON HOLD,DIED
Jack,01/03/2003,02/04/2003
Steven,15/03/2003,,19/04/2003
Mary,16/03/2003,18/03/2003,25/03/2003
Peter,01/04/2003
Susan,15/06/2003