+ Reply to Thread
Results 1 to 12 of 12

Ranking - multiple criteria

  1. #1
    Registered User
    Join Date
    07-08-2015
    Location
    Bratislava
    MS-Off Ver
    2013
    Posts
    47

    Ranking - multiple criteria

    Port Time Price Rank
    M 1 10
    M 2 11
    M 3 12
    M 1 13
    S 1 10
    S 2 9
    S 3 8

    Hi folks,
    hope you will be able to help me. I need a ranking for an example above. The first key is the Time (the less the better) and second key is Price (the less the better). It has to match with Port range so range 1 would be Port M aso.

    Many thanks!
    Lukas

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Ranking - multiple criteria

    So we don't come up with many wrong answers, please enter the expected results into your sample.

  3. #3
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Ranking - multiple criteria

    Hi,

    Try the following formula in D2:

    =COUNTIF($B$2:$B$8,"<"&B2)+1+SUMPRODUCT(--($C$2:$C$8=C2),--($B$2:$B$8>B2))

    See the attached file.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-08-2015
    Location
    Bratislava
    MS-Off Ver
    2013
    Posts
    47

    Re: Ranking - multiple criteria

    Port Time Price Rank
    M 1 10 1
    M 2 11 3
    M 3 12 4
    M 1 13 2
    S 1 10 1
    S 2 9 2
    S 3 8 3

    This is how it should look like the Time is more Important, in case the Time is equal for two or more cells, then the Price is decisive. Also as I mentioned before I need to consider the Port range.

  5. #5
    Registered User
    Join Date
    07-08-2015
    Location
    Bratislava
    MS-Off Ver
    2013
    Posts
    47

    Re: Ranking - multiple criteria

    thanks, but this didnt solve it :/

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Ranking - multiple criteria

    Try this one
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This assumes that your sample table is in A1:D8 (results in column D)

  7. #7
    Registered User
    Join Date
    07-08-2015
    Location
    Bratislava
    MS-Off Ver
    2013
    Posts
    47

    Re: Ranking - multiple criteria

    Quote Originally Posted by jason.b75 View Post
    Try this one
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This assumes that your sample table is in A1:D8 (results in column D)
    So in my example it works great, but in my real file it doesnt, can I attach somehow an xls file here?

  8. #8
    Registered User
    Join Date
    07-08-2015
    Location
    Bratislava
    MS-Off Ver
    2013
    Posts
    47

    Re: Ranking - multiple criteria

    Quote Originally Posted by jason.b75 View Post
    Try this one
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This assumes that your sample table is in A1:D8 (results in column D)
    So in my example it works great, but in my real file it doesnt, can I attach somehow an xls file here?

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Ranking - multiple criteria

    Quote Originally Posted by Lugashz View Post
    So in my example it works great, but in my real file it doesnt, can I attach somehow an xls file here?
    Click on 'Go Advanced' at the bottom right or the reply box, then look for the paperclip icon (top row, 3rd from right).

    There is a limit on file size so you might have to copy a reasonable size sample to upload.

  10. #10
    Registered User
    Join Date
    07-08-2015
    Location
    Bratislava
    MS-Off Ver
    2013
    Posts
    47

    Re: Ranking - multiple criteria

    Example, try2 attached
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Ranking - multiple criteria

    That N/A entry makes a lot of difference.
    Try this one.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    07-08-2015
    Location
    Bratislava
    MS-Off Ver
    2013
    Posts
    47

    Re: Ranking - multiple criteria

    Quote Originally Posted by jason.b75 View Post
    That N/A entry makes a lot of difference.
    Try this one.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Awesome, 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. Ranking Based on Multiple Criteria
    By khannadh in forum Excel General
    Replies: 4
    Last Post: 09-02-2015, 08:20 PM
  2. Unique ranking by multiple criteria
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2015, 08:03 AM
  3. Multiple Criteria Ranking
    By Keelin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2014, 01:32 AM
  4. [SOLVED] multiple criteria conditional ranking and protecting multiple sheets in one go
    By samktlim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2013, 09:31 AM
  5. Vlookup with multiple criteria & ranking
    By fitzpatrickb in forum Excel General
    Replies: 8
    Last Post: 11-20-2009, 03:57 PM
  6. Ranking by multiple criteria
    By augy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2008, 12:37 PM
  7. Multiple Ranking Criteria
    By Bullfn33 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-13-2007, 04:12 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