M
mark1
I have this formula, entered as an array:
=SUMPRODUCT((A9:A7250)*(IF((B9:B7250>H9)+(C9:C7250>H9)+
(D9
7250>H9)+(E9:E7250>H9)+(F9:F7250>H9),1,0)))
I understand that the + sign acts as "OR", but even though
the formula works, I can't quite get the logic. To me it
evaluates each column and assigns either a one or zero to
each cell within that column. Then the + sign adds the
corresponding cells from each column up. So you may have
values that are greater than 1. However, I don't know how
the formula moves from there. How does the IF know
whether to give it a one or zero? I mean I know it's
looking at each value and if it's greater than 0, it
assigns it a value of 1. But how does it know that I want
values greater than zero? Where is that in the formula?
=SUMPRODUCT((A9:A7250)*(IF((B9:B7250>H9)+(C9:C7250>H9)+
(D9

I understand that the + sign acts as "OR", but even though
the formula works, I can't quite get the logic. To me it
evaluates each column and assigns either a one or zero to
each cell within that column. Then the + sign adds the
corresponding cells from each column up. So you may have
values that are greater than 1. However, I don't know how
the formula moves from there. How does the IF know
whether to give it a one or zero? I mean I know it's
looking at each value and if it's greater than 0, it
assigns it a value of 1. But how does it know that I want
values greater than zero? Where is that in the formula?