SUMIF using two ranges

G

Guest

I would like to use SUMIF with two IF ranges ie:

If Column A="xxx" and Column B="yyy" then sum column D

Is this possible? I have only every used SUMIF(A:A,"xxx",D:D)

Many thanks
Yvonne
 
B

Bob Phillips

=SUMPRODUCT(--(A2:A20="xxx"),--(B2:B20="yyy"),D2:D20)

SP cannot work on whole columns, the range has to be explicit.

--
HTH

Bob

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

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