Sumproduct question
Try this, John:
=SUMPRODUCT(--(LEN(A1:A10)=2),--(LEN(A1:A10)<=30),--
(TRIM(A1:A10)<"guest"))
Not sensitive to case, and will take account of any leading or
trailing spaces around "guest".
Hope this helps.
Pete
On Jan 29, 7:41*pm, John in Wembley wrote:
Hi team
Ive a sheet at work with the names of patients & wich room they are
in. I count the 'census' with sum product:
=SUMPRODUCT(--(LEN(A1:A10)=2),--(LEN(A1:A10)<=30))
As you see, I count anything from a patient whos intials only have
been entered in the sheet up to their full name.
Is there anyway I can exclude counting "guest" if a family member is
in one of the patient rooms (the phrase "guest" is entered in the
sheet)?
|