+ Reply to Thread
Results 1 to 11 of 11

How to break ties in the RANK function

Hybrid View

  1. #1
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Does this give you the order you want (eg in an adjacent row 2 cell copied down):

    =RANK(B3,$B$3:$B$9,1)+SUMPRODUCT(--($B$3:$B$9=B3),--($C$3:$C$9>C3))

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  2. #2
    Forum Contributor
    Join Date
    10-16-2008
    Location
    San Diego
    Posts
    109
    Quote Originally Posted by RichardSchollar View Post
    Does this give you the order you want (eg in an adjacent row 2 cell copied down):

    =RANK(B3,$B$3:$B$9,1)+SUMPRODUCT(--($B$3:$B$9=B3),--($C$3:$C$9>C3))

    Richard
    Seems to work.

    Can you explain what it is doing so I can duplicate it please

    Thanks much

  3. #3
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Sure - it uses the rank function to determine an initial rank and then the Sumproduct part of the formula separates out any ranking ties by adding on the number of values in the column where the score is tied (ie ($B$3:$B$9=B3)) and the value in the C column is greater than the current C column value ($C$3:$C$9>C3) - so this will give a higher rank to tied values where the C column has the highest value.

  4. #4
    Forum Contributor
    Join Date
    10-16-2008
    Location
    San Diego
    Posts
    109
    Quote Originally Posted by RichardSchollar View Post
    Sure - it uses the rank function to determine an initial rank and then the Sumproduct part of the formula separates out any ranking ties by adding on the number of values in the column where the score is tied (ie ($B$3:$B$9=B3)) and the value in the C column is greater than the current C column value ($C$3:$C$9>C3) - so this will give a higher rank to tied values where the C column has the highest value.
    Got it
    Thanks much

  5. #5
    Registered User
    Join Date
    06-21-2011
    Location
    Corning, NY
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to break ties in the RANK function

    I have a column of unordered ranks (including ties) in 1st column and want to create 2nd column that is an ordered version of the 1st column. I want to do this with Excel functions (I have Excel 2010, but a function that works for Excel 2007 would be OK too), not the Data Sort through the ribbon.

    Col 1
    11
    10
    2
    7
    3
    5.5
    13
    12
    8
    15
    4
    9
    5.5
    16
    14
    1

    Can someone help?

  6. #6
    Registered User
    Join Date
    08-20-2013
    Location
    malaysia
    MS-Off Ver
    Office 365
    Posts
    18

    Re: How to break ties in the RANK function

    hi richard
    chanced upon your post while looking for a solution to my ranking with multiple criteria in excel 2003 and your formula does work for my problem, thanks a million where ever and who ever you are, cheers.....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1