View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
John in Wembley John in Wembley is offline
external usenet poster
 
Posts: 26
Default Sumproduct question

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)?