+ Reply to Thread
Results 1 to 4 of 4

Find all the cells that equal x and put names in another cell separated by comma

  1. #1
    Registered User
    Join Date
    12-09-2014
    Location
    NZ
    MS-Off Ver
    2010
    Posts
    18

    Find all the cells that equal x and put names in another cell separated by comma

    Hi

    I have a long list (100+ rows) of names (Col A) and countries (Col B) and in Col C I want to list the names of people from the same country separated by a comma (see example in attachment). What is the best way to go about this?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Find all the cells that equal x and put names in another cell separated by comma

    Hi Michelle,

    Here is a simple little macro which should do what you want.

    Please Login or Register  to view this content.
    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  3. #3
    Registered User
    Join Date
    12-09-2014
    Location
    NZ
    MS-Off Ver
    2010
    Posts
    18

    Re: Find all the cells that equal x and put names in another cell separated by comma

    Hi David

    That works perfectly. Thank you for your help.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Find all the cells that equal x and put names in another cell separated by comma

    If you want to speed up a little.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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] Find the Position of String in a comma separated cell
    By Praveenk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-15-2015, 07:27 AM
  2. Replies: 2
    Last Post: 12-07-2015, 09:04 PM
  3. [SOLVED] Showing many cells separated by comma in one cell
    By M Sleem in forum Excel General
    Replies: 3
    Last Post: 12-03-2015, 08:56 AM
  4. Vlookup pulling two cells or more of text into one cell separated by a comma
    By ThePainter in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2013, 08:14 PM
  5. [SOLVED] Split the contents of the cell separated by comma into different cells
    By VivekBhise in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-30-2012, 06:50 AM
  6. Replies: 3
    Last Post: 01-13-2012, 08:20 AM
  7. Column/cells to single cell comma separated data?
    By egeorge4 in forum Excel General
    Replies: 1
    Last Post: 04-27-2007, 03:53 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