I want to use SUMPRODUCT with multiple criteria

dfida

New Member
Joined
Jan 26, 2010
Messages
49
Excel Workbook
YZAA
2GROUPVALUE
3A23
4B45
5C23
6D6
7A78
8B6
9G7
10D44
11E12
12
13A
14B
15C
16current formula:175
17
18desired formula:#N/A
I'm sure this has been asked before, but I've searched and searched and not found anything... Basically I want to create a sumproduct formula which uses multiple criteria from a specific range. Right now I have to specify each criteria individually within the sumproduct, which is cumbersome when I have to use more that just a few - sometimes I may have up to 20. Formula AA16 shows how I am doing it now. AA18 is how I want to do it, although I know that formula doesn't actually work. Hopefully it illustrates the gist of what I want to accomplish. 136-1

Excel 2007
Cell Formulas
RangeFormula
AA16=SUMPRODUCT(--(($Z$3:$Z$11=Z13)+($Z$3:$Z$11=Z14)+($Z$3:$Z$11=Z15)),$AA$3:$AA$11)
AA18=SUMPRODUCT(--($Z$3:$Z$11=$Z$13:$Z$15),$AA$3:$AA$11)
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try this.

=SUMPRODUCT(--ISNUMBER(MATCH($Z$3:$Z$11,$Z$13:$Z$15,0)),$AA$3:$AA$11)

Raj
 
Upvote 0
Since you have Excel 2007, this will be faster,

=SUMPRODUCT(SUMIFS($AA$3:$AA$11,$Z$3:$Z$11,$Z$13:$Z$15))
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,845
Members
452,948
Latest member
UsmanAli786

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