+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Problem with repeated value in RANK formula

  1. #1
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2019
    Posts
    327

    Exclamation Problem with repeated value in RANK formula

    Hi:

    I am trying to rank the following in descending order with name being in column A and value in column B:

    ACC -3
    AMBUJACEM -20.5
    ASIANPAINT -18
    AXISBANK 21.5
    BAJAJ-AUTO -26
    BANKBARODA -7.5
    BHARTIARTL 5.5
    BHEL 17
    BPCL 30.5
    CAIRN -26
    CIPLA 9.5
    COALINDIA 2.5
    DLF 25
    DRREDDY 30.5
    GAIL -9.5
    GRASIM -3
    HCLTECH -0.5
    HDFC 15
    HDFCBANK 1.5
    HEROMOTOCO -17
    HINDALCO 22
    HINDUNILVR -12
    ICICIBANK 1
    IDFC -1
    INFY -14.5
    ITC -11.5
    JINDALSTEL 0.5
    JPASSOCIAT 7.5
    KOTAKBANK 0
    LT -19.5
    M&M 11
    MARUTI 10
    NTPC 4
    ONGC -19
    PNB 24
    POWERGRID 0
    RANBAXY 0
    RELIANCE -6
    RELINFRA -11.5
    SAIL 12
    SBIN 9
    SESAGOA 8.5
    SIEMENS -8.5
    STER 5.5
    SUNPHARMA -20.5
    TATAMOTORS 13.5
    TATAPOWER -6
    TATASTEEL -7.5
    TCS 30.5
    WIPRO -23.5


    I am using =RANK(B1,$B:$B,0) but I get an error when the rank value is repeated. In the above example BPCL, DRREDDY & TCS all have 30.5

    Can somone help me with the formula?

    Thanks & Regards,
    Regards,
    Navin Agrawal

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Problem with repeated value in RANK formula

    I don't get an error... I just get repeated rank number...

    Can you post a sample file showing the error occurring?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Problem with repeated value in RANK formula

    Why not do sort A1:B50 by column B?
    Click on star (*) below if this helps

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Problem with repeated value in RANK formula

    ok... i don't now what "error" is that but here's a try....
    ranking with "duplicates" i hope this is what you want. if not please tell us what is the expected outcome...

    =RANK(B1,$B$1:$B$50,0)+COUNTIF($B$1:$B1,B1)-1
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2019
    Posts
    327

    Re: Problem with repeated value in RANK formula

    Thanks a lot vlady.

    This is exactly what I wanted...

    You guys make things look so simple and easy....

    Thanks always....

+ 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