ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   I need a productif style function (https://www.excelbanter.com/excel-worksheet-functions/86869-i-need-productif-style-function.html)

Mitch

I need a productif style function
 
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

Toppers

I need a productif style function
 
Try something like:

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

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

HTH

"Mitch" wrote:

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


Mitch

I need a productif style function
 
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.

"Toppers" wrote:

Try something like:

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

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

HTH

"Mitch" wrote:

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


Mitch

I need a productif style function
 
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.

"Toppers" wrote:

Try something like:

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

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

HTH

"Mitch" wrote:

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


Toppers

I need a productif style function
 
No problem .. thanks for the feedback.

"Mitch" wrote:

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.

"Toppers" wrote:

Try something like:

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

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

HTH

"Mitch" wrote:

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



All times are GMT +1. The time now is 01:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com