+ Reply to Thread
Results 1 to 6 of 6

Multiple ranking

  1. #1
    Registered User
    Join Date
    02-11-2009
    Location
    St Albans, UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Multiple ranking

    What I am trying to do is give the rank in column D based on the values in columns B and C. Some of the values in column B will have then same rank, and as such I want to add further criteria on which to rank them. I would first like to rank the values in column B and then rank the values in column C, which should give the rank in column D. For example Dog and Frog have the same value of 400 from the Non UK column. Therefore, rather than having these as both rank 1, I want them to be ranks 1 and 2, so want to add another criteria (UK). As Dog is greater than Frog in the UK (i.e. 10>7), I would like to rank Dog as 1 and Frog as 2. Goat will be ranked as 3 because it had the thrid highest value in the Non UK. I would be greatful for any suggestions.

    Thanks

    A B C D
    1 Non UK UK Rank
    2 Cat 200 5 5
    3 Dog 400 10 1
    4 Eel 200 11 4
    5 Frog 400 7 2
    6 Goat 300 2 3
    Last edited by douglaswarden; 02-11-2009 at 01:54 PM.

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

    Re: Multiple ranking

    If you add a helper column,

    e.g. in D2: =B2+C2 copied down

    then in E2: =RANK(D2,$D$2:$D$6) copied down

    Then hide column D.
    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
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Multiple ranking

    Try...

    D2, copied down:

    =RANK(B2,$B$2:$B$6)+SUMPRODUCT(--($B$2:$B$6=B2),--($C$2:$C$6>C2))

    Hope this helps!

  4. #4
    Registered User
    Join Date
    02-11-2009
    Location
    St Albans, UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Multiple ranking

    Domenic - that is what I was looking for. Many thanks!!!

  5. #5
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Multiple ranking

    You're very welcome!

  6. #6
    Registered User
    Join Date
    06-14-2012
    Location
    Trivandrum
    MS-Off Ver
    Excel 2002
    Posts
    1

    Re: Multiple ranking

    how can this be extended to compar/rank 4 columns one after the other...that is rank first column, in case of ties look for second col, and if that too is tie a third col is considered...likewise

+ 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