+ Reply to Thread
Results 1 to 6 of 6

Macro to combine three columns

  1. #1
    Registered User
    Join Date
    05-05-2008
    Posts
    45

    Macro to combine three columns

    Please excuse the blank cells/columns in this sample sheet. All cells/columns will have data entered into them, but I'm focusing on combining the data from columns C, I and L only. I need the combined column to "stack" (for lack of a better term) the corresponding cells from C and I (i.e. C2 over I2, C3 over I3, C4 over I4 then L2 (merged cell in some cases) at the bottom of the list. Please see the attached file for sample data.

    A simple explanation of what I'm trying to accomplish... Each "name" (column C) is associated with a "Lot #" (column I). These lot #'s are then combined and sold as one "MASTER LOT" (column L) which is why I only need the associate Master Lot # listed once at the bottom of the list (top of list will suffice). I prefer the results to show on a separate sheet, but not a necessity.

    Any help would be greatly appreciated! Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,037

    Re: Macro to combine three columns

    Try:
    Please Login or Register  to view this content.
    The data will be copied to Sheet2.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    05-05-2008
    Posts
    45

    Re: Macro to combine three columns

    SOOOOOOOOOOOO close, Mumps1.... The "name" and "lot #" are absolutely perfect, however there is only one "master lot #" showing in the list and it is at the very bottom... I need the "master lot #" to show listed directly under the related the name/parent lot #'s. Almost there! Thank you so very much for the help!

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,037

    Re: Macro to combine three columns

    Try:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-05-2008
    Posts
    45

    Re: Macro to combine three columns

    PERFECT! Thank you Mumps1!!!!

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,037

    Re: Macro to combine three columns

    My pleasure.

+ 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. Macro to combine multiple columns keeping few columns specific
    By lramesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 12:44 PM
  2. MAcro to - copy, transpose, text to columns, remove column A, combine all columns in 1
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-07-2013, 08:48 AM
  3. macro to combine multiple columns based on ID
    By TechRetard in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-13-2011, 02:18 AM
  4. [SOLVED] Combine Columns in Macro
    By Rob in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-05-2005, 05: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