+ Reply to Thread
Results 1 to 5 of 5

Sort of Transpose a large array

  1. #1
    Registered User
    Join Date
    01-09-2013
    Location
    Omaha, Nebraska
    MS-Off Ver
    Excel 2010
    Posts
    2

    Sort of Transpose a large array

    Hello,
    I have a large array that has is currently setup in 10 columns and 4050 rows. However, I am trying to get the data in the format of 162 rows by 248 columns by appending rows with data from below, and then tightening once 248 columns have been reached.

    The example is well illustrated with this simple example:
    We start with this array:
    1 2 3
    4 5 6
    7 8 9
    10 11 12
    13 14 15
    16 17 18

    and we are looking for an array that looks like this:
    1 2 3 4 5 6 7 8 9
    10 11 12 13 14 15 16 17 18

    where the value 9 in the example would be 248 (columns) for my real problem.

    Anyone, have any quick fixes?
    Thanks so much!

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Sort of Transpose a large array

    There are lots of ways to do this. This will work and is easy to modify.

    It expects the original data to be on a sheet called DataHere and will output on a sheet called Reformatted (which must exist)


    Please Login or Register  to view this content.


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Registered User
    Join Date
    01-09-2013
    Location
    Omaha, Nebraska
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Sort of Transpose a large array

    I'm not that familiar with running macros in Excel... do you think you could explain how to get this script working? Thanks Tony!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: Sort of Transpose a large array

    rosnathan

    1) Hit Alt + F11 to open VBE.
    2) go to [Insert] - [Module] then paste the code on to the right pane.
    3) Hit Alt + Q to get back to Excel
    4) hit Alt + F8 - choose "test" then click on [Run]

    Condition;
    Sheet1 holds the data
    Sheet2 is the destination for output.
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Sort of Transpose a large array

    largeTranspose.xlsm
    Try this ... once you click on the button it takes a while to complete. Note you will need to enable macros

+ 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] Transpose rows to columns in large data set
    By Larne-O in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 04-03-2013, 04:04 AM
  2. [SOLVED] Transpose Large Amount of Data
    By engineerlady in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-09-2013, 12:56 PM
  3. Transpose large data set using MACRO
    By xsiededios in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2013, 03:23 AM
  4. Large Transpose of data
    By Mike Woodhams in forum Excel General
    Replies: 2
    Last Post: 09-12-2012, 03:19 PM
  5. sort button - how to sort large range in boxes
    By jw01 in forum Excel General
    Replies: 2
    Last Post: 03-06-2012, 09:35 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