+ Reply to Thread
Results 1 to 4 of 4

ranking by two variables

  1. #1
    Registered User
    Join Date
    08-12-2016
    Location
    Dallas, Texas
    MS-Off Ver
    2016
    Posts
    1

    ranking by two variables

    Hi,

    I need to rank some data and donor ID.
    I know how to rank by one variables but I can't seem to get the correct results when I try and rank by two.

    This is an example of the date I'm working with

    Date.................ID
    1/2/2013............A
    1/10/2013..........B
    2/2/2013............D
    2/2/2016............C
    2/3/2012............B
    3/3/2013............D
    4/1/2013............C
    4/2/2013............C
    6/15/2013...........A
    4/2/2014............B
    4/2/2014............D
    10/30/2014.........A
    10/15/2015.........B
    10/16/2015.........C
    8/8/2016............C


    I want to be able to rank by ID and date
    example:

    Date.................ID.......Rank
    1/2/2013............A.........1
    1/10/2013..........B.........2
    2/2/2013............D.........1
    2/2/2016............C.........3
    2/3/2012............B.........1
    3/3/2013............D.........2
    4/1/2013............C.........1
    4/2/2013............C.........2
    6/15/2013..........A.........2
    4/2/2014............B.........3
    4/2/2014............D.........3
    10/30/2014.........A.........3
    10/15/2015.........B.........3
    10/16/2015.........C.........4
    8/8/2016............C.........5


    Is this something can be done?


    Thanks!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: ranking by two variables

    I think you'll need to explain the logic on how you calculated the ranks.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,915

    Re: ranking by two variables

    Try this ...

    =COUNTIFS($A$2:$A$16,"<"&A2,$B$2:$B$16,B2)+1

  4. #4
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: ranking by two variables

    Quote Originally Posted by Phuocam View Post
    Try this ...

    =COUNTIFS($A$2:$A$16,"<"&A2,$B$2:$B$16,B2)+1
    Hi Phuocam, this formula is good if no duplicate entry. But the below formula deals with duplicates also.
    Please Login or Register  to view this content.

+ 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. Formula to create a ranking out of several variables
    By Dlinen in forum Excel Formulas & Functions
    Replies: 32
    Last Post: 07-15-2016, 08:13 AM
  2. Distinct sets with multiple variables using same formula and ranking -
    By mloffredo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2015, 08:45 PM
  3. Ranking two variables
    By burgie10 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-06-2015, 08:53 PM
  4. Creating Unique Values on Ranking for with Two Variables
    By NicholasLRW1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-14-2013, 01:43 AM
  5. Ranking Data based on multiple variables...
    By jasonkbu in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-08-2013, 10:00 AM
  6. Ranking cities on Multiple variables
    By Learn2earn in forum Excel General
    Replies: 1
    Last Post: 08-24-2012, 11:58 PM
  7. A series of weighted variables for a percentage ranking
    By buzzzworthy in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-05-2010, 01:56 AM

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