+ Reply to Thread
Results 1 to 22 of 22

Stack Multiple Column in one column

  1. #1
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Stack Multiple Column in one column

    Hi,

    i have 3167 columns that i want to stack in one column, please NOTE I NEED TO STACK ON TOP OF EACH AND NOT MERGE.

    here is sample of it. I HAVE ATTACHED actul file as well. please click on link to download file. THANK YOU

    A B C D
    1 6 11 16
    2 7 12 17
    3 8 13 18
    4 9 14 19
    5 10 15 20



    A
    1
    2
    3
    4
    5
    B
    6
    7
    8
    9
    10
    C
    11
    12
    13
    14
    15
    D
    16
    17
    18
    19
    20

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,913

    Re: Stack Multiple Column in one column

    A21
    Please Login or Register  to view this content.
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Re: Stack Multiple Column in one column

    Hi Siva,

    Thank you sooo much. life saver

    another question,wondering if you can help as well. pls see attached link


    let say i want to generate varient of product for all combination please see below sample data.


    VAR 1 VAR 2 VAR 3 COLOR 1 COLOR 2 COLOR 3 SIZE 1 SIZE 2
    SKU512813 C D E Black Blue **** 34 36



    Result

    VAR C Color Black Size 34
    C Black 36
    D BLUE 34
    D BLUE 36
    E **** 34
    E **** 36

    in some cases will have colors and size only.

  4. #4
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Re: Stack Multiple Column in one column

    Screen Shot 2017-01-20 at 3.17.24 pm.png attached is image showing raw data and result data.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Stack Multiple Column in one column

    Suppose your data from "A1" to "I2"
    In "K1" formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy paste across.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Stack Multiple Column in one column

    Suppose your data from "A1" to "I2"
    In "K1" formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy paste across.

  7. #7
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Re: Stack Multiple Column in one column

    Thanks AVK, but formula you provided just transpose the data. please see attached imageScreen Shot 2017-01-20 at 3.17.24 pm.png. we need to convert data row data to 2 columns or 4 columns or 6 columns depends on variables. in first column it will just show variant name. let say Color, next column it will show list of colors and 3rd column will show Size and 4th column will show list of all sizes and and so on.

  8. #8
    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,147

    Re: Stack Multiple Column in one column

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Please show more example than those in your image

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Stack Multiple Column in one column

    Many members are unable to see images in the *.png format due to forum compatibility issues with some browsers.

    If you need to post an image post it in the *.jpg format.

    Even better than posting images... post a SMALL sample file. That way we can test solutions directly in the file with the relevant data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  10. #10
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Re: Stack Multiple Column in one column

    Sorry my bad, please see attached LINK for sample data.

    i have 5000 rows of data in actual.


    Thanks everone

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

    Re: Stack Multiple Column in one column

    What is the result for SKU SKU305749? and is the selection a given (single) SKU?

  12. #12
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Re: Stack Multiple Column in one column

    Jhon,

    please see attached LINK showing result for SKU305749

    Thanks

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

    Re: Stack Multiple Column in one column

    Thank you for the new file. As there no standard sequence of data an VBA solution might be the only option.

    Is reasonable (correct) to assume your sample covers all variations in terms of coding: i.e Var1 is a single character (A,B ...) , Sizes are numeric or S, M ,L nXL?
    Last edited by JohnTopley; 01-20-2017 at 01:02 PM.

  14. #14
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Re: Stack Multiple Column in one column

    This how the raw data looks like for one SKU Cup:C,D,E, Color: Black,Blue,****,Red,Wine Red Size: 34,36,38,40,42,44,46,48,50

    This is just one type of raw data, 2nd SKU can be Just Color and Size only(MOST CASES ONLY 2 TYPES). What i am looking for is results of all possible variants for ecommerce site because i will be uploading csv file so data need to be sorted in columns and in same structure as showing in this LINK

    Thanks

  15. #15
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Re: Stack Multiple Column in one column

    here is the actual file with all the RAW Data formatting and i am showing one result format as well. here is the LINK

    I hope this will change the scenerio.

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

    Re: Stack Multiple Column in one column

    See the attached:

    As I didn't know how you wanted the output, I have added a drop-down list of SKUs. Select and click RUN.

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

  17. #17
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Re: Stack Multiple Column in one column

    Hi John,

    Great work, almost there. instead of showing results for one sku, we need to show output for all SKUs in one go. i have attached sample file LINK here.

    Please note. format of outcome and combination its generating is absolutly what we need. just to need to show output for all the SKUs in sheet1 in one go.

    Thank you for all the time you putting in.

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

    Re: Stack Multiple Column in one column

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

  19. #19
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Re: Stack Multiple Column in one column

    John working absolutely perfect. you saved me weeks of works. LEGEND.

    I should have mention this before but on cheking i found that, website import format requires SKU to copy up to variation range. please see below sample, right now its showing SKU only one time and thn variations when we run the code. what change i have to do in code to copy SKU upto to relevant range.

    SKU445705
    SKU445705 Green XL
    SKU445705 Green 2XL
    SKU445705 Green 3XL
    SKU445705 Green 4XL
    SKU445705 Green 5XL
    Last edited by mtr980; 01-21-2017 at 05:43 AM.

  20. #20
    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,147

    Re: Stack Multiple Column in one column

    If I understand you want SKU on every row ..: add highlighted line

    Please Login or Register  to view this content.

  21. #21
    Registered User
    Join Date
    01-20-2017
    Location
    Perth
    MS-Off Ver
    Mac 2016
    Posts
    13

    Re: Stack Multiple Column in one column

    Working perfect. thank you so much John.

  22. #22
    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,147

    Re: Stack Multiple Column in one column

    Thank for the feedback and rep.

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

+ 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] 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
  2. [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
  3. 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
  4. Converting Stack Column, to Stacked Column with Line
    By cmcconnehey in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-18-2008, 03:02 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

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