Sumproduct question

W

wx4usa

I have column A as year, column B as "yes" or "no", column C as a $
amount.

How do I do a sumproduct of year=2007, col B=yes, the total the $ in
col C?

$ total for both Yes and 2007?

Am I making sense?
 
D

Dallman Ross

wx4usa said:
I have column A as year, column B as "yes" or "no", column C as a
$ amount.

How do I do a sumproduct of year=2007, col B=yes, the total the $
in col C?

=SUMPRODUCT(($A$2:$A$20=2007)*($B$2:$B$20="yes")*$C$2:$C$20)

is one way. Change the ranges to suit.
 

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