+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Ranking Based on Three Criteria

  1. #1
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    667

    Ranking Based on Three Criteria

    I have a ranking for all of our sales reps - based on % of sales for Units (Col Y) with ties broken by Col AA
    example :
    rep 1 has 100% in Column Y and 15% in column AA
    rep 2 has 100% in Column Y and 50% in column AA
    rep 2 should be ranked higher

    Please Login or Register  to view this content.
    Problem - there are some that have 0's in both columns creating a tie..
    How can I add column B (hire date) so that those hired recently are ranked higher in this tie.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Ranking Based on Three Criteria

    Maybe this:

    =IF(Y3<>"",RANK(Y3,Y$3:Y$42)+SUMPRODUCT((Y$3:Y$42=Y3)*(AA$3:AA$42>AA3)*(B$3:B$42>B3)),"")

    you might need to play with the operator to get it right.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    667

    Re: Ranking Based on Three Criteria

    I created a sample - still getting the duplicate rankings (specifically the 0's)
    In the Sample, Column F is the Ranking that it should be - Column B is the formula we are working on.
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Ranking Based on Three Criteria

    With so many varying numbers, perhaps it's easier with a helper column to provide a ranking key, like so:
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    667

    Re: Ranking Based on Three Criteria

    Wanted to avoid the additional column - but it is working so...

    Thamks for the assistance

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Ranking Based on Three Criteria

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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