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

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
Joined
Jul 14, 2008
Messages
3,326
Office Version
  1. 365
Platform
  1. Windows
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)
 
Solution

Samra

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

Forum statistics

Threads
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.
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
Top