+ Reply to Thread
Results 1 to 3 of 3

Ranking values within groups of duplicates

  1. #1
    Registered User
    Join Date
    06-08-2017
    Location
    Ocala, Florida
    MS-Off Ver
    2017 Mac
    Posts
    1

    Ranking values within groups of duplicates

    I have a column of names and another with corresponding dates, but there are duplicate names with differing dates. I need to rank duplicated names in the order they occur chronologically. For example, if name "A" has two records with two dates, the record with the date that comes first would produce a 1 and the second would produce a 2. I'm not sure how to go about this so I would appreciate any help!

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Ranking values within groups of duplicates

    Hi mbf123- Welcome to Excel Help Forums! This sounds pretty doable. If you attach a small sample workbook to your post, you'll get more responses. Remove any sensitive or extraneous info, just show us where your data is, what your results should look like (mock-up) and where you want them. Thanks-Lee

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now just Browse for your file, then click Upload. Simple!
    Last edited by leelnich; 06-08-2017 at 03:15 PM.

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Ranking values within groups of duplicates

    Try this formula. Paste in C1 and copy down:
    =COUNTIFS($A$2:$A$10,A2,$B$2:$B$10,"<"&B2)+1

    The data shown below is sorted for easy verification, but the formula works with any order.

    Row\Col
    A
    B
    C
    1
    Name Date
    Rank
    2
    aaa
    5/11/2017
    1
    3
    aaa
    5/22/2017
    2
    4
    aaa
    6/5/2017
    3
    5
    bb
    4/29/2017
    1
    6
    bb
    5/10/2017
    2
    7
    dd
    5/26/2017
    1
    8
    dd
    6/1/2017
    2
    9
    ee
    5/19/2017
    1
    10
    ee
    6/8/2017
    2


    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 06-08-2017 at 03:38 PM.

+ 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. Replies: 3
    Last Post: 11-24-2016, 05:26 AM
  2. [SOLVED] Ranking Groups of Combined Positive and Negative Values
    By hammer2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-24-2016, 04:19 AM
  3. Ranking values and ranking duplicates the same rank
    By 302arpks in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-05-2015, 01:50 PM
  4. Ranking employees from different groups?
    By BitterGreg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-22-2014, 11:54 AM
  5. Replies: 6
    Last Post: 06-01-2010, 06:19 PM
  6. Grouping and Ranking within Groups
    By penfold in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2010, 01:05 PM
  7. [SOLVED] Ranking a List which must be within GROUPS
    By Gary Jordan in forum Excel General
    Replies: 0
    Last Post: 05-24-2006, 09:15 AM

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