Struggling so much with INDEX MATCH

Steviefiege

Board Regular
Joined
Aug 29, 2018
Messages
66
Hi,
One day i'll get my head around how to you these 2 functions properly.

I want to find my best Goalkeeper out of a list of players. In my sheet so far i have the position & the highest rating for that position, i just need to match the position with the rating to get the player. Sounds so easy, i can just never get my head around it.

Goalkeeper55.77

<tbody>
</tbody>

<tbody>
</tbody>


Kongolo, RodneyAdvanced Playmaker45.00
Kongolo, RodneyAttacking Midfielder47.92
Kongolo, RodneyAdvanced Playmaker245.00
Lawlor, IanGoalkeeper55.77
Leverton, JamesGoalkeeper35.00
Lund, MitchellFull Back (Right)54.29
Lund, MitchellCentral Defender51.25

<tbody>
</tbody>

Rgs
Steve
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
lets see if we can break it down a bit to make it easier to understand

lets assume the table is from A1 to C7

and your formula you want it to be in G1

=INDEX(A,MATCH(B,C,D))

A = The range of where your result is located, in this example case it would be A1:A7

B = What you want to look up since you have multiple criteria meaning the position and the score you have to separate them with the & sign ... so for this example it would be F1&H1

C = Where you want to look up those value respectively again if multiple criteria, separate with & sign, example above would be B1:B7&C1:C7

D = a 0 for exact match

so in conclusion something like this

=INDEX(A1:A7,MATCH(F1&H1,B1:B7&C1:C7,0))

Also this is an array formula so instead of just hitting enter, you must do CTRL + SHIFT + ENTER
 
Upvote 0
Nine Zero, you're a diamond. Definately going to save that post as i understood what it meant. Whats with the arrays though, the {}, what do they do?
 
Upvote 0
I came up with a nice formula too. ;)

Let's assume you look for the best goalkeeper, but you don't know his score.
This will find the best score within all goalkeepers only, and then will return a name of a player:


Excel 2007
ABC
1Kongolo, RodneyAdvanced Playmaker45
2Kongolo, RodneyAttacking Midfielder47,92
3Kongolo, RodneyAdvanced Playmaker245
4Lawlor, IanGoalkeeper55,77
5Leverton, JamesGoalkeeper35
6Lund, MitchellFull Back (Right)54,29
7Lund, MitchellCentral Defender51,25
8
9
10
11Lawlor, Ian

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
SHEET1

Array Formulas
CellFormula
A11{=INDEX(A1:C7,MATCH(MAX(IF(B1:B7="Goalkeeper",C1:C7,0)),C1:C7,0),1)}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Last edited:
Upvote 0
Oops. I found a bug in my formula. I cannot edit my post anymore.
The bug is, that when two players, on a different positions, have the same highest score it will give you a name of the first player with that score. It can be either goalkeeper or advanced playmaker. Whoever is first.
This will give you a proper name:

Excel 2007
A
11Lawlor, Ian

<colgroup><col style="width: 25pxpx"><col></colgroup><thead>
</thead><tbody>
</tbody>
SHEET1

Array Formulas
CellFormula
A11{=INDEX(A1:A7,MATCH("Goalkeeper"&MAX(IF(B1:B7="Goalkeeper",C1:C7,0)),B1:B7&C1:C7,0),1)}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
Another option if you have Excel ver. 2010 or later with the AGGREGATE function. This formula does not require CTRL-SHIFT-ENTER, just ENTER.
Excel Workbook
ABC
1Kongolo, RodneyAdvanced Playmaker45
2Kongolo, RodneyAttacking Midfielder47.92
3Kongolo, RodneyAdvanced Playmaker245
4Lawlor, IanGoalkeeper55.77
5Leverton, JamesGoalkeeper35
6Lund, MitchellFull Back (Right)54.29
7Lund, MitchellCentral Defender51.25
8
9
10GoalkeeperLawlor, Ian55.77
Sheet
 
Upvote 0
I've got it written down so it's like:

INDEX(B3:F3,MATCH(A8,B4:F4,0) - these aren't pertinent to your table.

So B3:F3 is the index - it's the list where your results desired are.
A8 is the Match, or the lookup, like in Vlookup.
B4:F4 is where the lookup is found.


So with an Index Match you tell the formula where your index is, what your match criteria is, then where your match criteria is found.
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

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