sumif with two different terms

F

FreddieP

Hi I want to sum column D if column a=x and colum b=y (both terms in columns
a & b must be fulfilled)

I nortmally use sumif but then i can only have one term, now i want two
different, what formula should I use then?
 
B

Bob Phillips

=SUMPRODUCT(--(A2:A200="x"),--(B2:B200="y"),D2:D200)

SUMPRODUCT works on explicit ranges, not whole columns, in all versions
prior to Excel 2007.

--
---
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