+ Reply to Thread
Results 1 to 3 of 3

Rank and Count IF Formulas

  1. #1
    Registered User
    Join Date
    10-14-2009
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    16

    Rank and Count IF Formulas

    I have the following formula set-up:

    =RANK(R2,$R$2:$R$51)+COUNTIF($R$2:R2,R2)

    It basically ranks a list of percentages in a given range (R2:R51) - however for some reason it does not return #1? I have to then minus 1 off each result to get a definitive list of rankings.

    Can anybody help?

    Thanks.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Rank and Count IF Formulas

    you need to subtract 1 from the COUNTIF, eg

    =RANK(R2,$R$2:$R$51)+COUNTIF($R$2:R2,R2)-1

    ie you only want to increment the RANK for the 2nd+ instance of R value - ie where countif returns 2 increment RANK by 1 etc...

  3. #3
    Registered User
    Join Date
    10-14-2009
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Rank and Count IF Formulas

    Yes I kind of figured that just after writing my post.

    I think I wanted to be sure there was nothing wrong with the formula.

    Thanks.

+ 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