Sumproduct-multiple criteria for same range "OR"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I found a solution to my problem....

However, to designate "or" between multiple conditions existing in a
*single* range, you can create an array of these "or" conditions, using an
array constant, as:
=Sumproduct((Range1-{Condition1,Condition2,Condition3})*( ... )).

The above solution works IF I type in the conditions which are text...so
when I type in "Condition1" in quotes and "Condition2" in quotes it works as
I want it as an OR statement. However, when I try to put a cell reference as
the conditions where the cell reference is the actual text condition...it
does not work. Can anyone help? Thanks in advance.
 
Something like

=SUMPRODUCT((ISNUMBER(MATCH(Range1,E1:E2,0))*(Range2)))

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)
 
Works....thanks much!
Followup: why do I use the "ISNUMBER" when the criteria is text?....
thanks for your help.
 
The ISNUMBER does not refer to the value being tested, but the result of the
MATCYH function. If the Match finds a MATCH, it returns a numeric index,
else it returns an error. ISNUMBER measures that.

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

OR in IF 7
multiple sumproducts and now formula is too long 3
CF with 4 conditions 13
order of evaluation 5
Sumproduct 2
Conditional Formatting 3
Issue in conditional formatting 2
INDEX return multiple columns 1

Back
Top