Jim S

Q: Ranking formula for a column of numbers

I am setting up a race rotation spread sheet for my boys club. I hve everything figured out except the "Place" column.

 

I pasted in a formula a friend gave me from excel but it does not seem to work. 1st place works (score of 3), 2nd place works (score of 6) but thereafter it fails to function by highlighting 3rd place (score of 6) and it calls it 5th place.  4th place  (score of 7) is called 8th place.

 

I have tried to write a numbers formula but can't figure it out.

 

Anyone have a suggestion?

 

rotationspread.png

Posted on Dec 19, 2012 10:56 AM

Close

Q: Ranking formula for a column of numbers

  • All replies
  • Helpful answers

  • by Jerrold Green1,

    Jerrold Green1 Jerrold Green1 Dec 19, 2012 11:20 AM in response to Jim S
    Level 7 (30,001 points)
    Dec 19, 2012 11:20 AM in response to Jim S

    Hi Jim,

     

    The formula is working correctly. The reason that a score of 7 is rated as 8th place is that there are 7 contestants with better scores.

     

    Jerry

  • by Jim S,

    Jim S Jim S Dec 19, 2012 11:24 AM in response to Jerrold Green1
    Level 4 (3,471 points)
    iOS Apps
    Dec 19, 2012 11:24 AM in response to Jerrold Green1

    I can't believe I did not catch that!

     

    How would i write the formula in numbers?  I am trying to learn as much as I can with this.

  • by Wayne Contello,Helpful

    Wayne Contello Wayne Contello Dec 19, 2012 11:30 AM in response to Jim S
    Level 6 (19,421 points)
    iWork
    Dec 19, 2012 11:30 AM in response to Jim S

    Jim,

     

    The formula as written is correct for Numbers.

     

    Here is a snippet from the function reference regarding the rank() function:

    The RANK function returns the rank of a number within a range of numbers.

    • RANK(num-date-dur, num-date-dur-set, largest-is-high)
      • num-date-dur:  A value. num-date-dur is a number value, a date/time value, or a duration value.
      • num-date-dur-set:  A collection of values. num-date-dur-set is a collection containing number, date, or duration values. All values must be of the same type.
      • largest-is-high:  An optional value specifying whether the smallest or the largest value in the collection is ranked 1.
        • largest is low (0, FALSE, or omitted)Assign the largest value in the collection the rank 1.
        • largest is high (1, or TRUE)Assign the smallest value in the collection the rank 1.

    Usage Notes

    • Values included in the collection that are the same are ranked together, but impact the outcome.
    • If the specified value does not match any of the values in the collection, an error is returned.

     

    You can open the function reference by selecting the menu item "View > Show Function Browser"

  • by Jerrold Green1,Solvedanswer

    Jerrold Green1 Jerrold Green1 Dec 19, 2012 11:33 AM in response to Jim S
    Level 7 (30,001 points)
    Dec 19, 2012 11:33 AM in response to Jim S

    Jim,

     

    =RANK(V5, $V$4:$V$32, TRUE) is a perfectly good expression in Numbers, but I would never use it because Numbers allows a more simple addressing scheme.

     

    In Numbers you could write:

    =RANK(V, V, 1)

     

    The result would be the same.

     

    Since RANK requires a single cell reference for the first parameter, you can simply state the column in which it is found, and the same row is assumed. Since RANK requires a Range of addresses for the second parameter, Numbers allows you to include the entirety of column V by writing V, and of course TRUE and 1 are equivalent.

     

    Jerry

  • by Badunit,

    Badunit Badunit Dec 19, 2012 12:51 PM in response to Jim S
    Level 6 (11,705 points)
    iTunes
    Dec 19, 2012 12:51 PM in response to Jim S

    Offhand I can't think of a single-cell-formula method for determining "place" if your desire is to have the lowest score(s) = first place, the next lowest score(s) = 2nd place, and so on but here is a way to do it using two extra columns.

     

    Screen Shot 2012-12-19 at 3.45.26 PM.png

     

    Column C formula =LOOKUP(B,E,F)

    Column E formula =SMALL(B,ROW()-1)

    F2 = 1

    F3 =IF(E3>E2,F2+1,F2)

    Fill down from F3

     

    This may be harder to implement if your table has blank rows in it. I think it will still work though.

  • by shainberg1,

    shainberg1 shainberg1 Aug 24, 2016 4:17 AM in response to Jerrold Green1
    Level 1 (8 points)
    iWork
    Aug 24, 2016 4:17 AM in response to Jerrold Green1

    Hi Jerry,

     

    Sorry for hijacking this thread but I found it while trying to find a solution.

     

    I am trying to create a ranking formula for the following spreadsheet in numbers and trying to make sense of your answer on the thread and adapt it but as my numbers skills are fairly limited i don't quite understand. Could you explain how I can create a ranking formula for the following spreadsheet?

     

    Screen Shot 2016-08-24 at 12.16.00.png

    Thanks in advance