+ Reply to Thread
Results 1 to 4 of 4

Find if duplicate values exist in a column, concatenate cells and then de

  1. #1
    Registered User
    Join Date
    07-15-2004
    Location
    Göttingen, Germany
    MS-Off Ver
    MS Office Pro Plus 2016
    Posts
    60

    Thumbs up Find if duplicate values exist in a column, concatenate cells and then de

    Hello Jerry,

    Thank you for this script, it's extremely helpful! If I wanted to concatenate all the values in the rows from Column B onwards with a pipe symbol between them how would I do this? So using the OP's data:

    This:
    Please Login or Register  to view this content.

    Should actually be like this:
    Please Login or Register  to view this content.
    I can do it manually of course by concatenating the columns, but if this could be automated in the script it would be much better.

    Regards

    Paul
    Last edited by JBeaucaire; 11-22-2013 at 02:01 PM. Reason: Moved to own thread. Please read the forum rules in menu bar above and do not hiijack other threads with own questions.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find if duplicate values exist in a column, concatenate cells and then de

    When you joined the forum you agreed to abide by the Forum Rules, but in haste I fear you might not have actually read them. Please stop and take a moment to read them now. We all follow these rules for the benefit of all, as must you. Thanks.

    (link above in the menu bar)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find if duplicate values exist in a column, concatenate cells and then de

    Here's a macro for merging rows of data using the ID in column A and putting the column B values together in a delimited manner of your choosing. There's a sample file as well for testing.
    There's a sample workbook too you could drop your data into and test it out.
    Last edited by JBeaucaire; 12-27-2019 at 03:49 AM.

  4. #4
    Registered User
    Join Date
    06-06-2013
    Location
    Moldova
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Find if duplicate values exist in a column, concatenate cells and then de

    Thank you so much, Jerry! Just stumbled across your solution, and it fit my problem exactly, too. Thanks again.

+ 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. [SOLVED] Need to find if duplicate values exist in a column, concatenate cells and then delete
    By Siemieniuk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-22-2017, 07:22 PM
  2. Replies: 0
    Last Post: 09-11-2013, 09:54 AM
  3. Find duplicate text in cells in column, then give names of cells containing duplicate text
    By spelunkerforlife in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 10:13 AM
  4. Replies: 11
    Last Post: 11-03-2011, 09:18 PM
  5. Compare cells in column 1 and concatenate values in column 2
    By sharmaremuk in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-20-2011, 09:04 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