+ Reply to Thread
Results 1 to 6 of 6

How can I transpose multiple rows into one column.

Hybrid View

  1. #1
    Registered User
    Join Date
    12-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    How can I transpose multiple rows into one column.

    Hi there, I wish to transpose multiple lines into one column, I have attached a file for an example. Thank you for your help.
    Attached Files Attached Files
    Last edited by Doodie; 12-15-2012 at 04:45 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How can I transpose multiple rows into one column.

    Try this:

    Sub RowstoColumn(): Dim Ro As Range, r As Long: r = 7
    SetRo: Set Ro = Range("F" & r & ":J" & r): Ro.Copy
    Range("A" & r).PasteSpecial Transpose:=True
    r = r + 5
    If Range("F" & r) = "" Then Exit Sub
    GoTo SetRo: End Sub
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    12-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How can I transpose multiple rows into one column.

    Thank you, it works. I need to learn VBA, it would save so much time.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How can I transpose multiple rows into one column.

    You're welcome! - Yeah, I really like VBA and Excel.

  5. #5
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: How can I transpose multiple rows into one column.

    write at A7 :
    =TRANSPOSE(E7:I7)
    then select range A7:A11 (5 rows)
    push Ctrl +shift +enter (array formula)
    copy result down

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: How can I transpose multiple rows into one column.

    Another

    Sub abc()
     Dim i As Long
     
     For i = 7 To Cells(Rows.Count, "a").End(xlUp).Row Step 5
        Cells(i, "e").Resize(, 5) = _
        Application.Transpose(Cells(i, "a").Resize(5))
     Next
     
    End Sub
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

+ 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