R
Rene
This formula works except when a different column has data in it.
SUMPRODUCT(--(M2:M10="b"),--(C2:C10<100),--(C2:C10>50))/COUNTIF(M2:M10,"b")
c d m
75 b
200 b
25 b
It returns 33% instead of 50%
SUMPRODUCT(--(M2:M10="b"),--(C2:C10<100),--(C2:C10>50))/COUNTIF(M2:M10,"b")
c d m
75 b
200 b
25 b
It returns 33% instead of 50%