sumproduct logic
From: mark1 (anonymous_at_discussions.microsoft.com)
Date: 05/06/04
- Next message: Bernie Deitrick: "Re: A macro for pasting this formula"
- Previous message: LLP: "wrong number appears"
- Next in thread: Arvi Laanemets: "Re: sumproduct logic"
- Reply: Arvi Laanemets: "Re: sumproduct logic"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 May 2004 11:07:59 -0700
I have this formula, entered as an array:
=SUMPRODUCT((A9:A7250)*(IF((B9:B7250>H9)+(C9:C7250>H9)+
(D9:D7250>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?
- Next message: Bernie Deitrick: "Re: A macro for pasting this formula"
- Previous message: LLP: "wrong number appears"
- Next in thread: Arvi Laanemets: "Re: sumproduct logic"
- Reply: Arvi Laanemets: "Re: sumproduct logic"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|