+ Reply to Thread
Results 1 to 8 of 8

Unique Ranking with Multiple Criteria

  1. #1
    Registered User
    Join Date
    05-08-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    6

    Unique Ranking with Multiple Criteria

    Hi,

    Using the formula below, I was able to rank using multiple criteria, but this formula spits out duplicate ranks (1,1,3) and I need it to shoot out unique ranks (1,2,3).

    =SUMPRODUCT((B3=B$3:B$9)*(C3<C$3:C$9))+1

    Data Set:
    Berry 12/31/2017
    Orange 3/22/2017
    Apple 3/31/2017
    Berry 3/22/2017
    Apple 6/30/2017
    Apple 6/30/2017
    Orange 3/22/2017
    Orange 4/18/2017

    Is there a solution for this?

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,741

    Re: Unique Ranking with Multiple Criteria

    Try a helper column to identify the unique items with a formula like this in column D.

    =IF(COUNTIFS($B$3:B3,B3,$C$3:C3,C3)=1,ROWS($3:3),"")

    Can you do your ranking from that point?


    A
    B
    C
    D
    1
    2
    3
    Berry
    12/31/2017
    1
    4
    Orange
    3/22/2017
    2
    5
    Apple
    3/31/2017
    3
    6
    Berry
    3/22/2017
    4
    7
    Apple
    6/30/2017
    5
    8
    Apple
    6/30/2017
    9
    Orange
    3/22/2017
    10
    Orange
    4/18/2017
    8
    Dave

  3. #3
    Registered User
    Join Date
    05-08-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    6

    Re: Unique Ranking with Multiple Criteria

    I don't think this is helpful because I am trying to assign a rank to each category using the date. Ultimately, I am trying to make a unique identifier by combining the category and its rank in the category.

    For example: apple1, apple2, apple3, orange1, orange2, ect.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,741

    Re: Unique Ranking with Multiple Criteria

    My formula was only intended to identify the unique combinations to enable you to apply a ranking formula you might have in mind.

    If you need a ranking formula too I believe we are going to need an upload Excel file (*.xlsx) with explicit BEFORE - AFTER sections (hand typed if necessary) and an explanation of the logic needed to arrive at those rankings.

    If you are not familiar with how to do this:

    To attach a file to your post,
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”
    • be sure to desensitize the data
    The file name will appear at the bottom of your reply.

    BTW This is a duplicate thread.

    https://www.excelforum.com/excel-for...ml#post4649627
    Last edited by FlameRetired; 05-09-2017 at 12:05 AM.

  5. #5
    Registered User
    Join Date
    05-08-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    6

    Re: Unique Ranking with Multiple Criteria

    In column D, I have used the formula (=SUMPRODUCT((B4=B$3:B$10)*(C4<C$3:C$10))+1) to calculate a rank by category based on the date. If the date is the same, the formula will spit out a duplicate rank (see D7 and D8). I need a formula that will spit out unique ranks (D7 to be 1 and D8 to be 2). I have hardcoded the answers to this small set in column E.

  6. #6
    Registered User
    Join Date
    05-08-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    6

    Re: Unique Ranking with Multiple Criteria

    File attached
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,177

    Re: Unique Ranking with Multiple Criteria

    Try this ...

    =COUNTIFS($B$3:$B$10,B3,$C$3:$C$10,">"&C3)+COUNTIFS(B3:$B$10,B3,C3:$C$10,C3)

  8. #8
    Registered User
    Join Date
    05-08-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    6

    Re: Unique Ranking with Multiple Criteria

    Boom! Works perfectly. Thank you.

    Sorry about the duplicate post.

+ 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. [SOLVED] RANKING Given Multiple Criteria
    By watchouse in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-17-2016, 10:37 AM
  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. Replies: 14
    Last Post: 05-23-2012, 08:09 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