+ Reply to Thread
Results 1 to 2 of 2

Compiling a list of data into one cell

  1. #1
    Registered User
    Join Date
    08-23-2007
    Posts
    7

    Compiling a list of data into one cell

    So I have a list of names in one column, each in its own row/cell. How do I compile all of the names in the column into one cell so that each name is separated by a comma?

    I know I can use: =a1&", "&a2&", "&a3&", " and so on
    But I am wondering if there is a way to dynamically have this done... so that if more names or added to the list then it is automatically added on in this format.

    Also, is there way so that if a name in the middle of the list is deleted, than names below are moved up to fill in the gap?

    Thanks so much if anyone could help.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Try this user defined function

    Please Login or Register  to view this content.
    Paste this into a new module in the VBA editor. In the worksheet, select this function from the list in the function wizard in the user defined selection at the bottom of the options.
    Martin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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