+ Reply to Thread
Results 1 to 6 of 6

Unique Ranking with Multiple Criteria

  1. #1
    Registered User
    Join Date
    01-28-2015
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    32

    Unique Ranking with Multiple Criteria

    Hi Experts,

    I am trying to do ranking on both ascending and descending order with multiple criteria

    Below is the Data Set :
    Data Set.JPG
    B3:E40
    *Data set will have some blank rows

    The blue shaded cells are the result i would like to have :
    result.JPG

    When I change the ranking Criteria in Cell H5 and H6, the ranking can automatically change

    Can you please advice the formula in cell H9:H13 and H16:H20? Thanks!

    Attach please the excel file as well !
    Unique Rank with multiple criteria.xlsx

    Regards,
    Chocobo

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Unique Ranking with Multiple Criteria

    Here's a Pivot Table approach.

    It necessitated a reordering of your data but you may find it more easy to use and see various views.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,067

    Re: Unique Ranking with Multiple Criteria

    One way:

    H9:
    =INDEX(D:D,AGGREGATE(15,6,ROW($B$4:$B$33)/(($B$4:$B$33=$H$5)*($C$4:$C$33=$H$6)),ROWS($1:1)))

    I9:
    IFERROR(1/(1/INDEX($E$4:$E$33,MATCH(1,INDEX(($B$4:$B$33=$H$5)*($C$4:$C$33=$H$6)*($D$4:$D$33=$H9),0),0))),"")

    Can there be tied values? i.e. could ham4 and Ham 5 both be 17... or whatever?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Unique Ranking with Multiple Criteria

    Please try
    H9
    =INDEX(D:D,AGGREGATE(15,6,ROW($D$4:$D$33)/($E$4:$E$33=I9)/($B$4:$B$33=$H$5)/($C$4:$C$33=$H$6),COUNTIF(I$9:I9,I9)))

    I9
    =AGGREGATE(14,6,$E$4:$E$33/($B$4:$B$33=$H$5)/($C$4:$C$33=$H$6),G9)

    H16
    =INDEX(D:D,AGGREGATE(14,6,ROW($D$4:$D$33)/($E$4:$E$33=I16)/($B$4:$B$33=$H$5)/($C$4:$C$33=$H$6),COUNTIF(I$16:I16,I16)))

    I16
    =AGGREGATE(15,6,$E$4:$E$33/($B$4:$B$33=$H$5)/($C$4:$C$33=$H$6),G16)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-28-2015
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    32

    Re: Unique Ranking with Multiple Criteria

    Hi Glenn,

    Yes, there will be tied value, if ham4 and ham5 both be 17, the ranking should be not the same, i.e., even it both rank in 4, result should be show rank in 4 for ham4 and rank in 5 for ham5.

    Regards,
    Chocobo

  6. #6
    Registered User
    Join Date
    01-28-2015
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    32

    Re: Unique Ranking with Multiple Criteria

    Quote Originally Posted by Glenn Kennedy View Post
    One way:

    H9:
    =INDEX(D:D,AGGREGATE(15,6,ROW($B$4:$B$33)/(($B$4:$B$33=$H$5)*($C$4:$C$33=$H$6)),ROWS($1:1)))

    I9:
    IFERROR(1/(1/INDEX($E$4:$E$33,MATCH(1,INDEX(($B$4:$B$33=$H$5)*($C$4:$C$33=$H$6)*($D$4:$D$33=$H9),0),0))),"")

    Can there be tied values? i.e. could ham4 and Ham 5 both be 17... or whatever?
    Hi Glenn,

    Yes, there will be tied value, if ham4 and ham5 both be 17, the ranking should be not the same, i.e., even it both rank in 4, result should be show rank in 4 for ham4 and rank in 5 for ham5.

    Regards,
    Chocobo

+ 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. Unique Ranking with Multiple Criteria
    By dglenski in forum Excel General
    Replies: 7
    Last Post: 05-09-2017, 01:05 AM
  2. Unique Ranking with Multiple Criteria
    By dglenski in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2017, 12:09 AM
  3. Ranking - multiple criteria
    By Lugashz in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-14-2015, 09:09 AM
  4. Unique ranking by multiple criteria
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2015, 08:03 AM
  5. [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
  6. Replies: 14
    Last Post: 05-23-2012, 08:09 PM
  7. Ranking by multiple criteria
    By augy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2008, 12:37 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