Rank a list

saitken

New Member
Joined
Jan 6, 2013
Messages
40
Office Version
  1. 365
Platform
  1. MacOS
Hi

I have created a spreadsheet for a charity golf competition. I enter all the teams scores and have a tab 'Rank calc' that ranks all the scores and has a formula to work out the equal ranks e.g. 4th equal. But it is not working properly and I can't work out what the error is. The competition is on Friday, so if someone can help fix the ranking or knows another way to do the same this please let me know.
Thank you

Cell Formulas
RangeFormula
A2:A31A2='Score Card'!C3
B2:B31B2='Score Card'!AC3
C2:C31C2=RANK(B2,$B$2:$B$27,0)+COUNTIF($B$2:B2,B2)-1
E2E2=IF(G2=G3,1 & "=",1)
F2:F31F2=OFFSET(A$2,MATCH(SMALL(C$2:C$31,ROW()-ROW(F$2)+1),C$2:C$31,0)-1,0)
G2:G31G2=INDEX($A$1:$B$31, MATCH(F$2:F$31,$A$1:$A$31,), MATCH("Score",$A$1:$B$1,))
E3:E31E3=IF(G3=G2,LEFT(E2,LEN(E2)-1) & "=",IF(G3=G4,ROW()-2+1 & "=",ROW()-2+1))
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
What version of Excel are you using?

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

Also what exactly isn't working?
 
Upvote 0
What version of Excel are you using?

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

Also what exactly isn't working?

Excel 365 on Mac. Account details updated.

It doesn't rank correctly from the final 18th entry. "John Maxwell" appears twice and all the teams below are not correctly ranked.
Thanks
 
Upvote 0
Ok, how about
Fluff.xlsm
ABCDEFG
1Team NameScoreRankPlaceTeam NameScore
2Cairndale Hotel8781Ian McIntyre110
3Octoputts Golfing Society54162Andrew Hunter100
4Metrik Solutions67113Raumond Marshall99
5Golden Girls34254Heathhall Garden Centre97
6Peter Allen8955=Peter Allen89
7BB Bodyrepairers45225=Maureen McKerrow89
8Mathers Ltd67127Alba Printers Ltd88
9Mike McCormick76108Cairndale Hotel87
10Troqueer Garage45239Retired Firefighters77
11Maureen McKerrow89610Mike McCormick76
12Cameron McInnes432411=Metrik Solutions67
13Tom Bell's Team651411=Mathers Ltd67
14Ian McIntyre110113Gordon Lawson66
15Heathhall Garden Centre97414Tom Bell's Team65
16Emma Clark232615Donald MacDonald55
17Donald MacDonald551516=Octoputts Golfing Society54
18Gordon Lawson661316=Jock Simpson54
19Retired Firefighters77916=Margaret Hamilton54
20Alba Printers Ltd88716=Queen of the South54
21Raumond Marshall99316=Queen of the South seconds54
22Andrew Hunter100216=Angus Robertson54
23Dfs Tool & Machy Repairs472122=Les Martin49
24JD Engineering Ltd482022=John Maxwell49
25Les Martin491824JD Engineering Ltd48
26John Maxwell491925Dfs Tool & Machy Repairs47
27Jock Simpson541726=BB Bodyrepairers45
28Margaret Hamilton541826=Troqueer Garage45
29Queen of the South541928Cameron McInnes43
30Queen of the South seconds542029Golden Girls34
31Angus Robertson542130Emma Clark23
Data
Cell Formulas
RangeFormula
F2:G31F2=SORT(A2:B31,2,-1)
C2:C31C2=RANK(B2,$B$2:$B$27,0)+COUNTIF($B$2:B2,B2)-1
E2E2=IF(G2=G3,1 & "=",1)
E3:E31E3=IF(G3=G2,LEFT(E2,LEN(E2)-1) & "=",IF(G3=G4,ROW()-2+1 & "=",ROW()-2+1))
Dynamic array formulas.
 
Upvote 0
Solution
Another option is
Fluff.xlsm
ABCDEFG
1Team NameScoreRankPlaceTeam NameScore
2Cairndale Hotel8781Ian McIntyre110
3Octoputts Golfing Society54162Andrew Hunter100
4Metrik Solutions67113Raumond Marshall99
5Golden Girls34294Heathhall Garden Centre97
6Peter Allen8955 =Peter Allen89
7BB Bodyrepairers45265 =Maureen McKerrow89
8Mathers Ltd67127Alba Printers Ltd88
9Mike McCormick76108Cairndale Hotel87
10Troqueer Garage45279Retired Firefighters77
11Maureen McKerrow89610Mike McCormick76
12Cameron McInnes432811 =Metrik Solutions67
13Tom Bell's Team651411 =Mathers Ltd67
14Ian McIntyre110113Gordon Lawson66
15Heathhall Garden Centre97414Tom Bell's Team65
16Emma Clark233015Donald MacDonald55
17Donald MacDonald551516 =Octoputts Golfing Society54
18Gordon Lawson661316 =Jock Simpson54
19Retired Firefighters77916 =Margaret Hamilton54
20Alba Printers Ltd88716 =Queen of the South54
21Raumond Marshall99316 =Queen of the South seconds54
22Andrew Hunter100216 =Angus Robertson54
23Dfs Tool & Machy Repairs472522 =Les Martin49
24JD Engineering Ltd482422 =John Maxwell49
25Les Martin492224JD Engineering Ltd48
26John Maxwell492325Dfs Tool & Machy Repairs47
27Jock Simpson541726 =BB Bodyrepairers45
28Margaret Hamilton541826 =Troqueer Garage45
29Queen of the South541928Cameron McInnes43
30Queen of the South seconds542029Golden Girls34
31Angus Robertson542130Emma Clark23
Data
Cell Formulas
RangeFormula
E2:G31E2=LET(r,RANK(B2:B31,B2:B31),SORT(HSTACK(r,A2:B31),3,-1))
C2:C31C2=RANK(B2,$B$2:$B$31,0)+COUNTIF($B$2:B2,B2)-1
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E:EExpression=COUNTIFS(E:E,E1)>1textNO


For the conditional formatting use a custom cell format of 0"="
 
Upvote 0
Hi thanks for this. But I don't understand how to use it! Any chance you can attach a sheet with this that I can download?
 
Upvote 0
Just click the copy icon & paste it into a blank sheet
Copy icon.png
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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