+ Reply to Thread
Results 1 to 4 of 4

Creat list by removing dulplicates and consolidate match text in a column into one cell?

  1. #1
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Creat list by removing dulplicates and consolidate match text in a column into one cell?

    Hello All,

    I have two columns, Names and Titles, and I would like to consolidate all the titles of the same name into one cell.

    For example the data is in Column A and B.

    Column A Column B
    Adam M. Dog Catcher
    Adam M. Chef
    Bobby B. Dog Catcher
    David C. Chef
    David C. Excel Expert

    Results that I would want is...
    In column C, formula removing all duplicates in Column A to create a single list. Column D is the consolidation of match between A and C with the results of all the titles (B).

    Column C Column D
    Adam M. Dog Catcher, Chef
    Bobby B. Dog Catcher
    David C. Chef, Excel Expert

    Thanks in advance!

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

    Re: Creat list by removing dulplicates and consolidate match text in a column into one cel

    The solution I propose requires a VBA user defined function called Concatall. The code can be found here.

    http://www.excelforum.com/tips-and-t...ml#post3096647

    Here is that code:

    Please Login or Register  to view this content.
    Then array enter the following formulas and copy down until you get blanks. 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. In C2 this formula returns unique names.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This array formula returns the concatenated titles.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    If you aren't familiar with how to install the above code (Concatall):

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the code into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    It is already done for you in the attached.
    Dave

  3. #3
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Creat list by removing dulplicates and consolidate match text in a column into one cel

    Hi Dave (FlameRetired),

    This worked perfectly! Thanks!

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

    Re: Creat list by removing dulplicates and consolidate match text in a column into one cel

    Good deal. You're welcome. Thanks for the feedback.

+ 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: 2
    Last Post: 02-12-2015, 01:33 PM
  2. Replies: 10
    Last Post: 09-18-2014, 09:36 AM
  3. [SOLVED] Need a formula to consolidate a 2 column list
    By mhedge in forum Excel General
    Replies: 8
    Last Post: 08-15-2014, 08:44 PM
  4. Consolidate rows if they match a specific column
    By CC_deallist in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2014, 01:59 PM
  5. Creat or use a macro to merge data into one cell as a list
    By anking in forum Excel Programming / VBA / Macros
    Replies: 57
    Last Post: 12-12-2010, 08:05 PM
  6. How to creat a list of data in a column
    By zhappybird in forum Excel General
    Replies: 1
    Last Post: 05-08-2008, 09:30 PM
  7. [SOLVED] look for sheet name in list and creat hyperlink to cell
    By Jax in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2006, 01:45 PM

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