+ Reply to Thread
Results 1 to 5 of 5

Macro to split cell data into rows and copying other cells

  1. #1
    Registered User
    Join Date
    08-23-2010
    Location
    london, uk
    MS-Off Ver
    Excel 2003
    Posts
    4

    Thumbs up Macro to split cell data into rows and copying other cells

    Hi guys,

    Unfortunately I am too new to VBA and don't really have experience with it, but need to finish this task asap Your assistance is greatly appreciated.

    I have excel file with product descriptions and attributes.

    Attributes are separated by comma, i.e. color black,red,blue, etc..
    also i have a size attribute, i.e. small, large, etc.

    What I am trying to do is to create a new worksheet, which will contain
    product1 name, size, color, data1,data2, data (n) fields.
    product2 name, size, color, data1,data2, data (n) fields.

    I can extract parameters, separated by delimiter, but its not copying remaining data fields for the product.


    Attached is my excel file with the macros inside, data-template-v1.0 (its macros enabled)
    and also data-template.v1.0-nomacros.xls ( actual macros is inside on first page)




    Any help will be greatly appreciate it.

    Thanks!
    Attached Files Attached Files
    Last edited by stealthman; 08-26-2010 at 08:02 PM.

  2. #2
    Registered User
    Join Date
    08-23-2010
    Location
    london, uk
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macro to split cell data into rows and copying other cells

    Guys, any feedback ? Please help me out.

    thank you !

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to split cell data into rows and copying other cells

    'ROWS TO COLUMNS
    I have a macro that may be "ready to use" for expanding rows of data to multiple rows parsing out the values in one column while duplicating all the others.Just edit the Col = 2 code to the column you need to expand and run the macro on a copy of your data.

    Then run it a second time with Col = 3 on the results of the first run, and you're done.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    08-23-2010
    Location
    london, uk
    MS-Off Ver
    Excel 2003
    Posts
    4

    Thumbs up Re: Macro to split cell data into rows and copying other cells

    Excellent !!! Thank you so much !!! It works great ! Thank you again.

    Quote Originally Posted by JBeaucaire View Post
    'ROWS TO COLUMNS
    I have a macro that may be "ready to use" for expanding rows of data to multiple rows parsing out the values in one column while duplicating all the others.Just edit the Col = 2 code to the column you need to expand and run the macro on a copy of your data.

    Then run it a second time with Col = 3 on the results of the first run, and you're done.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to split cell data into rows and copying other cells

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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