sumproducts

bigmacneb

Board Regular
Joined
Jul 12, 2005
Messages
93
Hello, using excel 2003. Attempting to return the sum of Column C based on two criteria. For example =SUMPRODUCT((condition1=match1)*(condition2=match2)*???)
I want to total the sum of column C if condition1 and condition2 both match.
What do I need to add to =SUMPRODUCT((condition1=match1)*(condition2=match2)*???) to make it work? THANKS!!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try:

=SUMPRODUCT(--(Condition1=Match1),--(Condition2=Match2),C1:C100)

Make sure that all of your ranges are identical in size.
 
Upvote 0
What range are you trying to sum, which columns do you want to use for your conditions and what are the conditions. Example:

=SUMPRODUCT(--(A1:A10="abc"),--(B1:B10>=5),C1:C10)
 
Upvote 0
Hello, using excel 2003. Attempting to return the sum of Column C based on two criteria. For example =SUMPRODUCT((condition1=match1)*(condition2=match2)*???)
I want to total the sum of column C if condition1 and condition2 both match.
What do I need to add to =SUMPRODUCT((condition1=match1)*(condition2=match2)*???) to make it work? THANKS!!

You need to specify the ranges involved: Condition ranges and the range to sum... like in

=SUMPRODUCT(--($A$2:$A$20=E2),--($B$2:$B$20=F2),$C$2:$C$20)

where E2 houses a condition that must hold for A2:A20, F2 another condition that must hold for B2:B2, and C2:C20 houses the figures to sum.
 
Upvote 0
Excel Workbook
ABCDE
1
2one10apples
3three8oranges
4seven6apples18
5three3apples18
6six2oranges
7nine8apples
8three4apples
9three10apples
10rtwo2oranges
11six2apples
12three4pears
13three4oranges
14one8pears
15three1apples
Sheet
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,794
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top