+ Reply to Thread
Results 1 to 7 of 7

How to stack data of multiple columns into one column?

  1. #1
    Registered User
    Join Date
    11-12-2019
    Location
    Belgium
    MS-Off Ver
    Office 365
    Posts
    21

    Question How to stack data of multiple columns into one column?

    Hey guys and girls,

    For the works on my construction site, i created a daily schedule which represents the concrete elements i want to receive on the stated day.
    Now the responsible of the production plant want to receive it as a weekly schedule.

    Any idea how i can stack the data of multiple columns into one, based on the week number? No (alphabethic) sorting allowed! So the data of Day 2 follows the data of Day 1.


    I hope you can help,

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: How to stack data of multiple columns into one column?

    This proposal employs some intermediate steps as modeled at the top of Sheet1.
    1. Copy the original data and paste transpose
    2. Remove merge and center formatting for A1:A14 and then fill in the blank cells. (Select A1:A14 > Go To Special > blanks > then press the =, up arrow, Ctrl and Enter keys)
    4. WK#'s are placed in row 17
    5. Paste the following array entered formula** into cell A18:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    6. After the array formula is activated copy down and across as needed.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,720

    Re: How to stack data of multiple columns into one column?

    Is this what you want? Done with PowerQuery.

    1. Load the data.
    2. Transpose the data and fill down the first column.
    3. Unpivot the detail columns.
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: How to stack data of multiple columns into one column?

    @AliGW, Brilliant!
    @AlexanderDK, Forget post #2. To get your data into the format on the Weekplanning sheet use the information in AliGW's post and then paste the following into cell A2 on the Weekplanning sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that this is not an array formula so once entered it may be copied down and across.
    Let us know if you have any questions.

  5. #5
    Registered User
    Join Date
    11-12-2019
    Location
    Belgium
    MS-Off Ver
    Office 365
    Posts
    21

    Re: How to stack data of multiple columns into one column?

    @AliGW and JeteMC, it took me a little longer since the PowerQuery and the aggregate-function were something completely new to me.

    FYI: Where the given data in my file was actually a copy of data retrieved with formulas, i had to test it if it would still work with the whole table and powerquery setup, but it works great!! The only thing i have to do now is continue planning the concrete elements and updating the data. This will be such a timesaver!!


    Thanks a lot for the help!!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,720

    Re: How to stack data of multiple columns into one column?

    PQ is a Pandora’s Box - enjoy!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: How to stack data of multiple columns into one column?

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] Convert Variable Column Data Report To Stack The Data Into Just Three Columns
    By picton2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2018, 08:23 AM
  2. [SOLVED] Need to stack multiple columns into single column on a seperate worksheet
    By mobriant1977 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2015, 12:00 PM
  3. [SOLVED] Stack multiple columns from one sheet all into one column in another sheet
    By PacificRooster in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-08-2013, 05:34 AM
  4. How can I stack data from multiple columns in a new column?
    By mdugger in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2013, 05:00 PM
  5. Multiple data in stack column chart
    By SMueller in forum Excel General
    Replies: 1
    Last Post: 06-30-2006, 09:35 PM
  6. Multiple data in stack column chart
    By SMueller in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-30-2006, 05:00 PM
  7. Replies: 2
    Last Post: 09-16-2005, 03:05 PM

Tags for this Thread

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