[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

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?
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".
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.
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?
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.
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)
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
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