Single Column Criteria for Row, Mutliple Columns to sum, Sum with Index Matching

belmotodell

New Member
Joined
May 19, 2015
Messages
5
I would like to sum within range all values that match a single column criteria for the sum row along with multiple columns that will indicate which specific cells within the row to sum.

My formula:
=SUM(INDEX(RAW!B4:DF137,MATCH(A3,RAW!A4:A137,0),0):INDEX(RAW!B4:DF137,MATCH(A3,RAW!A4:A137,0),MATCH(B2,RAW!B3:DF3,0)))

This is only bringing a sum of the entire row within the range. I want to only include cells within the row that match a column criteria. Is this possible?

Using this table below as an example, I want my formula to add up by row '1st Row Unique ID' and then columns 'Target Column' to give a sum of 1,050.

[table="width: 500, class: grid, align: center"]
[tr]
[td]XYZ[/td]
[td]Team Descriptions[/td]
[td][/td]
[td]Target Column[/td]
[td]Column 2[/td]
[td]Column 3[/td]
[td][/td]
[td]Column 4[/td]
[td]Column 5[/td]
[td]Column 6[/td]
[td][/td]
[td]Target Column[/td]
[td]Column 2[/td]
[td]Column 3[/td]
[td][/td]
[td]Column 4[/td]
[td]Column 5[/td]
[td]Column 6[/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]1st Row Unique ID[/td]
[td]Team 1[/td]
[td][/td]
[td]500[/td]
[td]10[/td]
[td]15[/td]
[td][/td]
[td]300[/td]
[td]20[/td]
[td]15[/td]
[td][/td]
[td]550[/td]
[td]12[/td]
[td]36[/td]
[td][/td]
[td]80[/td]
[td]12[/td]
[td]13[/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]2nd Row Unique ID[/td]
[td]Data in this row->[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]3rd unique ID[/td]
[td]Data in this row->[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[/table]
 

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