+ Reply to Thread
Results 1 to 4 of 4

Concatenate matched values and separate by comma

  1. #1
    Registered User
    Join Date
    04-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Concatenate matched values and separate by comma

    Hi,

    I have been searching through some of the threads on the forum and can't seem to find what I am looking for. I have a list of names on Sheet1 of the attachment. In the adjacent column, I need a formula that looks at the reference Name in column 1, searches for that in column 1 of Sheet2 and returns every corresponding value from column 2 of Sheet2 with them separated by commas.

    Doing a countif is easy enough to identify how many times the Name shows up, but I need to know what the corresponding values are in the column next to that. Please see attachment, hopefully it will make more sense

    Thank you!

    ExcelExample.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Concatenate matched values and separate by comma

    scoffman,

    You can use a custom UDF which i came across at http://www.get-digital-help.com/2010...into-one-cell/

    I've applied what's at that link to your sheet, but you should have a read through the link for an explanation which is far better than I can manage with the time I have available - no point in trying to reinvent the wheel

    Hope this helps.
    Attached Files Attached Files
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  3. #3
    Registered User
    Join Date
    04-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Concatenate matched values and separate by comma

    Thank you, that will work!

  4. #4
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Concatenate matched values and separate by comma

    You're welcome - glad I could help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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