| View previous topic :: View next topic |
| Author |
Message |
crispy1978 General User

Joined: 01 Sep 2011 Posts: 6
|
Posted: Thu Sep 01, 2011 12:22 am Post subject: Ranking "tied" data |
|
|
If I have a spreadsheet like:
B|C
Malcolm|30
Thomas|40
Iain|30
Stuart|50
Robert|30
Matthew|20
And I want the rankings to go 1,2,3,4,5,6 rather than 1,2,3,3,3,6 - is there a way to do it? |
|
| Back to top |
|
 |
keme Moderator


Joined: 30 Aug 2004 Posts: 2732 Location: Egersund, Norway
|
Posted: Thu Sep 01, 2011 3:17 am Post subject: |
|
|
You can introduce a "fudge factor".
Assuming all scores are integer. In cell D1, enter the formula =C1+ROW()/1000000, copy down, and use that for ranking. This will introduce minute and unique variations, thus reliably resolving ties.
Note that if your score figures exceed 8 digits, the limitations of Calc's floating point arithmetic will introduce rounding errors to my formula, possibly cancelling out the "fudge". |
|
| Back to top |
|
 |
crispy1978 General User

Joined: 01 Sep 2011 Posts: 6
|
Posted: Thu Sep 01, 2011 4:30 am Post subject: |
|
|
| Thanks - whilst that makes column D have unique figures, it still shows the rankings (which I have in column A) as effectively equal - ideally I would like it to show 1, 2, 3, 4, 5, 6. |
|
| Back to top |
|
 |
keme Moderator


Joined: 30 Aug 2004 Posts: 2732 Location: Egersund, Norway
|
Posted: Thu Sep 01, 2011 4:47 am Post subject: |
|
|
| crispy1978 wrote: | | Thanks - whilst that makes column D have unique figures, it still shows the rankings (which I have in column A) as effectively equal - ideally I would like it to show 1, 2, 3, 4, 5, 6. | Can you post the formula you use for column A? |
|
| Back to top |
|
 |
crispy1978 General User

Joined: 01 Sep 2011 Posts: 6
|
Posted: Thu Sep 01, 2011 6:53 am Post subject: |
|
|
| keme wrote: | | crispy1978 wrote: | | Thanks - whilst that makes column D have unique figures, it still shows the rankings (which I have in column A) as effectively equal - ideally I would like it to show 1, 2, 3, 4, 5, 6. | Can you post the formula you use for column A? |
=RANK(C1;$C$1:$C$20) is what I have at the moment. |
|
| Back to top |
|
 |
keme Moderator


Joined: 30 Aug 2004 Posts: 2732 Location: Egersund, Norway
|
Posted: Thu Sep 01, 2011 11:54 pm Post subject: |
|
|
| crispy1978 wrote: | | =RANK(C1;$C$1:$C$20) is what I have at the moment. |
Change your ranking formula to use column D:
=RANK(D1;$D$1:$D$20) |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|