+ Reply to Thread
Results 1 to 6 of 6

Move From Column To Row - Power Query?

  1. #1
    Forum Contributor Gtrtim112's Avatar
    Join Date
    04-12-2013
    Location
    Alabama, USA
    MS-Off Ver
    Excel 2016
    Posts
    332

    Move From Column To Row - Power Query?

    I'm using Excel 2016 version and I'm needing to move data from a column into rows. I'm not sure how to go about doing it without manually copying and pasting, which would take forever. My workbook has two tabs... both needing the same thing but the number of columns in the final table would be different. My example spreadsheet is attached with an easy to understand example.

    Can someone possibly help with this one? I'm not familiar with Power Query but think that would probably do the trick.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Move From Column To Row - Power Query?

    Based on the layout of your sample in post #1, you can use these formulas in C3:

    Sheet2 =INDEX($A:$A,ROWS($1:1)*6-3+COLUMNS($A:A))
    Sheet4 =INDEX($A:$A,ROWS($1:1)*7-4+COLUMNS($A:A))

    Drag the formula to the right and down.

  3. #3
    Forum Contributor Gtrtim112's Avatar
    Join Date
    04-12-2013
    Location
    Alabama, USA
    MS-Off Ver
    Excel 2016
    Posts
    332

    Re: Move From Column To Row - Power Query?

    Quote Originally Posted by 63falcondude View Post
    Based on the layout of your sample in post #1, you can use these formulas in C3:

    Sheet2 =INDEX($A:$A,ROWS($1:1)*6-3+COLUMNS($A:A))
    Sheet4 =INDEX($A:$A,ROWS($1:1)*7-4+COLUMNS($A:A))

    Drag the formula to the right and down.
    Thank you so much!

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Move From Column To Row - Power Query?

    You're welcome. Happy to help.

    Thanks for the rep!

  5. #5
    Registered User
    Join Date
    05-31-2019
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    5

    Re: Move From Column To Row - Power Query?

    Hi, is there anyway to revert this process?

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Move From Column To Row - Power Query?

    @lxy

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original. Please start a new thread - See Forum rule #4

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Power Pivot does not load new column added in Power query
    By ibuhary in forum Excel General
    Replies: 12
    Last Post: 02-19-2019, 03:53 AM
  2. [SOLVED] Power Query Custom Column Formula
    By whiskeybravo91 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-06-2018, 11:10 AM
  3. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  4. Adding Column in Power Query
    By fuerte in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-28-2018, 12:39 PM
  5. Adding Column in Power Query
    By fuerte in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2018, 11:15 AM
  6. Power Query - add column with Table name
    By zico8 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-11-2017, 12:58 AM
  7. Power Query from CSV - possible to move connection string to excel without MS PQ?
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2016, 04:35 AM

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