View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jimbo213 Jimbo213 is offline
external usenet poster
 
Posts: 30
Default How to count array with OR condition


Hi

I have searched this group and not found an answer.

I need
1) a count of the number of rows having a 3 in ANY of the three columns
2) where column D contains R

A B C D
1 1 3 3 R
2 1 1 2 x
3 2 1 1 x
4 1 3 4 x
5 3 1 3 R

The answer should be 3 [row 1,5] because those rows have a 3 in A or B or C
AND column D=R

I've tried an array formula

=SUM((A1:A5=3)*(B1:B5=3)*(C1:C5))*(D1:D5="R")1 but that gets zero because
the * operator is treated as an AND

Is there a different operator that is treated as an OR condition?

--
Thanks for your reply & assistance.
Jimbo213