Sumproduct ??

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

Guest

I’ve used this formula successfully
=SUMPRODUCT(--(I1:I18="GTB1"),--(J1:J18=0))

What I would like to do is look for “GTB1†and “LOB1†in column I
I tried
=SUMPRODUCT(--(I1:I18={"GTB1","LOB1"}),--(J1:J18=0))

But it didn’t work, it returned #value!
Thanks for your help.
 
Try

=SUMPRODUCT(--(I1:I18={"GTB1","LOB1"})*--(J1:J18=0))



I've used this formula successfully
=SUMPRODUCT(--(I1:I18="GTB1"),--(J1:J18=0))

What I would like to do is look for "GTB1" and "LOB1" in column I
I tried
=SUMPRODUCT(--(I1:I18={"GTB1","LOB1"}),--(J1:J18=0))

But it didn't work, it returned #value!
Thanks for your help.
 
Try...

=SUMPRODUCT((I1:I18={"GTB1","LOB1"})*(J1:J18=0))

or

=SUMPRODUCT(--(ISNUMBER(MATCH(I1:I18,{"GTB1","LOB1"},0))),--(J1:J18=0))

Hope this helps!
 
Thanks!

Domenic said:
Try...

=SUMPRODUCT((I1:I18={"GTB1","LOB1"})*(J1:J18=0))

or

=SUMPRODUCT(--(ISNUMBER(MATCH(I1:I18,{"GTB1","LOB1"},0))),--(J1:J18=0))

Hope this helps!
 

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

Back
Top