Sumif, having two condition

G

Guest

I want to use the function sumif. but I have two condition.

sumif(sheet1!a2:a100, sheet2!B2, Sheet1!D2:D100)
based on this, I want to add that when Sheet1!a2:a100 = Sheet2!B2, the value
on that row of column C must be larger than zero.

How can I do?

Thanks at advanced!
 
B

Bob Phillips

=SUMPRODUCT(--(Sheet1!A2:A100=Sheet2!B2),--(Sheet1!C2:C100>0),Sheet1!D2:D100)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
R

Roger Govier

Hi

=SUMPRODUCT((Sheet1!$A$2:$A$100=Sheet2!$B$2)*
(Sheet1!$C$2:$C$100>0)*Sheet1!$C$2:$C$100)
 

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