+ Reply to Thread
Results 1 to 4 of 4

List of unique names from from different columns

  1. #1
    Registered User
    Join Date
    07-09-2012
    Location
    IL
    MS-Off Ver
    Excel 2019
    Posts
    42

    List of unique names from from different columns

    Hello all. I have formula that I would like to give me a list of unique names from 4 different columns. I created a table called list that contains the cells in the columns I would like to search. It isn't giving me a result. I have the same formula working in other cells but I can't get it to work here. I've attached the workbook and the formula is on the Record Scores Here tab and in cell J2.
    Attached Files Attached Files

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

    Re: List of unique names from from different columns

    This is kind of kludgy, but it works. I made 4 separate fixed named ranges called Masters, US_Open, etc. each extending from row 2 to 12 because I didn't feel like extending all of them for 49 rows. Then in Column L, I highlighted rows 2 to 12 and entered in an array formula =Masters. The next 11 rows is another array formula = US_OPEN, etc.

    I wanted to identify blanks, bit ISBLANK didn't work, probably because the source files contain formulas. Likewise LEN(Ln) didn't evaluate to zero for what looked like the blank cells. So I checked LEN(Ln) > 1 and that worked. So we will have to assume that all the players have names with two or more letters.

    I used these consecutive, "stacked on top of one another," array formulas as the source data for a pivot table. This table, that contains a unique list of names, is on the pivot sheet.

    It would probably be cleaner to do this with VBA.
    Attached Files Attached Files
    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 Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: List of unique names from from different columns

    For some reason, the board is double posting my submissions today.
    Last edited by dflak; 03-31-2016 at 11:25 AM. Reason: Remove fuplicate text

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: List of unique names from from different columns

    Try this...

    Create these dynamic named ranges.

    Name: PGA
    Refers to:

    =OFFSET('Record Scores Here'!$G$2,,,COUNTIF('Record Scores Here'!$G$2:$G$100,"?*"))

    Name: British
    Refers to:

    =OFFSET('Record Scores Here'!$E$2,,,COUNTIF('Record Scores Here'!$E$2:$E$100,"?*"))

    Name: Open
    Refers to:

    =OFFSET('Record Scores Here'!$C$2,,,COUNTIF('Record Scores Here'!$C$2:$C$100,"?*"))

    Name: Masters
    Refers to:

    =OFFSET('Record Scores Here'!$A$2,,,COUNTIF('Record Scores Here'!$A$2:$A$100,"?*"))

    Then, enter this formula in J2:

    =LOOKUP("zzz",CHOOSE({1,2,3,4,5},"",INDEX(PGA,MATCH(0,INDEX(COUNTIF(J$1:J1,PGA),0),0)),INDEX(British,MATCH(0,INDEX(COUNTIF(J$1:J1,British),0),0)),INDEX(Open,MATCH(0,INDEX(COUNTIF(J$1:J1,Open),0),0)),INDEX(Masters,MATCH(0,INDEX(COUNTIF(J$1:J1,Masters),0),0))))

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 7
    Last Post: 12-23-2015, 07:43 AM
  2. [SOLVED] Filtering repeated names to get a list of unique names
    By grumpyguppy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2014, 11:48 PM
  3. [SOLVED] All possible unique combination of 16 names from a list that contains 19 names
    By spirit29 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2013, 01:08 PM
  4. Unique Names from Multiple Columns
    By par0016 in forum Excel General
    Replies: 4
    Last Post: 01-23-2013, 01:26 AM
  5. Unique names in a list lookup
    By Dan86 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-02-2012, 04:38 PM
  6. Unique Names from a list
    By inayat in forum Excel General
    Replies: 5
    Last Post: 03-09-2012, 05:28 PM
  7. List of unique names
    By David Obeid in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2008, 12:06 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