+ Reply to Thread
Results 1 to 16 of 16

stack multiple columns

  1. #1
    Registered User
    Join Date
    08-08-2018
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    6

    stack multiple columns

    I have 3 columns, and I want to use Match and Offset for stack this columns.

    Example:

    Item Location Product
    A 11 a15
    B 11 a15
    C 12 a13
    D 13 a17
    E 15


    I need it to look like this:

    A 11 a15
    B 11 a15
    C 12 a13
    D 13 a17
    E 15
    A 11 b15
    B 11
    C 12 b18
    D 13
    E 15 b20
    A 11 c5
    B 11 c5
    C 12 c5
    D 13 c6
    E 15 c7


    thank you!!!!!

  2. #2
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: stack multiple columns

    and where are the b and c values coming from?

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: stack multiple columns

    Not totally clear. Please attach a file with the input and the desired output
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Forum Contributor
    Join Date
    07-10-2012
    Location
    Bangladesh
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: stack multiple columns

    i am also with YasserKhalil

    need input and output in excel sheet for better impression

  5. #5
    Registered User
    Join Date
    08-08-2018
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    6

    Re: stack multiple columns

    Here is the file...tkssss

  6. #6
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: stack multiple columns

    no file attached.

  7. #7
    Registered User
    Join Date
    08-08-2018
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    6

    Re: stack multiple columns

    How do I attach file?

  8. #8
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: stack multiple columns

    Go advanced - scroll down to manage attachments

  9. #9
    Registered User
    Join Date
    08-08-2018
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    6

    Re: stack multiple columns

    Here now is the file
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: stack multiple columns

    Melo, try this on please:
    Please Login or Register  to view this content.
    Last edited by SjonR; 08-08-2018 at 09:20 AM.

  11. #11
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,808

    Re: stack multiple columns

    If you are allowed to download and use Power Query, what I see is an "unpivot" operation: https://support.office.com/en-us/art...5-f588221c7098
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  12. #12
    Registered User
    Join Date
    08-08-2018
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    6

    Re: stack multiple columns

    Great work SjonR, in the example file, but no in my file.
    Look my file.
    And remember, every day I have different qty of lines.
    Attached Files Attached Files
    Last edited by melo12; 08-08-2018 at 09:36 AM.

  13. #13
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: stack multiple columns

    try this one:

    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    08-08-2018
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    6

    Re: stack multiple columns

    Perfect.
    last request: is it possible to paste number and not text?

    Thank you so much

  15. #15
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: stack multiple columns

    add this lines at the bottom of the code:

    Please Login or Register  to view this content.

  16. #16
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,513

    Re: stack multiple columns

    Or
    Add this to the end of Sjon's code (just before the "End Sub")
    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. stack columns from multiple sheets
    By hteaford in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2016, 02:15 AM
  2. [SOLVED] how do I stack multiple columns into one?
    By EnvynLust in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2013, 07:06 PM
  3. [SOLVED] how to stack multiple columns?
    By mrr2 in forum Excel General
    Replies: 9
    Last Post: 05-11-2012, 01:20 PM
  4. Stack multiple columns
    By toxpoint in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2009, 10:27 PM
  5. Stack multiple columns into one array
    By CJEJung in forum Excel General
    Replies: 2
    Last Post: 09-11-2008, 03:52 AM
  6. [SOLVED] Multiple columns in stack graph
    By Amanda in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 08-05-2005, 10: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