Sumproduct: condition with >?

G

Guest

Hi there:

Am using a sumproduct formula that looks like this:
=sumproduct(A1:A10="Y")*(B1:B10>5),(C1:C10)
Which did not work
So I tried
=sumproduct(A1:A10="Y")*(B1:B10">5"),(C1:C10)
Which did not work either.

Does some product not work with numeric conditions like >5? Is it only for
text conditions like ="Y"?
Thanks!
 
D

Dave Peterson

Maybe you meant:

=sumproduct((A1:A10="Y")*(B1:B10>5),(C1:C10))

Notice the extra set of ()'s.

I like this style better:
=sumproduct(--(A1:A10="Y"),--(B1:B10>5),(C1:C10))
 
G

Guest

The error is on the parenthesis. Thy this one:
=sumproduct((A1:A10="Y")*(B1:B10>5),(C1:C10))

Hope this helps,
Miguel.
 
G

Guest

Use sumproduct((A1:A10="Y")*(B1:B10>5)*(C1:C10)) or you can use
sumproduct(--(A1:A10="Y"),--(B1:B10>5),--(C1:C10)
 

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

Top