Index Match multiple criteria

timjohnny

New Member
Joined
Aug 23, 2021
Messages
17
Office Version
  1. 2019
Platform
  1. Windows
Hi all,
I hope you're all doing well :)

I have the following table (this is just dummy data, for all the sports fans who read this ;)), and I want to get the correct numbers from the table on the left into the correct fields in the table on the right, e.g. G13 into N13. I've found an index match formula with multiple criteria online, i.e. one that let's me specify that I want the 2006 Football wins. I've tried to add another criterion to specify that I want only the Germany ones but I've run into this error and I have a strong suspicion that it's because I don't actually understand the syntax of the formula. Does anyone have any suggestions for how to do this? I need to solve this because I need to be able to change K12 as I wish with the formula already in place, so that I can get whichever country's results whenever I need them.

Thanks so much for any help!!

1629730274997.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
How about
+Fluff 1.xlsm
EFGHIJKLMN
12GermanyUKSpainGermany2006FootballWins
132006Football21142
142007Football338
152006Hockey1510
162007Hockey702
Main
Cell Formulas
RangeFormula
N13N13=INDEX(INDEX(G13:I16,0,MATCH(K12,G12:I12,0)),AGGREGATE(15,6,(ROW(G13:G16)-ROW(G13)+1)/(E13:E16=L12)/(F13:F16=M12),1))
 
Upvote 0
Thinking about it, a simpler formula would be
Excel Formula:
=SUMPRODUCT((E13:E16=L12)*(F13:F16=M12)*(G12:I12=K12),G13:I16)
 
Upvote 0
Solution
You need to supply your index with two values. One for rows and one for columns. The way you have designed it there you only supply index one value hence it fails. You can use index match match or go with fluffs reply
 
Upvote 0
Hi Fluff and Steve the fish,

thanks for responding so quickly!

Sorry for responding slowly on my end, I had to figure out which parts of the formula to lock ($) because I had to see if I could drag it correctly :) Fluff that sumproduct solution works magnificently, thanks so much!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,655
Members
448,975
Latest member
sweeberry

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