I need a productif style function

M

Mitch

I want to search a range of cells, say C:C for a value, if that value is
there i want to multiply the corresponding B cell and D cell together then
sum up all of the true values. If anyone can help me please let me know.

Thanks
 
T

Toppers

Try something like:

=SUMPRODUCT(--(C1:C10="A"),--(B1:B10),--(D1:D10))

Sum the products of B*D when C="A"

HTH
 
M

Mitch

I entered your fuctions just as you wrote but it still doesn't work, I just
get a #VALUE! error. Also I'm not sure what the -- are for. Thanks for your
help so far.
 
M

Mitch

This is the function I ended up using
=IF(SUMIF(C2:C41,"Winter 2006",E2:E41)>0,(SUMPRODUCT(--(C1:C41="Winter
2006"),(B1:B41),(E1:E41))/SUMIF(C1:C41,"Winter 2006",B1:B41)),"")

It works perfectly, thanks for your help.
 
T

Toppers

No problem .. thanks for the feedback.

Mitch said:
This is the function I ended up using
=IF(SUMIF(C2:C41,"Winter 2006",E2:E41)>0,(SUMPRODUCT(--(C1:C41="Winter
2006"),(B1:B41),(E1:E41))/SUMIF(C1:C41,"Winter 2006",B1:B41)),"")

It works perfectly, thanks for your help.
 
Top