Hello,
I suggest to take
http://sulprobil.com/html/pstat.html
Regards,
Bernd
Thanks for the feedback
I am a retired teacher so I cannot resist teaching! So I am tempted to give
you more notes!
In =SUMPRODUCT(E6:E23,((D6:D23="Sales")+(D6:D23,"Production") ))
The part ((D6:D23="Sales")+(D6:D23,"Production"), get evaluated as two
arrays of Boolean values, as in something like
(TRUE, TRUE, FALSE, TRUE .....)+(TRUE, FALSE, FALSE, TRUE)
But when Excel sees math operations (like + or *) being done on Boolean, it
treats True as 1 and FALSE as zero. So we get
(1,1,0,1...)+(1,0,0,1...) which we will add to give 1,1,0,1
So the addition is equivalent to OR since (1+0), (0+1) and (1+1) always
make logical 1
But if we had ((D6:D23="Sales")+(D6:D23,"Production"),
We might get (1,1,0,1...)*(1,0,0,1...)
Which evaluates to 1, 0, 0, 1 because (1*1) is the only time we get 1, all
other combinations give 0. So multiplication is equivalent to AND
Here endth the second lesson,
best wishes

Signature
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
> Thanks! the notes I had didn't explain that and thanks for the new way to
> look at SumProduct!
[quoted text clipped - 35 lines]
>> >
>> > Terri