Sum INDEX-MATCH Across Multiple Columns with the Same Heading

Kozzahkstan

New Member
Joined
Jun 2, 2016
Messages
2
Hello,

I am attempting to sum the returns of an INDEX-MATCH formula across multiple columns. I am able to return the first value found, but there are multiple columns with the same heading that I am attempting to SUM. Simple example below:

YesYesYesNoNoNo
A246824
B682468
C246824
D682468

<tbody>
</tbody>

I am looking to SUM the values with a column heading of "No" in Row C. The formula I have now is:

=SUMIF('Sheet2'A:A,'Sheet1'A:A,INDEX('Sheet2'E:G,0,MATCH('Sheet1'A3,'Sheet2'E2:G5,0)))

Where Sheet1 has the criteria for the data pull and Sheet2 is above. The 'Sheet1'A3 reference in the MATCH portion of the formula would be identifying the "No" value to search. The formula is returning a value of 8 and I am looking to SUM 8,2,4 from row C in columns E,F,G to return a value of 14.

Any help would be much appreciated!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Let A:G house the data.

Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
1​
Yes
Yes
Yes
No
No
No
A
No
14​
2​
A
2
4
6
8
2
4
3​
B
6
8
2
4
6
8
4​
C
2
4
6
8
2
4
5​
D
6
8
2
4
6
8


J1: A

K1: No

In L1 enter:

=SUMIFS(INDEX(B:G,MATCH(J1,A:A,0),0),INDEX(B:G,1,0),K1)
 
Upvote 0
Thank you! Worked beautifully! Had to adjust the row identifier in the second INDEX formula since my reference value was in row 4, but worked perfectly!
 
Upvote 0
Can you use something like this? Hope this helps.


Excel 2012
ABCDEFG
1yesyesyesnonono
2a246824
3b682468
4c246824
5d682468
6
7c14
8no
Sheet1
Cell Formulas
RangeFormula
B7{=SUM(IF($A$2:$A$5=$A$7,IF($B$1:$G$1=$A$8,$B$2:$G$5)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,954
Members
449,198
Latest member
MhammadishaqKhan

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