+ Reply to Thread
Results 1 to 10 of 10

save column data to rows

  1. #1
    Registered User
    Join Date
    04-30-2014
    Location
    Salem, Oregon
    MS-Off Ver
    Excel 97
    Posts
    15

    save column data to rows

    Hello and thx...how to do this ?
    keep a running record in rows...
    A---H I J K
    1 4-4 8 2 6
    2 8-5 6 1 4
    3 2-8 3 2 5
    4 6
    5

    6 5
    7 6
    8 1
    9 4
    10

    11 8
    12 3
    13 2
    14 5

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: save column data to rows

    Sorry, I have no idea what you're trying to do there.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: save column data to rows

    Try this:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    04-30-2014
    Location
    Salem, Oregon
    MS-Off Ver
    Excel 97
    Posts
    15

    Re: save column data to rows

    Thnx Alan, Looks like you see what I was getting at.
    Unfortunately, I don't know what to do with the code.
    Will do some more research. thanx

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: save column data to rows

    This will put 0 at the end of each row where there are blanks every 5th cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The result is:

    C
    D
    E
    F
    G
    1
    4
    8
    2
    6
    0
    2
    5
    6
    1
    4
    0
    3
    8
    3
    2
    5
    0
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: save column data to rows

    This will put 0 at the end of each row where there are blanks every 5th cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The result is:

    C
    D
    E
    F
    G
    1
    4
    8
    2
    6
    0
    2
    5
    6
    1
    4
    0
    3
    8
    3
    2
    5
    0


    If you drag the formula over only 4 columns and then down the result is:

    A
    B
    C
    D
    E
    F
    1
    4
    4
    8
    2
    6
    2
    8
    5
    6
    1
    4
    3
    2
    8
    3
    2
    5
    4
    6
    5
    6
    5
    7
    6
    8
    1
    9
    4
    10
    11
    8
    12
    3
    13
    2
    14
    5

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: save column data to rows

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

  8. #8
    Registered User
    Join Date
    04-30-2014
    Location
    Salem, Oregon
    MS-Off Ver
    Excel 97
    Posts
    15

    Re: save column data to rows

    Alan...ty...did insert> Module that's as far as I got yesterday.....will follow the rest of the instructions.

  9. #9
    Registered User
    Join Date
    04-30-2014
    Location
    Salem, Oregon
    MS-Off Ver
    Excel 97
    Posts
    15

    Re: save column data to rows

    newdoverman...great piece of code there...I missed the part that was emailed to me so it only took me 6 hours to understand it all....lol
    just what I needed ty

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: save column data to rows

    You're welcome. Thanks for the feedback.

+ 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. Find Rows of Specified Data within Column and Output Data from Next Column Over
    By mlexcelhelpforum in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 05:50 PM
  2. vba code, save selected rows of a column to another worksheet
    By cf709 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2012, 09:26 AM
  3. Replies: 4
    Last Post: 06-08-2012, 03:24 PM
  4. Insert rows, transpose data from column in to rows, in steps
    By mchevalier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2012, 08:14 PM
  5. Replies: 5
    Last Post: 02-07-2012, 04:55 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