Top 5 high scores

americanpie3

Board Regular
Joined
Jul 16, 2003
Messages
187
Office Version
  1. 365
Hello,

Is there a way to have a result of the top 5 highest scores? Here's my example.

Entered manually:

A1 = Dan - B1 = 63
A2 = Bill - B2 = 54
A3 = Steve - B3 = 73
A4 = Ben - B4 = 38
A5 = Patrick - B5 = 45
A6 = Jack - B6 = 104
A7 = Craig - B7 = 73

I put the tie on purpose because it can happen but not likely

So on D1 I wrote STANDINGS and E1 I put POINTS

So from D2 to D6 I want to formula to know that 104 is the high score and put the person's name and put the person's name the other column (E).

Thanks for your input.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
How about


Book1
ABCDE
1Dan63StandingsName
2Bill54104Jack
3Steve7373Steve
4Ben3873Craig
5Patrick4563Dan
6Jack10454Bill
7Craig73
Sheet1
Cell Formulas
RangeFormula
D2=LARGE($B$1:$B$7,ROW(A1))
E2=INDEX($A$1:$A$7,AGGREGATE(15,6,(ROW($A$1:$A$7)-ROW($A$1)+1)/($B$1:$B$7=D2),COUNTIF(D$2:D2,D2)))
 
Upvote 0
How about


Book1
ABCDE
1Dan63StandingsName
2Bill54104Jack
3Steve7373Steve
4Ben3873Craig
5Patrick4563Dan
6Jack10454Bill
7Craig73
Sheet1
Cell Formulas
RangeFormula
D2=LARGE($B$1:$B$7,ROW(A1))
E2=INDEX($A$1:$A$7,AGGREGATE(15,6,(ROW($A$1:$A$7)-ROW($A$1)+1)/($B$1:$B$7=D2),COUNTIF(D$2:D2,D2)))

Thank you for the reply.

I tried your formula and 1st, it did not show the biggest result. 2nd why ROW(A1)).

Another wrench and I'm sorry I didn't mention it earlier.

If in my example you also put women Let's say Sara 37 and Elise and 76. Then in the 1st example you would have rankings for men and then put seperate rankings for women.
I have already identified the women from men by putting an F or M in the very next column in the teams page.
 
Upvote 0
How about using Fluff's example. In G1 you either place an "M" or an "F".

Excel 2016 (Windows) 64 bit
ABCDE
1Dan63MStandingsName
2Bill54M76Elise
3Elise76F37Sara
4Steve73M
5Ben38M
6Patrick45M
7Sara37F
8Jack104M
9Craig73M

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

Worksheet Formulas
CellFormula
E2=IF(N([COLOR=#0]D2),INDEX([COLOR=#0]$A$1:$A$9,AGGREGATE([COLOR=#00]15,6,([COLOR=#00b00]ROW([COLOR=#0]$A$1:$A$9[/COLOR])-ROW([COLOR=#0]$A$1[/COLOR])+1[/COLOR])/([COLOR=#00b00]$B$1:$B$9=D2[/COLOR]),COUNTIF([COLOR=#00b00]D$2:D2,D2[/COLOR])[/COLOR])[/COLOR]),""[/COLOR])

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
D2{=IFERROR(LARGE([COLOR=#0]IF([COLOR=#00]$C$1:$C$9=$G$1,$B$1:$B$9),ROW([COLOR=#00]A1[/COLOR])[/COLOR]),""[/COLOR])}

<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>



<tbody>
</tbody>

 
Upvote 0
How about using Fluff's example. In G1 you either place an "M" or an "F".

Excel 2016 (Windows) 64 bit
ABCDE
1Dan63MStandingsName
2Bill54M76Elise
3Elise76F37Sara
4Steve73M
5Ben38M
6Patrick45M
7Sara37F
8Jack104M
9Craig73M

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

Worksheet Formulas
CellFormula
E2=IF(N([COLOR=#0]D2),INDEX([COLOR=#0]$A$1:$A$9,AGGREGATE([COLOR=#00]15,6,([COLOR=#00b00]ROW([COLOR=#0]$A$1:$A$9[/COLOR])-ROW([COLOR=#0]$A$1[/COLOR])+1[/COLOR])/([COLOR=#00b00]$B$1:$B$9=D2[/COLOR]),COUNTIF([COLOR=#00b00]D$2:D2,D2[/COLOR])[/COLOR])[/COLOR]),""[/COLOR])

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
D2{=IFERROR(LARGE([COLOR=#0]IF([COLOR=#00]$C$1:$C$9=$G$1,$B$1:$B$9),ROW([COLOR=#00]A1[/COLOR])[/COLOR]),""[/COLOR])}

<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>



<tbody>
</tbody>


OK. I think I might be able to work with this one. One last question. With =large can I do multiple ranges. Example =large($C$1:$C$9) but then to also incluse in the =large($C$12:$C$17). The reason why I ask is because there is information between the lines which is divisions and I have letters in there.
 
Upvote 0
There should be no need to do that. Row(A1) will return 1 & when you drag the formula down it will become Row(B1) which returns 2.
 
Upvote 0
There should be no need to do that. Row(A1) will return 1 & when you drag the formula down it will become Row(B1) which returns 2.

Actually when I drag it goes A2 A3 A4 and so on.

Did you see my question about multiple ranges? When I try I keep getting too many arguments.
 
Upvote 0
You're quite right it does indeed go A1, A2 etc. Not sure why I said A1, B1 etc, but the end result is the same.

You don't need to worry about having non-numeric values with


Book1
ABCDEFG
1Dan63MStandingsNameStandingsName
2Bill54M104Jack84Sue
3Elise76F73Steve76Elise
4Steve73M73Craig37Sara
5Ben38M63Dan0
6Patrick45M55Dave0
7Sara37F
8Jack104M
9Craig73M
10a
11b
12c
13Sue84F
14Dave55M
Sheet1
Cell Formulas
RangeFormula
D2=AGGREGATE(14,6,($B$1:$B$14)*($C$1:$C$14="M"),ROW(A1))
E2=INDEX($A$1:$A$14,AGGREGATE(15,6,(ROW($A$1:$A$14)-ROW($A$1)+1)/($B$1:$B$14=D2),COUNTIF(D$2:D2,D2)))
F2=AGGREGATE(14,6,($B$1:$B$14)*($C$1:$C$14="F"),ROW(A1))
G2=IFERROR(INDEX($A$1:$A$14,AGGREGATE(15,6,(ROW($A$1:$A$14)-ROW($A$1)+1)/($B$1:$B$14=F2),COUNTIF(F$2:F2,F2))),"")
 
Upvote 0

Forum statistics

Threads
1,214,382
Messages
6,119,194
Members
448,874
Latest member
Lancelots

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