+ Reply to Thread
Results 1 to 6 of 6

Transposing single column data to multiple rows

  1. #1
    Registered User
    Join Date
    01-02-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Transposing single column data to multiple rows

    Hi,

    This is my first post. Hope someone could help me with this.

    I have one column data that goes in 5 groups:

    A0
    A1
    A2
    A3
    A4

    B0
    B1
    B2
    B3
    B4

    C0
    C1
    C2
    C3
    C4

    .
    .
    .
    .
    .

    So on. [Note that there is blank between the data groups.]

    I want all data transposed as such:

    A0 A1 A2 A3 A4
    B0 B1 B2 B3 B4
    C0 C1 C2 C3 C4
    .....
    .....

    How do I do that?

    Thank you so much.

    Audrey

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Transposing single column data to multiple rows

    This works

    copy this formula into Sheet2 A1 and across to E1
    then copy Sheet 2 A1:E1 downwards

    =INDIRECT("Sheet1!a"&INT((ROW()-1)/6)+(ROW()-1)*6+COLUMN())

    When the zeroes appear the data ends in your original sheet
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Transposing single column data to multiple rows

    Assume the range starts on A2 to down, so try this in B2, then copy down;

    =INDEX($A$2:$A$1000,COLUMNS($B2:B2)+(ROWS(B$2:B2)*6-5)-1)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  4. #4
    Registered User
    Join Date
    01-02-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Transposing single column data to multiple rows

    Quote Originally Posted by Special-K View Post
    This works

    copy this formula into Sheet2 A1 and across to E1
    then copy Sheet 2 A1:E1 downwards

    =INDIRECT("Sheet1!a"&INT((ROW()-1)/6)+(ROW()-1)*6+COLUMN())

    When the zeroes appear the data ends in your original sheet
    Thank you for your help. I tried your formula; unfortunately it works correctly for first 5 groups of data. Starting from the 6th group it messes up by placing the first data in that group to the E7 with the value of 0. Starting from 12th group it places second data to the first row, and second data to the 3rd row with the value of 0.

    Can you fix your formula please?

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Transposing single column data to multiple rows

    Yep does mess up round there, haseeb solutions seems to work, best go with that

  6. #6
    Registered User
    Join Date
    01-02-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Transposing single column data to multiple rows

    Quote Originally Posted by Haseeb A View Post
    Assume the range starts on A2 to down, so try this in B2, then copy down;

    =INDEX($A$2:$A$1000,COLUMNS($B2:B2)+(ROWS(B$2:B2)*6-5)-1)
    Thanks a lot Haseeb. This worked just like I wanted.

+ 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