+ Reply to Thread
Results 1 to 3 of 3

consolidate txt from multiple columns into one column & remove duplicates

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    656

    consolidate txt from multiple columns into one column & remove duplicates

    I have a worksheet with two columns of names. Some of the names appear more than once. Is there a formula (not a macro) which can consolidate all of the names into one column, and remove duplicates?

    I've attached a worksheet as an example.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,090

    Re: consolidate txt from multiple columns into one column & remove duplicates

    Please try

    =UNIQUE(FILTERXML("<x><m>"&TEXTJOIN("</m><m>",,TRANSPOSE(A4:B59))&"</m></x>","//m"))

    or
    =FILTERXML("<x><m>"&TEXTJOIN("</m><m>",,TRANSPOSE(A4:B59))&"</m></x>","//m[not(preceding::*=.)]")
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    656

    Re: consolidate txt from multiple columns into one column & remove duplicates

    Thank You! Second formula works. I'd never used filterxml before!

+ 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. Remove duplicates but consolidate data from removed
    By LHerndon in forum Excel General
    Replies: 3
    Last Post: 01-06-2017, 01:11 PM
  2. [SOLVED] Remove duplicates over multiple columns
    By zlittle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2016, 07:57 AM
  3. Remove duplicates across multiple columns
    By moishier in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2016, 12:17 PM
  4. Replies: 2
    Last Post: 01-13-2014, 10:52 AM
  5. Remove duplicates from multiple columns using VBA
    By rbs123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2013, 03:48 AM
  6. Consolidate Columns & Remove Duplicates
    By ASD_1 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-07-2013, 01:05 AM
  7. Replies: 1
    Last Post: 03-18-2012, 09:28 AM

Tags for this Thread

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