+ Reply to Thread
Results 1 to 6 of 6

Extract unique data from multiple columns

  1. #1
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Extract unique data from multiple columns

    I have data in 3 columns and I am wanting to extract the unique values. The values can change depending on other cells and I want the list of unique values to update as the data changes.

    I have provided a simplified model sheet, although the data in it is static.
    Attached Files Attached Files
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Extract unique data from multiple columns

    what is your expected outcome?
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Extract unique data from multiple columns

    See updated attached file, with expected outcome included.

    Cheers
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,967

    Re: Extract unique data from multiple columns

    Based on your sample file, try this ARRAY formula, courtesy of member benishiro and Link given by Pete_UK
    http://www.get-digital-help.com/2009...rray-formulas/
    ......
    =INDEX($B$2:$D$27,MIN(IF(COUNTIF(G$1:G1,$B$2:$D$27)=0,ROW($B$2:$D$27)-ROW($B$2)+1)),MATCH(0,COUNTIF(G$1:G1,INDEX($B$2:$D$27,MIN(IF(COUNTIF(G$1:G1,$B$2:$D$27)=0,ROW($B$2:$D$27)-ROW($B$2)+1)),)),0))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    edit: This is based on your sample data starting in row 2
    Last edited by FDibbins; 09-08-2015 at 10:09 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Extract unique data from multiple columns

    Another way. Start with this helper column in F1 filled down until you get blanks.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then in G1 array-enter this formula and fill down until you get blanks.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Does this do what you want?
    Dave

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,967

    Re: Extract unique data from multiple columns

    gak67 thanks for the rep point

    However, you also commented that it did not quite work? As I mentioned in my edit, I started in row 2. When I adjusted the formula to start in row 1, it picked up the exact same answer as you did - just not sorted in any order
    Attached Files Attached Files

+ 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. Extract data from multiple columns, group and sum up unique values
    By Alcotraz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2015, 06:54 PM
  2. [SOLVED] macro needed to extract specific columns out of multiple columns with their row data
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-07-2014, 12:49 AM
  3. [SOLVED] How to extract unique data from two columns
    By Xiaojiang in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-22-2013, 08:07 AM
  4. [SOLVED] Find unique field in one column and extract data in previous columns
    By Waqaskp in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-18-2013, 01:01 AM
  5. Replies: 8
    Last Post: 09-12-2013, 09:17 AM
  6. Extract unique data from rows to columns
    By CherryBlossom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-19-2013, 05:12 AM
  7. Extract data across multiple columns?
    By Fao in forum Excel General
    Replies: 7
    Last Post: 09-24-2010, 11:47 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