+ Reply to Thread
Results 1 to 4 of 4

Use the RANK and COUNTIF combination to get the unique ranking

  1. #1
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019, Microsoft 365.
    Posts
    440

    Use the RANK and COUNTIF combination to get the unique ranking

    Dear all,

    I used the RANK and COUNTIF combination to get the unique ranking of a range. For example, the formula is: =RANK(A1,$A$1:$A$890,0)+COUNTIF($A$1:A1,A1)-1

    To my surprise, the failed to produce the results that I want. I attached a sample file here. Basically, the two ranks of 416 and 418 are not there. My frustrated


    A source below really shows the formula should work.

    http://www.excelforum.com/excel-gene...-formulas.html
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Use the RANK and COUNTIF combination to get the unique ranking

    That seems to be a problem with RANK function - it's ranking 415 and 416 and 417 differently although they are all the same number - I don't know what causes that but you can use COUNTIF to replicate RANK so this formula worked for me

    =COUNTIF($A$1:$A$890,">"&A1)+COUNTIF($A$1:A1,A1)
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019, Microsoft 365.
    Posts
    440

    Re: Use the RANK and COUNTIF combination to get the unique ranking

    Hi daddylonglegs,

    I very appreciate your great help for this problem. Yes, it really looks weird that the RANK() function produces different numbers, although they are the same number! Maybe this is due the number of decimal places that the RANK() function uses?

    Anyway, your formula using both COUNTIF worked perfectly! Thank you.

  4. #4
    Registered User
    Join Date
    09-26-2013
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Use the RANK and COUNTIF combination to get the unique ranking

    Quote Originally Posted by billj View Post
    Hi daddylonglegs,

    I very appreciate your great help for this problem. Yes, it really looks weird that the RANK() function produces different numbers, although they are the same number! Maybe this is due the number of decimal places that the RANK() function uses?

    Anyway, your formula using both COUNTIF worked perfectly! Thank you.
    Had exactly the same problem and your COUNTIF worked for me too.!
    Many Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. RANK - Non unique values, contiguous rank required
    By PaulBo in forum Excel General
    Replies: 9
    Last Post: 02-20-2014, 10:34 AM
  2. RANK, duplicate ranking but no gaps in rank
    By arron laing in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2012, 07:15 AM
  3. ranking data producing the same rank
    By sfinns in forum Excel General
    Replies: 2
    Last Post: 02-09-2012, 11:35 PM
  4. Replies: 6
    Last Post: 06-01-2010, 06:19 PM
  5. [SOLVED] Ranking numbers that are close together with the SAME RANK?
    By Peter Gundrum Milwaukee WI in forum Excel General
    Replies: 5
    Last Post: 05-09-2006, 12:15 PM

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