Find highest scorers and return their name

tlg

New Member
Joined
Jan 27, 2011
Messages
20
Office Version
  1. 2019
Platform
  1. Windows
Hello!

I am looking for help with an excel document I have which has a list of names (currently six but likely to increase to more than twenty) and how many points they have for a particular task which results in a percentage of the total possible points they could have had.

I would like a formula which would look for the top 3 highest scorers and return their names in a cell.

I have created a quick excel sheet which you will hopefully see what I would like to achieve.

Example Tasks Region.xlsx
ABCDEFGHIJKLMNOPQRST
1NumberNameSaturdaySundayMondayTuesdayWednesdayThursdayFridayTotals
2ABABABABABABABABA + B%
3Possible Points Each03006451534352251641
4Possible Points Team01800362430630182418301215096246
54149John3645153435025143995.1%
64178David2445053415023103380.5%
74279Peter3645152435125143995.1%
84419Karen3545133425022133585.4%
94638Emma3635133430018133175.6%
104639Julie0545143435023113482.9%
11Total014003223305251724152511367521185.8%
12
13TotalTarget%
14Total A:13615090.7%
15Total B:759678.1%
16Total A+B:21124685.8%
17
18Top 3 for A+B%
19
20
21
Task Scores
Cell Formulas
RangeFormula
Q5:R10,Q3:R3Q3=SUM(C3+E3+G3+I3+K3+M3+O3)
S3,S5:S10S3=SUM(Q3+R3)
C4:R4C4=SUM(C3)*6
S4S4=SUM(Q4:R4)
T5T5=SUM(S5/S3)
T6T6=SUM(S6/S3)
T7T7=SUM(S7/S3)
T8T8=SUM(S8/S3)
T9T9=SUM(S9/S3)
T10:T11T10=SUM(S10/S3)
C11:S11C11=SUM(C5:C10)
Q14Q14=SUM(G11+I11+K11+M11+O11)
R14R14=SUM(Q4)
Q15Q15=SUM(D11+H11+J11+L11+N11+P11)
R15R15=SUM(R4)
Q16:R16Q16=SUM(Q14:Q15)
T14:T16T14=SUM(Q14/R14)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
T14:T16Cell Value>=0.9textNO
T14:T16Cell Value<0.8textNO
T14:T16Cell Valuebetween 0.8 and 0.89textNO
T5:T11Other TypeColor scaleNO
K15:K22Other TypeColor scaleNO


So based on the current data, I would like to auto populate cell M19 with the names as follows:
1. John, Peter 95.1%
M20 will be:
2. Karen 85.4%
and M21 will be:
3. Julie 82.9%

Is there a way I can achieve this? It will often be multiple people with the same score so I need to ability to return more than one name in the cells where this occurs.

I hope this makes sense.

Thank you as always for your help!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hello!

I am looking for help with an excel document I have which has a list of names (currently six but likely to increase to more than twenty) and how many points they have for a particular task which results in a percentage of the total possible points they could have had.

I would like a formula which would look for the top 3 highest scorers and return their names in a cell.

I have created a quick excel sheet which you will hopefully see what I would like to achieve.

Example Tasks Region.xlsx
ABCDEFGHIJKLMNOPQRST
1NumberNameSaturdaySundayMondayTuesdayWednesdayThursdayFridayTotals
2ABABABABABABABABA + B%
3Possible Points Each03006451534352251641
4Possible Points Team01800362430630182418301215096246
54149John3645153435025143995.1%
64178David2445053415023103380.5%
74279Peter3645152435125143995.1%
84419Karen3545133425022133585.4%
94638Emma3635133430018133175.6%
104639Julie0545143435023113482.9%
11Total014003223305251724152511367521185.8%
12
13TotalTarget%
14Total A:13615090.7%
15Total B:759678.1%
16Total A+B:21124685.8%
17
18Top 3 for A+B%
19
20
21
Task Scores
Cell Formulas
RangeFormula
Q5:R10,Q3:R3Q3=SUM(C3+E3+G3+I3+K3+M3+O3)
S3,S5:S10S3=SUM(Q3+R3)
C4:R4C4=SUM(C3)*6
S4S4=SUM(Q4:R4)
T5T5=SUM(S5/S3)
T6T6=SUM(S6/S3)
T7T7=SUM(S7/S3)
T8T8=SUM(S8/S3)
T9T9=SUM(S9/S3)
T10:T11T10=SUM(S10/S3)
C11:S11C11=SUM(C5:C10)
Q14Q14=SUM(G11+I11+K11+M11+O11)
R14R14=SUM(Q4)
Q15Q15=SUM(D11+H11+J11+L11+N11+P11)
R15R15=SUM(R4)
Q16:R16Q16=SUM(Q14:Q15)
T14:T16T14=SUM(Q14/R14)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
T14:T16Cell Value>=0.9textNO
T14:T16Cell Value<0.8textNO
T14:T16Cell Valuebetween 0.8 and 0.89textNO
T5:T11Other TypeColor scaleNO
K15:K22Other TypeColor scaleNO


So based on the current data, I would like to auto populate cell M19 with the names as follows:
1. John, Peter 95.1%
M20 will be:
2. Karen 85.4%
and M21 will be:
3. Julie 82.9%

Is there a way I can achieve this? It will often be multiple people with the same score so I need to ability to return more than one name in the cells where this occurs.

I hope this makes sense.

Thank you as always for your help!
Hi Tig

What version of Excel are you using as this will determine what functions can be used to solve the problem?
 
Upvote 0
Sorry, I should have specified, it is Microsoft Excel 2019.

Thank you.
 
Upvote 0
it is Microsoft Excel 2019.

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thank you for the top tip! I have done that now.
 
Upvote 0
1st high scores:
Code:
=TEXTJOIN(", ", TRUE, IF(T5:T10=MAX(T5:T10), B5:B10, ""))
2nd:
Code:
=TEXTJOIN(", ", TRUE, IF(T5:T10=LARGE(T5:T10, COUNTIF(T5:T10, MAX(T5:T10))+1), B5:B10, ""))
and 3rd:
Code:
=TEXTJOIN(", ", TRUE, IF(T5:T10=LARGE(T5:T10, COUNTIF(T5:T10, MAX(T5:T10))+COUNTIF(T5:T10, LARGE(T5:T10, COUNTIF(T5:T10, MAX(T5:T10))+1))+1), B5:B10, ""))
 
Upvote 0
Thanks for your reply, I must be doing something wrong as that shows #VALUE!
 
Upvote 0
I must be doing something wrong as that shows #VALUE!
In your Excel version I think that you will need to confirm each formula with Ctrl+Shift+Enter, not just Enter
I have shown those formulas in column M below, but also offered a couple of slightly shorter ones in column N.

One other comment:
In most of your formulas in the top section you are using SUM() when
a) It is not needed &
b) It is inefficient because it is making Excel do a calculation that is not needed.

I have shown alternative to the column T formulas in column U.
Take the formula in T5 for example
=SUM(S5/S3)
Step 1: Excel does the calculation S5/S3 which results in (approximately) 0.951 (or 95.1%)
Step 2: Excel sums 0.951 which (of course) still results in 0.951
So step 2 is pointless.

Similarly, the formula in R3 is
=SUM(D3+F3+H3+J3+L3+N3+P3)
Step 1: Excel does D3+F3+H3+J3+L3+N3+P3 which is 3+0+4+1+3+3+2 = 16
Step 2: Excel sums 16 giving 16
So again the SUM does nothing other than perform an unnecessary calculation.

BTW, since the columns have regular headings, for cell R3 you could use a formula like this rather than entering every individual cell reference
=SUMIF(C2:P2,"B",C3:P3)
This adds all the values in the row 3 range where the row 2 range has a "B"

24 11 10.xlsm
BCDEFGHIJKLMNOPQRSTU
1NameSaturdaySundayMondayTuesdayWednesdayThursdayFridayTotals
2ABABABABABABABABA + B%
3Possible Points Each03006451534352251641
4Possible Points Team01800362430630182418301215096246
5John3645153435025143995.1%95.1%
6David2445053415023103380.5%80.5%
7Peter3645152435125143995.1%95.1%
8Karen3545133425022133585.4%85.4%
9Emma3635133430018133175.6%75.6%
10Julie0545143435023113482.9%82.9%
11Total014003223305251724152511367521185.8%85.8%
12
13TotalTarget%
14Total A:13615090.7%90.7%
15Total B:759678.1%78.1%
16Total A+B:21124685.8%85.8%
17
18Top 3 for A+B%
19John, PeterJohn, Peter
20KarenKaren
21JulieJulie
Task Scores
Cell Formulas
RangeFormula
Q3:R3,Q5:R10Q3=SUM(C3+E3+G3+I3+K3+M3+O3)
S3,S5:S10S3=SUM(Q3+R3)
C4:R4C4=SUM(C3)*6
S4S4=SUM(Q4:R4)
T5T5=SUM(S5/S3)
U5:U10U5=S5/S$3
T6T6=SUM(S6/S3)
T7T7=SUM(S7/S3)
T8T8=SUM(S8/S3)
T9T9=SUM(S9/S3)
T10:T11T10=SUM(S10/S3)
C11:S11C11=SUM(C5:C10)
U11U11=S11/S4
Q14Q14=SUM(G11+I11+K11+M11+O11)
R14R14=SUM(Q4)
Q15Q15=SUM(D11+H11+J11+L11+N11+P11)
R15R15=SUM(R4)
Q16:R16Q16=SUM(Q14:Q15)
T14:T16T14=SUM(Q14/R14)
U14:U16U14=Q14/R14
M19M19=TEXTJOIN(", ", TRUE, IF(T5:T10=MAX(T5:T10), B5:B10, ""))
N19N19=TEXTJOIN(", ", TRUE, IF(T5:T10=MAX(T5:T10), B5:B10, ""))
M20M20=TEXTJOIN(", ", TRUE, IF(T5:T10=LARGE(T5:T10, COUNTIF(T5:T10, MAX(T5:T10))+1), B5:B10, ""))
N20N20=TEXTJOIN(", ", TRUE, IF(T5:T10=MAX((T5:T10)*(T5:T10<MAX(T5:T10))), B5:B10, ""))
M21M21=TEXTJOIN(", ", TRUE, IF(T5:T10=LARGE(T5:T10, COUNTIF(T5:T10, MAX(T5:T10))+COUNTIF(T5:T10, LARGE(T5:T10, COUNTIF(T5:T10, MAX(T5:T10))+1))+1), B5:B10, ""))
N21N21=TEXTJOIN(", ", TRUE, IF(T5:T10=MAX((T5:T10)*(T5:T10<VLOOKUP(LEFT(M20,FIND(",",M20&",")-1),B5:T10,19,0))), B5:B10, ""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
In your Excel version I think that you will need to confirm each formula with Ctrl+Shift+Enter, not just Enter
I have shown those formulas in column M below, but also offered a couple of slightly shorter ones in column N.

One other comment:
In most of your formulas in the top section you are using SUM() when
a) It is not needed &
b) It is inefficient because it is making Excel do a calculation that is not needed.

I have shown alternative to the column T formulas in column U.
Take the formula in T5 for example
=SUM(S5/S3)
Step 1: Excel does the calculation S5/S3 which results in (approximately) 0.951 (or 95.1%)
Step 2: Excel sums 0.951 which (of course) still results in 0.951
So step 2 is pointless.

Similarly, the formula in R3 is
=SUM(D3+F3+H3+J3+L3+N3+P3)
Step 1: Excel does D3+F3+H3+J3+L3+N3+P3 which is 3+0+4+1+3+3+2 = 16
Step 2: Excel sums 16 giving 16
So again the SUM does nothing other than perform an unnecessary calculation.

BTW, since the columns have regular headings, for cell R3 you could use a formula like this rather than entering every individual cell reference
=SUMIF(C2:P2,"B",C3:P3)
This adds all the values in the row 3 range where the row 2 range has a "B"

24 11 10.xlsm
BCDEFGHIJKLMNOPQRSTU
1NameSaturdaySundayMondayTuesdayWednesdayThursdayFridayTotals
2ABABABABABABABABA + B%
3Possible Points Each03006451534352251641
4Possible Points Team01800362430630182418301215096246
5John3645153435025143995.1%95.1%
6David2445053415023103380.5%80.5%
7Peter3645152435125143995.1%95.1%
8Karen3545133425022133585.4%85.4%
9Emma3635133430018133175.6%75.6%
10Julie0545143435023113482.9%82.9%
11Total014003223305251724152511367521185.8%85.8%
12
13TotalTarget%
14Total A:13615090.7%90.7%
15Total B:759678.1%78.1%
16Total A+B:21124685.8%85.8%
17
18Top 3 for A+B%
19John, PeterJohn, Peter
20KarenKaren
21JulieJulie
Task Scores
Cell Formulas
RangeFormula
Q3:R3,Q5:R10Q3=SUM(C3+E3+G3+I3+K3+M3+O3)
S3,S5:S10S3=SUM(Q3+R3)
C4:R4C4=SUM(C3)*6
S4S4=SUM(Q4:R4)
T5T5=SUM(S5/S3)
U5:U10U5=S5/S$3
T6T6=SUM(S6/S3)
T7T7=SUM(S7/S3)
T8T8=SUM(S8/S3)
T9T9=SUM(S9/S3)
T10:T11T10=SUM(S10/S3)
C11:S11C11=SUM(C5:C10)
U11U11=S11/S4
Q14Q14=SUM(G11+I11+K11+M11+O11)
R14R14=SUM(Q4)
Q15Q15=SUM(D11+H11+J11+L11+N11+P11)
R15R15=SUM(R4)
Q16:R16Q16=SUM(Q14:Q15)
T14:T16T14=SUM(Q14/R14)
U14:U16U14=Q14/R14
M19M19=TEXTJOIN(", ", TRUE, IF(T5:T10=MAX(T5:T10), B5:B10, ""))
N19N19=TEXTJOIN(", ", TRUE, IF(T5:T10=MAX(T5:T10), B5:B10, ""))
M20M20=TEXTJOIN(", ", TRUE, IF(T5:T10=LARGE(T5:T10, COUNTIF(T5:T10, MAX(T5:T10))+1), B5:B10, ""))
N20N20=TEXTJOIN(", ", TRUE, IF(T5:T10=MAX((T5:T10)*(T5:T10<MAX(T5:T10))), B5:B10, ""))
M21M21=TEXTJOIN(", ", TRUE, IF(T5:T10=LARGE(T5:T10, COUNTIF(T5:T10, MAX(T5:T10))+COUNTIF(T5:T10, LARGE(T5:T10, COUNTIF(T5:T10, MAX(T5:T10))+1))+1), B5:B10, ""))
N21N21=TEXTJOIN(", ", TRUE, IF(T5:T10=MAX((T5:T10)*(T5:T10<VLOOKUP(LEFT(M20,FIND(",",M20&",")-1),B5:T10,19,0))), B5:B10, ""))
Press CTRL+SHIFT+ENTER to enter array formulas.
This is why I love this forum, thank you so much for helping with this and your advice on the formulas in the rest of my spreadsheet is really appreciated. I love learning new things to do with Excel.

Now that I have got the names in the relevant cells, how would I put the score they achieved in cell T19? So it would show John, Peter 95.1%.

Thanks again for your help with this.
 
Upvote 0
Now that I have got the names in the relevant cells, how would I put the score they achieved in cell T19?
In that case I would do the numbers first and then use that for the names as that makes the names formulas considerably simpler. :)
(I've suggested/changed a lot of the other formulas in the region shown below too)

24 11 10.xlsm
BCDEFGHIJKLMNOPQRST
1NameSaturdaySundayMondayTuesdayWednesdayThursdayFridayTotals
2ABABABABABABABABA + B%
3Possible Points Each03006451534352251641
4Possible Points Team01800362430630182418301215096246
5John3645153435025143995.1%
6David2445053415023103380.5%
7Peter3645152435125143995.1%
8Karen3545133425022133585.4%
9Emma3635133430018133175.6%
10Julie0545143435023113482.9%
11Total014003223305251724152511367521185.8%
12
13TotalTarget%
14Total A:13615090.7%
15Total B:759678.1%
16Total A+B:21124685.8%
17
18Top 3 for A+B%
19John, Peter95.1%
20Karen85.4%
21Julie82.9%
Task Scores (2)
Cell Formulas
RangeFormula
Q3:R10Q3=SUMIF($C$2:$P$2,Q$2,$C3:$P3)
S3:S10S3=Q3+R3
C4:P4C4=C3*6
T5:T10T5=S5/S$3
C11:S11C11=SUM(C5:C10)
T11T11=S11/S4
Q14Q14=Q11
R14R14=Q4
Q15Q15=R11
R15R15=R4
Q16:R16Q16=SUM(Q14:Q15)
T14:T16T14=Q14/R14
M19:M21M19=TEXTJOIN(", ",1,IF(T$5:T$10=T19,B$5:B$10,""))
T19:T21T19=AGGREGATE(14,6,T$5:T$10/(T$5:T$10<T18),1)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,730
Messages
6,180,607
Members
452,991
Latest member
JM_000888

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