Index match summarize all hits

Samra

New Member
Joined
Aug 16, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
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..

1629129952009.png
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
How about this.

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)
 
Upvote 0
Solution
How about this.

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!
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,850
Members
449,194
Latest member
HellScout

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