OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Ranking "tied" data

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
crispy1978
General User
General User


Joined: 01 Sep 2011
Posts: 6

PostPosted: Thu Sep 01, 2011 12:22 am    Post subject: Ranking "tied" data Reply with quote

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
View user's profile Send private message
keme
Moderator
Moderator


Joined: 30 Aug 2004
Posts: 2732
Location: Egersund, Norway

PostPosted: Thu Sep 01, 2011 3:17 am    Post subject: Reply with quote

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
View user's profile Send private message
crispy1978
General User
General User


Joined: 01 Sep 2011
Posts: 6

PostPosted: Thu Sep 01, 2011 4:30 am    Post subject: Reply with quote

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
View user's profile Send private message
keme
Moderator
Moderator


Joined: 30 Aug 2004
Posts: 2732
Location: Egersund, Norway

PostPosted: Thu Sep 01, 2011 4:47 am    Post subject: Reply with quote

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
View user's profile Send private message
crispy1978
General User
General User


Joined: 01 Sep 2011
Posts: 6

PostPosted: Thu Sep 01, 2011 6:53 am    Post subject: Reply with quote

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
View user's profile Send private message
keme
Moderator
Moderator


Joined: 30 Aug 2004
Posts: 2732
Location: Egersund, Norway

PostPosted: Thu Sep 01, 2011 11:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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