+ Reply to Thread
Results 1 to 5 of 5

Create new rows based on part of the value in a cell

  1. #1
    Registered User
    Join Date
    08-30-2007
    Location
    Orlando, Florida
    MS-Off Ver
    MS Excel 2007
    Posts
    50

    Create new rows based on part of the value in a cell

    I would like to create a new row based on the value contained within a cell - add that value to the last column.
    Example
    Test 1 1, 2, 3, 4, 5

    The macro should create
    Test 1 1
    Test 1 2
    Test 1 3
    Test 1 4
    Test 1 5

    Thanks for your help!

    VJB

  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,864

    Re: Create new rows based on part of the value in a cell

    Pity you have not posted sample workbook. because a lot depends on data layout.
    Let's assume that
    Test 1 1, 2, 3, 4, 5
    is a typical content of column A.

    This code would separate it reqired way
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-30-2007
    Location
    Orlando, Florida
    MS-Off Ver
    MS Excel 2007
    Posts
    50

    Re: Create new rows based on part of the value in a cell

    Test 1 is in Column A
    1,2,3,4 is in Column B

    How would I adapt your code to make that work? I have attached a sample.

    Thank you so much!!!


    Test3.xlsx

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Create new rows based on part of the value in a cell

    FWIW:

    Please Login or Register  to view this content.

  5. #5
    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,864

    Re: Create new rows based on part of the value in a cell

    Version adopted to different (easier!) layout:
    Please Login or Register  to view this content.
    PS. Funny thing - I could offer exactly the same macro today on our national forum in thread: http://www.excelforum.pl/topics1/kol...415.htm#221703
    Last edited by Kaper; 03-19-2014 at 02:34 PM. Reason: added reference to excelforum.pl identical macro

+ 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] Create Multiple Rows based on Cell Value by way of VBA
    By avid2xl in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-15-2013, 12:24 PM
  2. [SOLVED] Splitting a Cell based on "/" and adding new Rows based on Part Number Logic
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-30-2013, 10:11 AM
  3. Hiding Rows based on PART of Cell Item
    By Kitten4Him in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2012, 04:13 PM
  4. Create Multiple Rows based on Value in Cell
    By ertweety in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2012, 04:13 PM
  5. Create custom output based upon part of a cell's data
    By HKUSP45C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2011, 12:39 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