+ Reply to Thread
Results 1 to 5 of 5

Split column of cells, each cells data is separated by commas into separate rows

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Split column of cells, each cells data is separated by commas into separate rows

    For a while I have used a Macro to enable me to group cells in a column of data (separated by a blank row) and collate the vertical cells into one on the lead line of the first cell and start again after the blank row and on and on. Basically it concatenates the vertical rows of data between each blank row into a single cell. The macro used is:
    Please Login or Register  to view this content.
    I would like to do the opposite of this. I have a column containing cells of data separated by commas (Column A in the Example1a file), the final value in the cell doesn't have a comma after it, each second row is blank. I'd like to achieve the result in Column B in the example. I'd also like to retain all the other columns of data alongside the first row of data conained in any file which could run to Column Z?

    Many thanks with any help in advance
    Attached Files Attached Files
    Last edited by mike_m1; 12-09-2014 at 08:34 AM. Reason: Query now solved

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Split column of cells, each cells data is separated by commas into separate rows

    First - please do edit your post and apply code tags to comply with our http://www.excelforum.com/forum-rule...rum-rules.html

    And as of merit - try the following simple macro:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Re: Split column of cells, each cells data is separated by commas into separate rows

    Kaper, I have adjusted the original post to reflect the code tags.
    Thank you for your reply I will try your suggestion.

    Regards

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Split column of cells, each cells data is separated by commas into separate rows

    The output is on new sheet.
    Attached Files Attached Files
    Last edited by AB33; 12-09-2014 at 06:26 AM.

  5. #5
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Re: Split column of cells, each cells data is separated by commas into separate rows

    Excellent, thank you for your help guys

+ 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. Evaluating rows column-by-column to separate comma-separated data
    By adventurepirate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2014, 03:06 PM
  2. Replies: 5
    Last Post: 11-22-2013, 05:58 PM
  3. [SOLVED] Values separated by Commas - want in separate columns, cells from original cell
    By schmidt62 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-03-2012, 02:50 PM
  4. Replies: 4
    Last Post: 08-22-2012, 07:22 PM
  5. Replies: 3
    Last Post: 01-13-2012, 08:20 AM

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