Thread: SUMPRODUCT
View Single Post
  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Biff wrote:
Hi!

You can't use a named range in the context of OR like that.

You would need to list the individual conditions like this:

=SUMPRODUCT((A12:A19=A5)*(B12:B19<=B5)*(Z12:Z19=
{"A","B","C"})*E12:E19)

Using the double unary in the above formula results in a
#VALUE! error so the need for multiplication of the arrays.


That can be re-written as...

=SUMPRODUCT(--(A12:A19=A5),--(B12:B19<=B5),--ISNUMBER(MATCH(Z12:Z19,
{"A","B","C"},0)),E12:E19)