+ Reply to Thread
Results 1 to 5 of 5

Merge two columns/lists into new single column/list removing duplicates (formula)

  1. #1
    Registered User
    Join Date
    09-07-2011
    Location
    Sacramento
    MS-Off Ver
    Excel 2007
    Posts
    37

    Merge two columns/lists into new single column/list removing duplicates (formula)

    Hi All,

    I have two columns of data. I'd like to merge the two columns into a new single column which would contain only unique values. I need a non-array formula that will do the work (e.g. I cannot use advanced filtering). Here are some conditions that may also be useful to know:
    1) Within the two data columns, all entries are unique. The duplicates exist across the two data columns.
    2) The data columns are created programmatically. The number of rows of data in each column can therefore change. I have created dynamic named ranges that adjust to the length of each data range called List1 and List2.
    3) If it helps, I can add helper columns to either data column, although my preference would be to avoid this.

    NOTE: post edited to add requirement that formula not use array formulas.

    Thanks,
    John
    Last edited by Filibuster; 05-31-2012 at 07:28 PM.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Merge two columns/lists into new single column/list removing duplicates (formula)

    I don't know how to do this with single formula, but this macro will type all entries in list2 that are not on list1 in successive columns from the active cell, then copy list1 below it

    Please Login or Register  to view this content.

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Merge two columns/lists into new single column/list removing duplicates (formula)

    follow this link for a formulaic approach.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  4. #4
    Registered User
    Join Date
    09-07-2011
    Location
    Sacramento
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Merge two columns/lists into new single column/list removing duplicates (formula)

    Thanks for both solutions. They each do exactly what I needed.

  5. #5
    Registered User
    Join Date
    09-07-2011
    Location
    Sacramento
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Merge two columns/lists into new single column/list removing duplicates (formula)

    Can anyone think of a formulaic approach that does not rely on array formulas? I ran into a situation where an array formula is problematic. Thanks.

+ 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