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:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]Yes[/TD]
[TD="align: center"]Yes[/TD]
[TD="align: center"]Yes[/TD]
[TD="align: center"]No[/TD]
[TD="align: center"]No[/TD]
[TD="align: center"]No[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[/TR]
</tbody>[/TABLE]
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!
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:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]Yes[/TD]
[TD="align: center"]Yes[/TD]
[TD="align: center"]Yes[/TD]
[TD="align: center"]No[/TD]
[TD="align: center"]No[/TD]
[TD="align: center"]No[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]8[/TD]
[/TR]
</tbody>[/TABLE]
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!