+ Reply to Thread
Results 1 to 7 of 7

Ranking Data with multiple criteria

  1. #1
    Registered User
    Join Date
    05-15-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    4

    Ranking Data with multiple criteria

    I'm trying to rank data against multiple criteria. I've seen several similar threads, but I've been unable to figure out how to adapt those threads to my situation. I have only tried ranking by each rating separately because I figured if I could do that, then I should be able to combine the individual rankings into one formula. I've been successful in ranking by A and B, but not C. For some reason I can't get the SMALL function to work properly in excel and I need this column as a tiebreaker.

    Data columns are below (I've attached an excel spreadsheet with sample data)
    Category Item Rating A Rating B Rating C
    1 Item 1 1 1 $73
    1 Item 2 1 1 $75
    1 Item 3 2 1 $66
    1 Item 4 2 2 $198
    2 Item 1 1 2 $86
    4 Item 1 3 2 $113
    4 Item 2 6 3 $251
    6 Item 1 6 3 $95
    6 Item 2 8 4 $284
    10 Item 1 5 4 $458
    10 Item 2 8 5 $1,267

    I'd like the rankings to be by Category(each category to have a ranking of items within that category). The data should be ranked by "Rating A" in descending order, then "Rating B" by descending order, then by "Rating C" in ascending order to produce a unique rank of items within each category.

    The other variation I'd like is to exclude "Rating B" from the ranking and just use "Rating A" descending and "Rating C" ascending.


    Thanks,
    Paul
    Attached Files Attached Files
    Last edited by pauldtaylor2; 05-16-2011 at 04:11 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: Ranking Data with multiple criteria

    Try

    =SUMPRODUCT(--($A$5:$A$23=$A5),--(C5<C$5:C$23))+1

    copied across 3 columns..

    Change the < to > for the 3rd cell.

    Then copy these 3 formulas down.
    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
    Registered User
    Join Date
    05-15-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Ranking Data with multiple criteria

    Thank you NBVC. The problem, however, isn't ranking each individual column separately which I have been able to do using SUMPRODUCT. It's rather incorporating each of those criteria into a ranking for each of the categories. The SUMPRODUCT does not generate a unique rank where there are duplicates values for "Rating A" and "Rating B". Bringing in "Rating C" allows me to break the tie.

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

    Re: Ranking Data with multiple criteria

    Can you post the expected results?

  5. #5
    Registered User
    Join Date
    05-15-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Ranking Data with multiple criteria

    I'm sorry I didn't post expected results before--they are included in the attached updated spreadsheet (example rev1.xlsx). There are two examples in the spreadsheet and the ranking for Category 1 changes between the two examples because in problem 1 I would like to include "Rating B" and in problem 2 I would like to exclude "Rating B".



    Paul
    Attached Files Attached Files

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

    Re: Ranking Data with multiple criteria

    For top group try:

    Please Login or Register  to view this content.
    copied down

    For bottom group try:

    Please Login or Register  to view this content.
    copied down

  7. #7
    Registered User
    Join Date
    05-15-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Ranking Data with multiple criteria

    Many thanks for the quick turnaround with a solution that looks like it does the job perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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