+ Reply to Thread
Results 1 to 4 of 4

Splitting 1 row into multiple rows

  1. #1
    Registered User
    Join Date
    09-15-2011
    Location
    Eagle River, AK
    MS-Off Ver
    Excel 2003
    Posts
    7

    Splitting 1 row into multiple rows

    I'm stuck. I have rough data in a single row, in individual columns, that I can't seem to get into multiple rows. I've looked at others with this similar issue and I'm still stumped.

    Example data:

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

    And I need it like this:

    1 2 3 4
    5 6 7 8
    9 10 11 12
    13 14 15 16
    17 18 19 20

    Any suggestions?

    Thanks

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Splitting 1 row into multiple rows

    If your data is in Sheet1 row1, then use this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    St Paul, MN
    MS-Off Ver
    2010
    Posts
    51

    Re: Splitting 1 row into multiple rows

    Try this formula, starting in A1 of a new sheet copied to Column D and down a sufficient number of rows.
    Please Login or Register  to view this content.
    Adjust the range rawData!$A$1:$T$6 to reflect your actual data range.
    Last edited by cjo; 10-29-2012 at 04:17 AM. Reason: reversed 4x5 and 5x4

  4. #4
    Registered User
    Join Date
    09-15-2011
    Location
    Eagle River, AK
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Splitting 1 row into multiple rows

    Arlo, that worked! and cjo, I just modified it a little bit to fit my data and it worked too!!

    Thank you both, reps!

+ 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