# Index match summarize all hits

#### Samra

##### New Member
Hi have the table below where in J8 have the following calculation: =INDEX(\$C\$2:\$G\$7,MATCH(1,(\$A\$2:\$A\$7=\$J\$3)*(\$B\$2:\$B\$7=\$J\$4),0),MATCH(\$J\$2,\$C\$1:\$G\$1,0))

As you see, it returns 68, which is the first hit. All fine here.

My problem is that I want to summarize all hits, i.e. 68 and 80 and get 148 (the yellow marked).

I have tried using sumif, sumifs, sum etc.. But I can't figure it out.

Grateful for help..

### Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

#### lrobbo314

##### Well-known Member

Book1
ABCDEFGHIJ
1ColorPrioABACD
2Blue11964523017ColumnA
3Orange1617081338ColorGreen
4Red2889461724Prio2
5Green3176885682
6Yellow26270654293
7Green26847803384
8Calculation148
Sheet1
Cell Formulas
RangeFormula
J8J8=SUMPRODUCT((C1:G1=J2)*(A2:A7=J3)*(B2:B7=J4)*C2:G7)

#### Samra

##### New Member

Book1
ABCDEFGHIJ
1ColorPrioABACD
2Blue11964523017ColumnA
3Orange1617081338ColorGreen
4Red2889461724Prio2
5Green3176885682
6Yellow26270654293
7Green26847803384
8Calculation148
Sheet1
Cell Formulas
RangeFormula
J8J8=SUMPRODUCT((C1:G1=J2)*(A2:A7=J3)*(B2:B7=J4)*C2:G7)

Wow... Thank you. Crazy that it was that simple!

Replies
2
Views
74
Replies
2
Views
140
Replies
1
Views
61
Replies
1
Views
121
Replies
3
Views
342

1,147,452
Messages
5,741,206
Members
423,648
Latest member
steel1968

### 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.

### Which adblocker are you using?

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

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