Return the Highest score based on House and return the user details

garylin

New Member
Joined
Mar 18, 2022
Messages
4
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Excel Experts,
I was wondering if you could help me work out something with my sheet below:

Book4
ABCDEF
1UIDPreferredSurnameYear LevelHouseScore
2137565Jamesca7Boold10
3137518Jessicava7Crayne10
4137819Jadonds7Boold10
5137684Brettacer7Boold3
6137706Bobrap7Crayne5
7137807Baileyer7Starlock10
8137786Charliesdr7Crayne2
9137531Charlesfds7Boold1
10138221TimRow7Boold8
11137575Tinadaf7McAurey10
12137791Sophiagat7Crayne9
13137745Oliviastag7Starlock9
Sheet1


I am trying to get the Person with the Highest Score based on which House they belong to.
So For House Crayne, I want it to return
137518 Jessica va 10

Then same for the top scorers of each of the other houses.

I am currently using the formula: {=INDEX(A2:A$13,MATCH(MAX(IF((E$2:$E$13="Crayne"),F2:F13)),F2:F13,0))}
However no matter which house I change the name to, it keeps giving the same data.

Cell Formulas
RangeFormula
J6J6=INDEX(A2:A$13,MATCH(MAX(IF((E$2:$E$13="Boold"),F2:F13)),F2:F13,0))
K6K6=INDEX(B2:B$13,MATCH(MAX(IF((E$2:$E$13="Boold"),F2:F13)),F2:F13,0))
L6L6=INDEX(C2:C$13,MATCH(MAX(IF((E$2:$E$13="Boold"),F2:F13)),F2:F13,0))
M6M6=INDEX(F2:F$13,MATCH(MAX(IF((E$2:$E$13="Boold"),F2:F13)),F2:F13,0))
J7J7=INDEX(A2:A$13,MATCH(MAX(IF((E$2:$E$13="Crayne"),F2:F13)),F2:F13,0))
K7K7=INDEX(B2:B$13,MATCH(MAX(IF((E$2:$E$13="Crayne"),F2:F13)),F2:F13,0))
L7L7=INDEX(C2:C$13,MATCH(MAX(IF((E$2:$E$13="Crayne"),F2:F13)),F2:F13,0))
M7M7=INDEX(F2:F$13,MATCH(MAX(IF((E$2:$E$13="Crayne"),F2:F13)),F2:F13,0))
Press CTRL+SHIFT+ENTER to enter array formulas.


Also I am unsure of how to distinguish it if there are two people with the same score.

Any help is greatly appreciated!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Book2
ABCDEFGHIJKLMNO
1UIDPreferredSurnameYear LevelHouseScoreUIDPreferredSurnameYear LevelHouseScore
2137565Jamesca7Boold10137565Jamesca7Boold10
3137518Jessicava7Crayne10137518Jessicava7Crayne10
4137819Jadonds7Boold10137807Baileyer7Starlock10
5137684Brettacer7Boold3137575Tinadaf7McAurey10
6137706Bobrap7Crayne5      
7137807Baileyer7Starlock10      
8137786Charliesdr7Crayne2      
9137531Charlesfds7Boold1      
10138221TimRow7Boold8      
11137575Tinadaf7McAurey10      
12137791Sophiagat7Crayne9      
13137745Oliviastag7Starlock9      
Sheet2
Cell Formulas
RangeFormula
J2:M13J2=IFERROR(INDEX(A$2:A$13,MATCH(1,INDEX(($E$2:$E$13=$N2)*($F$2:$F$13=$O2),),0)),"")
N2:N13N2=IFERROR(INDEX($E$2:$E$13,MATCH(0,INDEX(COUNTIF($N$1:N1,$E$2:$E$13),),0)),"")
O2:O13O2=IFERROR(AGGREGATE(14,6,$F$2:$F$13/($E$2:$E$13=$N2),1),"")
 
Upvote 0
Hi bebo021999,

Thank you very much for your reply! That is exactly what I was after :)
Was there any way that it could possibly flag when there are people with the same score?

Many Thanks for your help!
 
Upvote 0
What about this (for 365)?

22 03 21.xlsm
ABCDEFGHIJKLM
1UIDPreferredSurnameYear LevelHouseScoreUIDPreferredSurnameYear LevelHouseScore
2137565Jamesca7Boold10137565Jamesca7Boold10
3137518Jessicava7Crayne10137518Jessicava7Crayne10
4137819Jadonds7Boold10137819Jadonds7Boold10
5137684Brettacer7Boold3137807Baileyer7Starlock10
6137706Bobrap7Crayne5137575Tinadaf7McAurey10
7137807Baileyer7Starlock10
8137786Charliesdr7Crayne2
9137531Charlesfds7Boold1
10138221TimRow7Boold8
11137575Tinadaf7McAurey10
12137791Sophiagat7Crayne9
13137745Oliviastag7Starlock9
Higest
Cell Formulas
RangeFormula
H2:M6H2=FILTER(A2:F13,F$2:F$13=MAXIFS(F$2:F$13,E$2:E$13,E$2:E$13))
Dynamic array formulas.
 
Upvote 0
If you want a solution without vba then you could consider Conditional Formatting like this

22 03 21.xlsm
ABCDEFGHIJKLM
1UIDPreferredSurnameYear LevelHouseScoreUIDPreferredSurnameYear LevelHouseScore
2137565Jamesca7Boold10137565Jamesca7Boold10
3137518Jessicava7Crayne10137518Jessicava7Crayne10
4137819Jadonds7Boold10137819Jadonds7Boold10
5137684Brettacer7Boold3137807Baileyer7Starlock10
6137706Bobrap7Crayne5137575Tinadaf7McAurey10
7137807Baileyer7Starlock10
8137786Charliesdr7Crayne2
9137531Charlesfds7Boold1
10138221TimRow7Boold8
11137575Tinadaf7McAurey10
12137791Sophiagat7Crayne9
13137745Oliviastag7Starlock9
Higest (2)
Cell Formulas
RangeFormula
H2:M6H2=FILTER(A2:F13,F$2:F$13=MAXIFS(F$2:F$13,E$2:E$13,E$2:E$13))
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H2:M13Expression=COUNTIF($L$2:$L$13,$L2)>1textNO


.. or add another column to the original data & change the FILTER formula slightly.

22 03 21.xlsm
ABCDEFGHIJKLMNO
1UIDPreferredSurnameYear LevelHouseScoreDupe MaxUIDPreferredSurnameYear LevelHouseScoreDupe Max
2137565Jamesca7Boold10**137565Jamesca7Boold10**
3137518Jessicava7Crayne10 137518Jessicava7Crayne10
4137819Jadonds7Boold10**137819Jadonds7Boold10**
5137684Brettacer7Boold3 137807Baileyer7Starlock10
6137706Bobrap7Crayne5 137575Tinadaf7McAurey10
7137807Baileyer7Starlock10 
8137786Charliesdr7Crayne2 
9137531Charlesfds7Boold1 
10138221TimRow7Boold8 
11137575Tinadaf7McAurey10 
12137791Sophiagat7Crayne9 
13137745Oliviastag7Starlock9 
Higest (3)
Cell Formulas
RangeFormula
I2:O6I2=FILTER(A2:G13,F$2:F$13=MAXIFS(F$2:F$13,E$2:E$13,E$2:E$13))
G2:G13G2=IF(AND(COUNTIFS(E$2:E$13,E2,F$2:F$13,F2)>1,F2=MAXIFS(F$2:F$13,E$2:E$13,E2)),"**","")
Dynamic array formulas.
 
Upvote 0
Solution
Hi Peter,

Thanks very much for your reply, that first solution looks great!
Many thanks for both of your help with this!

Many Thanks,
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,047
Members
452,542
Latest member
Bricklin

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