Matrix SUMIF

Glove303

Board Regular
Joined
Dec 18, 2010
Messages
65
Hi,

What formula would be best for a "3D" style SUMIF, to allow a matrix of values to be summed, as in the example below (sorry I can't get the image function to work, so it's a link instead).

13Pda1w
13Pda1w
13Pda1w
https://imgur.com/13Pda1w

James.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try this for example. Adjust range to suit:

=SUMPRODUCT(($B$1:$J$1=B$12)*($A$2:$A$10=$A13)*$B$2:$J$10)
 
Upvote 0
How about


Excel 2013/2016
ABCDEF
1101101101102102
210112345
3101678910
41011112131415
51021617181920
6102
7102
8
9101
1010163
1110251
-01-
Cell Formulas
RangeFormula
B10=SUMPRODUCT(($A$2:$A$7=$A10)*($B$1:$F$1=B$9),($B$2:$F$7))
 
Last edited:
Upvote 0
How about

Excel 2013/2016
ABCDEF
1101101101102102
210112345
3101678910
41011112131415
51021617181920
6102
7102
8
9101
1010163
1110251

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
-01-

Worksheet Formulas
CellFormula
B10=SUMPRODUCT(($A$2:$A$7=$A10)*($B$1:$F$1=B$9),($B$2:$F$7))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Thanks very much as well, this also works (although I notice the formula is slightly different so I'm just trying to figure out exactly how this one works...)
 
Upvote 0
Glad we could help & thanks for the feedback.

The two formulae are basically the same, just a different way of writing them
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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