+ Reply to Thread
Results 1 to 4 of 4

How to separate cell values and insert into new rows

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    11

    How to separate cell values and insert into new rows

    Hi all,
    I am looking for a macro to look at a colum with a cell that has values that are separated by a comma or a space or a carriage return and make new rows with only a single value for that column of cells. I am sorry that sounds confusing but I have attached a sample worksheet. In the worksheet, I am looking at Column B and want to separate them into different lines but copy Column A and Column C for the new line. So I did the first one, which is row 2 was separated to row 3 and row 4. Any help on this would be great.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: How to separate cell values and insert into new rows

    Hi,

    click the button on the first sheet and check result on 2nd sheet: test_multiple_cells.xlsm


    contains:
    Please Login or Register  to view this content.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: How to separate cell values and insert into new rows

    this works based on your test_multiple_cells.xlsx
    run this macro

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-11-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: How to separate cell values and insert into new rows

    Thanks guys,
    Both work well, but I like Scott's since it fixes it on the same sheet. But both were awesome. Much thanks!!

+ 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