+ Reply to Thread
Results 1 to 8 of 8

Easiest way to transpose columns data in to rows one below each other

  1. #1
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Easiest way to transpose columns data in to rows one below each other

    Hello

    I have series of data by different months in different columns, instead of having the data in columns, i need to stack it in rows one below each other.

    I have been trying to do this in pivot , i am not able to get this?

    is there a pivot solution or only vba or some excel formulas would do?

    I have sample excel file attached to explan clearly.

    Any guidance will be really helpful.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,533

    Re: Easiest way to transpose columns data in to rows one below each other

    Your file shows data "grouped" in blocks (rows) of 5: is this always true or do the "blocks" vary in the number of rows?
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Easiest way to transpose columns data in to rows one below each other

    Power Query

  4. #4
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Re: Easiest way to transpose columns data in to rows one below each other

    It varies , not always in group of 5

  5. #5
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Re: Easiest way to transpose columns data in to rows one below each other

    Thanks Sandy, Do you need to have the power query to do this as i dont seem to have license for this?

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Easiest way to transpose columns data in to rows one below each other

    masa.png


    XL2010 and XL2013 require Power Query add-in (link), it's free from MS site, all higher versions have Power Query built in
    Last edited by sandy666; 11-21-2022 at 10:21 AM. Reason: added link

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,434

    Re: Easiest way to transpose columns data in to rows one below each other

    Hi. Before we get going on this one...

    Is your forum profile showing the Excel PRODUCT that you need this request to work with?

    The best solutions often rely on knowing WHICH Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. If you aren't sure, in Excel go to File/Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent Excel PRODUCTS are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the Version number in your profile (e.g. MS365 (PC) Version 2211). The version number is in the About Excel section further down the Account page.

    Cheers,

    Glenn.
    Attached Images Attached Images
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,434

    Re: Easiest way to transpose columns data in to rows one below each other

    L4, copied down:
    =IFERROR(INDEX($G$3:$J$3,,1+INT((ROWS(L$4:L4)-1)/COUNTA($G$4:$G$13))),"")

    M4 copied across and dnown:
    =IF($L4="","",INDEX(B$4:B$13,1+MOD((ROWS(M$4:M4)-1),COUNTA($B$4:$B$13)),))

    R4, copied down:
    =IF($L4="","",INDEX($G$4:$J$13,1+MOD((ROWS(R$4:R4)-1),COUNTA($B$4:$B$13)),1+INT((ROWS(R$4:R4)-1)/COUNTA($B$4:$B$13))))
    Attached Files Attached Files

+ 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. Transpose Data from Rows to Columns
    By chasoe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2022, 01:34 PM
  2. Getting data in rows to transpose to columns
    By oleander in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2019, 05:48 PM
  3. getting data from columns to rows without using transpose
    By rachbendy in forum Excel General
    Replies: 6
    Last Post: 07-15-2012, 09:41 AM
  4. Transpose columns of data in rows
    By Absar in forum Excel General
    Replies: 4
    Last Post: 09-14-2010, 09:10 PM
  5. transpose data from columns into rows
    By levycraig in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-14-2010, 07:26 AM
  6. Data in columns to rows (not transpose...)
    By titus.hanke in forum Excel General
    Replies: 13
    Last Post: 12-01-2008, 09:43 AM
  7. Transpose data from rows into columns
    By greaseman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-03-2006, 03:52 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