+ Reply to Thread
Results 1 to 5 of 5

Transpose multiple columns with multiple rows into one column

Hybrid View

trizzle2131 Transpose multiple columns... 06-22-2015, 10:32 AM
XOR LX Re: Transpose multiple... 06-22-2015, 10:47 AM
trizzle2131 Re: Transpose multiple... 06-22-2015, 11:26 AM
XOR LX Re: Transpose multiple... 06-22-2015, 11:50 AM
trizzle2131 Re: Transpose multiple... 06-22-2015, 12:28 PM
  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    Washington, DC
    MS-Off Ver
    MS Office 2011
    Posts
    3

    Transpose multiple columns with multiple rows into one column

    I have many columns of data that need to be transposed into one column. I'll try to describe an example: A1:A10 has the value 5190 in each cell, B1:B10 has 5191 in each cell, C1:C10 has 5192 in each cell, and so forth. There are many, many columns like this that need to be transposed into one column so A1:A10 would be 5190, A11:A20 would be 5191, A21:A30 would be 5192, and so on. I'm struggling to find an efficient way to tackle this. I have tens of thousands of observations, so cutting and pasting is extremely tedious.

    Any help is greatly appreciated. Thanks!

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Transpose multiple columns with multiple rows into one column

    Hi.

    In your example each of those ranges consists of precisely the same number of rows. What's more, their columns are contiguous.

    Can you confirm whether this is always the case? If not, can you give a more realistic example?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    06-22-2015
    Location
    Washington, DC
    MS-Off Ver
    MS Office 2011
    Posts
    3

    Re: Transpose multiple columns with multiple rows into one column

    Yes, there will always be the same number of rows and the columns will always be contiguous. The columns will not, however, always be a perfect series. For example, A1:A10 may consist of 5101, but B1:B10 jumps to 5105.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Transpose multiple columns with multiple rows into one column

    Thanks.

    So, assuming your range is e.g. A1:D10 and that every single one of the entries within that range is to be returned into your new list, put the following formula (used to determine the number of returns) in E1:

    =COUNTA(A1:D10)

    and then the following formula in your first cell of choice:

    =IF(ROWS($1:1)>$E$1,"",INDEX($A$1:$D$10,1+MOD(ROWS($1:1)-1,ROWS($A$1:$D$10)),CEILING(ROWS($1:1)/ROWS($A$1:$D$10),1)))

    Copy this formula down (though not the one in E1 - that's a one-off) until you start to get blanks for the results.

    Regards

  5. #5
    Registered User
    Join Date
    06-22-2015
    Location
    Washington, DC
    MS-Off Ver
    MS Office 2011
    Posts
    3

    Re: Transpose multiple columns with multiple rows into one column

    Perfect! Thanks for the help.

+ 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. Replies: 2
    Last Post: 12-09-2013, 05:34 AM
  2. Replies: 4
    Last Post: 03-08-2013, 09:49 AM
  3. [SOLVED] How to transpose one column into multiple rows and columns?
    By Raoul Gonzo in forum Excel General
    Replies: 4
    Last Post: 01-15-2013, 11:00 AM
  4. [SOLVED] How to transpose non-uniform data in multiple columns into multiple rows?
    By alexxgalaxy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-03-2013, 08:40 PM
  5. Transpose multiple columns to multiple rows
    By meet_me224 in forum Excel General
    Replies: 4
    Last Post: 11-20-2009, 05:58 PM

Tags for this Thread

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