Matching 2 Cells to get the 3rd

Steviefiege

Board Regular
Joined
Aug 29, 2018
Messages
66
Hi, i'm hoping this is an easy one, i just can't get my head around the formula to use.
Below is my spreadsheet with all my players on the left & every position they play in & their ratings.
On the right is every individual player & their BEST rating. What i'm wanting is for on the right under BEST POSITION is to match the player & the rating to get their BEST POSITION.
For example: Aaron Taylor-Sinclair his best rating is 59.29%, under BEST POSITION i want it to say CWB (Left) as thats his best position but i cant get the formula right. I've put it in bold on the left as so you can see which one i mean.

PLAYERPOSITIONRATINGPLAYERRATINGBEST POSITION
Frazer RichardsonCWB (Right)Aaron Taylor-Sinclair59.29%
Gary Taylor-FletcherAVP66.67%Andrew Williams
Paul KeeganAVP65.00%Andy Butler
Gary Taylor-FletcherDLP63.89%Benjamin Greasley
Mathieu BaudryBPD62.35%Cedric Evina
Paul KeeganDLP62.22%Conner Williamson
Tommy RoweCWB (Left)61.67%Craig Alcock
Tommy RoweAVP61.11%Dany N'Guessan
Andy ButlerBPD60.88%David Foley
Andrew WilliamsWinger (Right)60.45%Dean Winnard
Gary Taylor-FletcherCF60.23%Frazer Richardson
Craig AlcockBPD60.00%Gary McSheffrey
Aaron Taylor-Sinclair
CWB (Left)59.29%Gary Taylor-Fletcher
Tommy RoweIF (Left)59.29%Harry Middleton
Aaron Taylor-SinclairBPD59.12%Jai Quitongo
Tommy RoweDLP58.33%Joe Pugh
Gary Taylor-FletcherWinger (Right)58.18%Joe Wright
Cedric EvinaCWB (Left)58.10%John Marquis
Andrew WilliamsIF (Left)56.79%Jordan Houghton
Jordan HoughtonDLP56.67%Jordan Linley
David FoleyWinger (Right)56.36%Joseph McCormick

<tbody>
</tbody>

Kind Regards
Steve
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

This is one way, Array Formula to be confirmed by CSE (Control, Shift, Enter):


Book1
ABCDEFGHIJ
1PLAYERPOSITIONRATINGPLAYERRATINGBEST POSITION
2
3Frazer RichardsonCWB (Right)Aaron Taylor-Sinclair59.29%CWB (Left)
4Gary Taylor-FletcherAVP66.67%Andrew Williams
5Paul KeeganAVP65.00%Andy Butler
6Gary Taylor-FletcherDLP63.89%Benjamin Greasley
7Mathieu BaudryBPD62.35%Cedric Evina
8Paul KeeganDLP62.22%Conner Williamson
9Tommy RoweCWB (Left)61.67%Craig Alcock
10Tommy RoweAVP61.11%Dany N'Guessan
11Andy ButlerBPD60.88%David Foley
12Andrew WilliamsWinger (Right)60.45%Dean Winnard
13Gary Taylor-FletcherCF60.23%Frazer Richardson
14Craig AlcockBPD60.00%Gary McSheffrey
15Aaron Taylor-SinclairCWB (Left)59.29%Gary Taylor-Fletcher
16Tommy RoweIF (Left)59.29%Harry Middleton
17Aaron Taylor-SinclairBPD59.12%Jai Quitongo
18Tommy RoweDLP58.33%Joe Pugh
19Gary Taylor-FletcherWinger (Right)58.18%Joe Wright
20Cedric EvinaCWB (Left)58.10%John Marquis
21Andrew WilliamsIF (Left)56.79%Jordan Houghton
22Jordan HoughtonDLP56.67%Jordan Linley
23David FoleyWinger (Right)56.36%Joseph McCormick
Sheet214
Cell Formulas
RangeFormula
J3{=INDEX(B3:B23,MATCH(G3&I3,A3:A23&C3:C23,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
You're welcome, welcome to the forum.
 
Upvote 0
Regarding my spreadsheet above. I can't remember how i did the formula in the right hand column for the rating (59.29%). It's just literally getting the highest number on the left hand column for that particular player. Can anyone help please?
 
Upvote 0
That's also going to require an Array formula:


Book1
ABCDEFGHIJ
1PLAYERPOSITIONRATINGPLAYERRATINGBEST POSITION
2
3Frazer RichardsonCWB (Right)Aaron Taylor-Sinclair59.29%CWB (Left)
4Gary Taylor-FletcherAVP66.67%Andrew Williams60.45%Winger (Right)
5Paul KeeganAVP65.00%Andy Butler60.88%BPD
6Gary Taylor-FletcherDLP63.89%Benjamin Greasley0.00%#N/A
7Mathieu BaudryBPD62.35%Cedric Evina58.10%CWB (Left)
8Paul KeeganDLP62.22%Conner Williamson0.00%#N/A
9Tommy RoweCWB (Left)61.67%Craig Alcock60.00%BPD
10Tommy RoweAVP61.11%Dany N'Guessan0.00%#N/A
11Andy ButlerBPD60.88%David Foley56.36%Winger (Right)
12Andrew WilliamsWinger (Right)60.45%Dean Winnard0.00%#N/A
13Gary Taylor-FletcherCF60.23%Frazer Richardson0.00%#N/A
14Craig AlcockBPD60.00%Gary McSheffrey0.00%#N/A
15Aaron Taylor-SinclairCWB (Left)59.29%Gary Taylor-Fletcher66.67%AVP
16Tommy RoweIF (Left)59.29%Harry Middleton0.00%#N/A
17Aaron Taylor-SinclairBPD59.12%Jai Quitongo0.00%#N/A
18Tommy RoweDLP58.33%Joe Pugh0.00%#N/A
19Gary Taylor-FletcherWinger (Right)58.18%Joe Wright0.00%#N/A
20Cedric EvinaCWB (Left)58.10%John Marquis0.00%#N/A
21Andrew WilliamsIF (Left)56.79%Jordan Houghton56.67%DLP
22Jordan HoughtonDLP56.67%Jordan Linley0.00%#N/A
23David FoleyWinger (Right)56.36%Joseph McCormick0.00%#N/A
Sheet214
Cell Formulas
RangeFormula
I3{=MAX(IF(A$3:A$23=G3,C$3:C$23))}
J3{=INDEX(B$3:B$23,MATCH(G3&I3,A$3:A$23&C$3:C$23,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thank you so much for that, kind of getting there now but still stuck on some more bits. See if i can explain this...
This is my page which automatically picks my squad Sheet 1 (well it will be when its done!)
I've sorted the formula for the rating (58.50). What i want is to match it to the player with that rating in that position which i have got on another sheet, Sheet 2. I'll add it underneath.

Sheet 1

Position
Player
Rating



WB (Right)
58.50
CD

CD

WB (Left)




BBM
BBM




IF (Right)


IF (Left)





F9
F9

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

Sheet 2

Alex Kiwomya
49.64 IF (Right)
Alfie Beestin
52.14 IF (Right)
Alfie May
50.71 IF (Left)
Andrew Williams53.46 F9
Andy Boyle68.33 CD
Andy Butler70.83 CD
Anthony Greaves30.00 IF (Right)
Ben Whiteman54.21 BBM
Branden Horton46.25 CD
Cameron Barnett36.92 F9
Cedric Evina47.00
WB (Left)
Corie Andrews50.00 IF (Right)
Craig Alcock60.42 CD
Danny Andrew61.00
WB (Left)
Henrik Bjordal55.53 BBM
Issam Ben Khemis48.95 BBM
James Coppinger60.71 IF (Right)
Joe Wright56.25 CD
John Marquis54.23 F9
Jordan Houghton51.58 BBM
Liam Mandeville56.92 F9
Luke McCullough57.92 CD
Mathieu Baudry60.00 CD
Matty Blair
58.50
WB (Right)
Mitchell Lund53.50 WB (Right)
Myron Gibbons32.69 F9
Niall Mason56.50 WB (Right)
Rieves Boocock36.15 F9
Rodney Kongolo57.08 CD
Shane Blaney49.58 CD
Tom Anderson56.25 CD
Tommy Rowe59.50
WB (Left)
Tyler Garrett54.00 WB (Left)

<colgroup><col><col><col></colgroup><tbody>
</tbody>


The player in bold in sheet 2 is the player that wants to be in sheet 1 in the WB (Right) position, i just cant get my head around the formula.

Rgs
Steve



<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Hi,


Book1
ABCDE
1PositionPlayerRating
2
3WB (Right)Matty Blair58.5
4CD
5CD
6WB (Left)
7
8BBM
9BBM
10
11IF (Right)
12IF (Left)
13
14F9
15F9
Sheet220
Cell Formulas
RangeFormula
C3{=INDEX(Sheet221!A$1:A$33,MATCH(A$3&E$3,Sheet221!C$1:C$33&Sheet221!B$1:B$33,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.



Book1
ABC
1Alex Kiwomya49.64IF (Right)
2Alfie Beestin52.14IF (Right)
3Alfie May50.71IF (Left)
4Andrew Williams53.46F9
5Andy Boyle68.33CD
6Andy Butler70.83CD
7Anthony Greaves30IF (Right)
8Ben Whiteman54.21BBM
9Branden Horton46.25CD
10Cameron Barnett36.92F9
11Cedric Evina47WB (Left)
12Corie Andrews50IF (Right)
13Craig Alcock60.42CD
14Danny Andrew61WB (Left)
15Henrik Bjordal55.53BBM
16Issam Ben Khemis48.95BBM
17James Coppinger60.71IF (Right)
18Joe Wright56.25CD
19John Marquis54.23F9
20Jordan Houghton51.58BBM
21Liam Mandeville56.92F9
22Luke McCullough57.92CD
23Mathieu Baudry60CD
24Matty Blair58.5WB (Right)
25Mitchell Lund53.5WB (Right)
26Myron Gibbons32.69F9
27Niall Mason56.5WB (Right)
28Rieves Boocock36.15F9
29Rodney Kongolo57.08CD
30Shane Blaney49.58CD
31Tom Anderson56.25CD
32Tommy Rowe59.5WB (Left)
33Tyler Garrett54WB (Left)
Sheet221


Change cell references/range and sheet name to match your data.
 
Upvote 0
Thank you soo soo very much. Another question, Where i have 2 x CD & 2 x BBM & 2 x F9, how do i get the 2nd highest rated player there?
 
Upvote 0
That's going to require a different formula.
So your actual setup is like my Post # 8 above?
Are there actually empty rows (in between different positions) as shown in Post # 8, or not?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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