Automated ranking board

Asw091

New Member
Joined
May 28, 2017
Messages
24
[FONT=&quot][FONT=&quot]Hello guys, I hope you can help.[/FONT][/FONT]
[FONT=&quot][FONT=&quot][/FONT]
[/FONT]

[FONT=&quot][FONT=&quot]I have a sheet that basically has names and scores, the names are in cells B3-B10 and their scores are in cells Z3-Z10. This is part of a scoreboard with other bits in between them so everything needs to stay where it is, however I would like to put a live 1st - 8th below it that will rank them in order, however rather than it just saying what position they’re in next to their score, I was hoping it would re order their names along with their scores in position order. (Cells A3-A10 would be #1 - #8).[/FONT][/FONT]
[FONT=&quot][FONT=&quot][/FONT]
[/FONT]

[FONT=&quot][FONT=&quot]For example, Phil gets 10 points and Paul gets 5, the list would show

[/FONT][FONT=&quot]
[/FONT][/FONT]

RankNameScore
#1Phil10
#2Paul5

<tbody>
</tbody>
[FONT=&quot][FONT=&quot][/FONT]
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot][FONT=&quot][/FONT]
[/FONT]

[FONT=&quot][FONT=&quot]However if Paul gets 10 more, as I update the scores in Z3-Z10 it would re order them and show

[/FONT][FONT=&quot]
[/FONT][/FONT]

RankNameScore
#1Paul15
#2Phil10

<tbody>
</tbody>
[FONT=&quot]
[/FONT]

[FONT=&quot][FONT=&quot][/FONT]
[/FONT]

[FONT=&quot][FONT=&quot]But for 8. Is this possible?

Thanks.[/FONT][/FONT]
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next




    If Not Intersect(Target, Range("D:D")) Is Nothing Then
        Range("D2").Sort Key1:=Range("D2"), _
        Order1:=xlDescending, Header:=xlYes, _
        OrderCustom:=1, MatchCase:=False, _
        Orientation:=xlTopToBottom
        Application.DisplayAlerts = True
    End If
End Sub


Col ACol B (hide)Col CCol D
RankNameScore
#1Phil15
#2Paul10

<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>


If you design your sheet like the above, the macro, pasted in to the Sheet level module, will auto sort the entries
based on entries in Col D. It will leave Col A as is because Col B is empty. The macro will only sort Cols C & D.

Yes, there are other methods of accomplishing your goal .. this is just one of many.
 
Upvote 0

Forum statistics

Threads
1,214,553
Messages
6,120,179
Members
448,948
Latest member
spamiki

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