+ Reply to Thread
Results 1 to 5 of 5

Combine two lists into a list of unique items

  1. #1
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Bryne, Norway
    MS-Off Ver
    Microsoft Office Excel 2010
    Posts
    230

    Combine two lists into a list of unique items

    I want to combine two lists with data into one list with unique lines. There are several columns in the two lists, but the header row is the same.

    A VBA-answer is OK, as well as help columns, array formulas etc. Anything by other words :-)
    Last edited by mkvassh; 03-26-2010 at 03:27 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Combine two lists into a list of unique items

    Not enough info.
    What do you want to do with duplicates? Do you want to combine any lines (eg. in list1 there's info in col 1 and col 3 and in list2 there's info in col1 and 2)? What's preventing you from simply pasting the second list underneath the first list?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Bryne, Norway
    MS-Off Ver
    Microsoft Office Excel 2010
    Posts
    230

    Re: Combine two lists into a list of unique items

    Sorry if I was not clear enought. See a simple example below.

    List 1

    First name Second Name
    Ole Olsen
    Hans Hansen
    Magne Nilsen

    List 2

    First name Second Name
    Ole Olsen
    Hans Hansen
    Tor Andersen

    Unique list

    First name Second Name

    Ole Olsen
    Hans Hansen
    Magne Nilsen
    Tor Andersen

    I hope this explain what I need.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Combine two lists into a list of unique items

    Here's how I would do it;
    Assuming List1 on sheet1A2:B500, List2 on Sheet2 A2:B300
    In a column (C) next to List1, =A2&B2 dragged down to concatenate the first and last names.
    In A column (C) next to List2 =ISNUMBER(MATCH(A2&B2,$C$2:$C$500,0))
    Then Filter List2 by Column C on True and copy and paste those rows over to List 1. Does that work for you?

  5. #5
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Bryne, Norway
    MS-Off Ver
    Microsoft Office Excel 2010
    Posts
    230

    Re: Combine two lists into a list of unique items

    It works. Thank you :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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