+ Reply to Thread
Results 1 to 8 of 8

How to move segments of one long column to many columns?

  1. #1
    Registered User
    Join Date
    05-13-2009
    Location
    San Bernardino, CA, USA
    MS-Off Ver
    Excel 2003 (XP) and 2008 (MAC)
    Posts
    4

    How to move segments of one long column to many columns?

    I have a spreadsheet with only one column (A) with 3,500 rows of data. Each seven rows of data describes one product and there are 500 products.

    How do I set up a macro to cut/copy each group of seven rows of column A and move/paste them to a new sheet so I have 7 rows by 500 columns, with each column containing data about each individual product?

    Any help would be greatly appreciated.

    TIA,

    Guy
    MS Excel for Mac 2008

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: How to move segments of one long column to many columns?

    so I have 7 rows by 500 columns
    Your profile says Excel 2003 and Excel 2008.

    Excel 2003 has only 256 columns, and Excel 2008 doesn't support VBA, correct?
    Last edited by shg; 09-12-2009 at 03:53 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-13-2009
    Location
    San Bernardino, CA, USA
    MS-Off Ver
    Excel 2003 (XP) and 2008 (MAC)
    Posts
    4

    Re: How to move segments of one long column to many columns?

    I have Excel 2008 (Part of Office:mac 2008).

    And I have trouble spelling VBA, let alone know how to use it!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: How to move segments of one long column to many columns?

    You asked for a macro, right? That's VBA.

    On the machine that has VBA, you don't have enough columns in Excel.

    On the machine that has enough columns in Excel, you don't have VBA.

  5. #5
    Registered User
    Join Date
    05-13-2009
    Location
    San Bernardino, CA, USA
    MS-Off Ver
    Excel 2003 (XP) and 2008 (MAC)
    Posts
    4

    Re: How to move segments of one long column to many columns?

    How embarrassing! I didn't know that Macros were VBA..

    I do have Automator - but can't get a workflow to run right even though it does what I want it to when recording it.

    I can also use 7 columns x 350 rows if that makes any difference.

    Thanks again!

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,938

    Re: How to move segments of one long column to many columns?

    What are the seven attributes of the products? Is there a reason why the data can't be re-arranged in 500 rows by X columns; i.e., the product names in column one and the attributes in seven or so columns as in a regular table format?
    Ben Van Johnson

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: How to move segments of one long column to many columns?

    Please Login or Register  to view this content.
    Adding a Macro to a Code Module
    1. Copy the code from the post
    2. Press Alt+F11 to open the Visual Basic Editor (VBE)
    3. From the menu bar in the VBE window, do Insert > Module
    4. Paste the code in the window that opens
    5. Close the VBE to return to Excel

    Do Alt+F8 from Excel and run DoIt.

  8. #8
    Registered User
    Join Date
    05-13-2009
    Location
    San Bernardino, CA, USA
    MS-Off Ver
    Excel 2003 (XP) and 2008 (MAC)
    Posts
    4

    Re: How to move segments of one long column to many columns?

    You Rock!

    Thank you very much for letting me borrow your brain cells - they work a heck of a lot better than mine

    Guy

+ 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