+ Reply to Thread
Results 1 to 19 of 19

Put All Columns One Under the Other

  1. #1
    Registered User
    Join Date
    12-12-2014
    Location
    Ankara
    MS-Off Ver
    2010
    Posts
    41

    Put All Columns One Under the Other

    Hi all
    I did not know how to write the title truely
    Simply i want try to describe what i want to do;

    As i attached my excell file
    i wanna put all columns one under other automatically (as you see in Sheet1)
    (i did it bu manually in Sheet2)

    How can i do this automatically (by formulas)

    Best regards
    Attached Files Attached Files

  2. #2
    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,896

    Re: Put All Columns One Under the Other

    Power Query is available as an add in for Excel 2010. Once loaded, then bring your table into the PQ editor.
    Highlight the first column and Unpivot the remaining columns.
    Delete the two uneeded columns.

    Here is the Mcode

    Please Login or Register  to view this content.
    Attached Files Attached Files
    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

  3. #3
    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,896

    Re: Put All Columns One Under the Other

    crosspost: https://www.mrexcel.com/board/thread...other.1146941/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

  4. #4
    Registered User
    Join Date
    12-12-2014
    Location
    Ankara
    MS-Off Ver
    2010
    Posts
    41

    Re: Put All Columns One Under the Other

    hi Alan
    thanks a lot for ur answer and for your work
    it is ok that u did what i want
    but; when i change/add column and row datas, nothing changed? not syncing with sheet3?
    is it my problem? please forgive this newbie :/

  5. #5
    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,896

    Re: Put All Columns One Under the Other

    If you make changes to the original source data, you need to click on Refresh All to update the output.

  6. #6
    Registered User
    Join Date
    12-12-2014
    Location
    Ankara
    MS-Off Ver
    2010
    Posts
    41

    Re: Put All Columns One Under the Other

    ok i find it (REFRESH ALL)
    and not worked
    please look orders (from 1 to 12) from Sheet1 to Sheet2 in the attached xls

    thnxs

  7. #7
    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,896

    Re: Put All Columns One Under the Other

    I don't understand your issue. I get the same results as you when I unpivot the table. What is it that you are looking for that is different from the original example.

  8. #8
    Registered User
    Join Date
    12-12-2014
    Location
    Ankara
    MS-Off Ver
    2010
    Posts
    41

    Re: Put All Columns One Under the Other

    gotcha....
    ur query ordering from left row to right
    (as we look ur excell ordering from B2 to O2) (it is row based order)
    what i want to do is; order from B2 to B13 (column based order)
    is it clear?

    look my v2 excell --> Sheet2

    thnxs

  9. #9
    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,896

    Re: Put All Columns One Under the Other

    Understand now.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-12-2014
    Location
    Ankara
    MS-Off Ver
    2010
    Posts
    41

    Re: Put All Columns One Under the Other

    returns with this error

    i am adding more rows and columns

  11. #11
    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,896

    Re: Put All Columns One Under the Other

    How is your actual file different from the example you have presented? Is the sample representative of your actual file?

  12. #12
    Registered User
    Join Date
    12-12-2014
    Location
    Ankara
    MS-Off Ver
    2010
    Posts
    41

    Re: Put All Columns One Under the Other

    yes, it is a sample of my actual file.
    there a lots (hundreds) of columns in my actual file.
    all columns have 10-20 rows in there.
    i made a simple sample for this forum to be able to understand

  13. #13
    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,896

    Re: Put All Columns One Under the Other

    Open your file.
    In Power Query, open a blank query, by clicking on From other sources and selecting Blank Query

    Insert the code I have provided by clicking on Advanced Editor. Paste my code into the Advanced Editor. Make sure the table name you have for your table replaces my "Table1" if different.

    Close and Load.

    Don't know what else to tell you. It works for me.

  14. #14
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Put All Columns One Under the Other

    A formula solution:

    In A1:

    Please Login or Register  to view this content.
    Drag down
    Attached Files Attached Files
    Quang PT

  15. #15
    Registered User
    Join Date
    12-12-2014
    Location
    Ankara
    MS-Off Ver
    2010
    Posts
    41

    Re: Put All Columns One Under the Other

    Thanks a lot @Alan
    I am using Office 365 ProPlus and there is no POWER QUERY options in my Excel
    I tried to add via https://www.excelcampus.com/install-power-query/
    But not successfull

    @Bebo
    It worked (semi-worked for me)
    If i add more columns and more row it is half working
    Attached v3 xls...Any idea?

    regards
    Attached Files Attached Files
    Last edited by c a g a t a y; 09-29-2020 at 02:15 AM.

  16. #16
    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,896

    Re: Put All Columns One Under the Other

    Your profile indicates 2010. Please update that to 365. In 365, power query is called Get and Transform and is found on the Data Tab of the Ribbon. It is called Power Query in 2010.

  17. #17
    Registered User
    Join Date
    12-12-2014
    Location
    Ankara
    MS-Off Ver
    2010
    Posts
    41

    Re: Put All Columns One Under the Other

    @alansidman my excel says it is OFFICE 365 ProPlus
    And there is no UPDATE now
    pls look attached image.

    @bebo could you please try NAMEXMP.V3.xlsx‎ that i attached?

    regards

  18. #18
    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,896

    Re: Put All Columns One Under the Other

    I am referring to your Excel Forum Profile that you set up when you joined here.
    Attached Images Attached Images

  19. #19
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Put All Columns One Under the Other

    If you try to study my formula in #14, you may know to adapt the range from A2:A13 into A2:A31

    Please Login or Register  to view this content.

+ 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. loop through files find columns and copy/paste them as columns in master workbook
    By Michal1111 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2018, 10:40 PM
  2. Replies: 5
    Last Post: 10-06-2017, 03:59 PM
  3. Find Duplicates across 2 pairs of columns (2 columns against 2 columns)
    By erjfly2013 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2015, 06:52 PM
  4. Macro to Copy from 2 Columns, Paste Value in the next 2 Columns, Then clear 1st Columns
    By MHALTTUNEN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2014, 03:34 PM
  5. Macro to Compare two columns and publish sheet name in case columns dont match
    By adaws in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2014, 01:21 PM
  6. Combining multiple rows from 2 columns into sorted columns depending on 1st columns value
    By Dexamphetamine in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-11-2013, 10:00 AM
  7. Replies: 6
    Last Post: 12-26-2012, 01:43 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