Sum index match multiple row multiple column - referring to an old post link inside

shakethingsup

Board Regular
Joined
May 21, 2017
Messages
64
Office Version
  1. 365
Platform
  1. Windows
Sum INDEX-MATCH Across Multiple Columns with the Same Heading

Hello - how - wondering if someone knows how to modify this formula to account for multiple rows could be a match? Same Data but now multiple rows and multiple columns match?

instead of:
=SUMIFS(INDEX(B:G,MATCH(J1,A:A,0),0),INDEX(B:G,1,0),K1)

I thought it would be
=SUMIFS(INDEX(B:G,,),INDEX(A:A,0,1),J1,INDEX(B:G,1,0),K1)

I tried each part of the formula separately, including smaller rangers and they seemed to work, why doesn't it work together?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Since you have MS 365, this should work for you.

20221212 Filter 2 dimensions shakethingsup.xlsx
ABCDEFGHIJKL
1YesYesYesNoNoNoANo28
2A246824
3B682468
4C246824
5D682468
6A246824
7B682468
8C246824
9D682468
Sheet1
Cell Formulas
RangeFormula
L1L1=SUM( FILTER( FILTER( $A$1:$G$9, $A$1:$G$1 = "No" ), ($A$1:$A$9 = J1) ) )
 
Upvote 0
Solution
Or if you have to share it with colleagues who have older versions...

Book1
ABCDEFGHIJKL
1YesYesYesNoNoNoANo28
2A246824
3B682468
4C246824
5D682468
6A246824
7B682468
8C246824
9D682468
Sheet1
Cell Formulas
RangeFormula
L1L1=SUMPRODUCT(($A$2:$A$9=$J$1)*($B$1:$G$1=$K$1),$B$2:$G$9)
 
Upvote 0
Since you have MS 365, this should work for you.

20221212 Filter 2 dimensions shakethingsup.xlsx
ABCDEFGHIJKL
1YesYesYesNoNoNoANo28
2A246824
3B682468
4C246824
5D682468
6A246824
7B682468
8C246824
9D682468
Sheet1
Cell Formulas
RangeFormula
L1L1=SUM( FILTER( FILTER( $A$1:$G$9, $A$1:$G$1 = "No" ), ($A$1:$A$9 = J1) ) )
both worked. Didn't know about Filter. Thank you! learned something.
 
Upvote 0

Forum statistics

Threads
1,214,999
Messages
6,122,645
Members
449,093
Latest member
Ahmad123098

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