+ Reply to Thread
Results 1 to 7 of 7

creating a unique list from matching 2 columns

  1. #1
    Registered User
    Join Date
    09-05-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    365
    Posts
    63

    creating a unique list from matching 2 columns

    I have data that has 2 columns....

    A:A will be Names
    B:B will be Year

    I have a lot of data and some of it is repeated (it is race data that has multiple races per year for each athlete)

    What I am looking to do is create a formula that will pull only 1 unique match of C1 and C2 and list in separate columns....

    In my example column A,B is the actual data column I,J is what I need it to look like and column O,P is where I want the formulas to go to make the unique list.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: creating a unique list from matching 2 columns

    Why not a pivot table?
    Attached Files Attached Files

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: creating a unique list from matching 2 columns

    cnak your sample shows a consistent 1 to 1 relationship names to years. Each athlete ran 4 races all in the same years.

    Is this representative of the real data?
    If you go the formula route it will likely make a difference if it is not.
    Dave

  4. #4
    Registered User
    Join Date
    09-05-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    365
    Posts
    63

    Re: creating a unique list from matching 2 columns

    not all the athletes will actually run in every race. I just simplified the data to a smaller data set.
    Generally in each race there will be 30-40 athletes and apron 7 races per season these numbers will vary depending on the race. the majority will do all the races but there will be some that only do a few (or one). Some athletes may race only have one season...

    hope this makes sense?

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: creating a unique list from matching 2 columns


    Then your sample is not representative of the real problem.

    Please take the time to post an additional workbook that more closely represents what you are working with along with expected outputs. If it is as varied as that then formula may not be a reasonable approach and best to do the pivot table.

  6. #6
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: creating a unique list from matching 2 columns

    O2=IFERROR(INDEX(A$2:A$43,SMALL(IF(FREQUENCY(IF($A$2:$A$43&$B$2:$B$43<>"",MATCH($A$2:$A$43&$B$2:$B$43,$A$2:$A$43&$B$2:$B$43,0)),ROW(A$2:A$43)-ROW(A$2)+1),ROW(A$2:A$43)-ROW(A$2)+1),ROWS($A$2:A2))),"")

    control+shift+enter

    Copy across and down

    why is Mike not on your list?
    Last edited by CARACALLA; 09-07-2019 at 05:47 PM.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: creating a unique list from matching 2 columns

    Formulas similar in thought to CARACALLA's only I took the unique groupings to be literal.

    The attached uses three helper columns.

    1. in column L paste the list of names and applied 'Remove duplicates'
    2. in M2 and filled down this array formula (commit with Ctrl + Shift + Enter) to yield the unique counts of years for each athlete.
      Formula: copy to clipboard
      Please Login or Register  to view this content.
    3. in N2 the cumulative count of the unique year counts.
      Formula: copy to clipboard
      Please Login or Register  to view this content.


    This in O2 and filled down to get unique grouping of each athlete
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and this array entered formula (CSE) in P2 and filled down yields the unique years for each athlete
    Formula: copy to clipboard
    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. Replies: 6
    Last Post: 09-09-2018, 07:43 AM
  2. Matching Unique List of Clients based on Multiple Columns
    By scottyboy218 in forum Excel General
    Replies: 10
    Last Post: 06-06-2018, 04:04 PM
  3. [SOLVED] Creating unique list of values from multiple columns not in sequence.
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-09-2017, 04:47 AM
  4. Matching values for unique volume list
    By relmasri in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-02-2016, 11:19 AM
  5. Replies: 1
    Last Post: 05-20-2015, 04:27 PM
  6. Replies: 7
    Last Post: 06-12-2013, 07:09 PM
  7. finding Matching data and creating unique list
    By Mark_Delaware in forum Excel General
    Replies: 7
    Last Post: 11-12-2010, 12:11 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