+ Reply to Thread
Results 1 to 4 of 4

Shifting and combining columns using VBA

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    9

    Shifting and combining columns using VBA

    Hi, I have VERY LITTLE knowledge in VBA. However, I need to complete this task, and it must be done in VBA.

    Please download the attached data. What I am trying to accomplish is hard to explain if you do not have the data in front of you.
    DATA: Data.xlsx

    What I am trying to do is this:

    I want to align all the "Amount and Kind of Material Used" cells under one column. In this small data, the LAST column with "Amount and Kind of Material Used" is column R. So ideally, I want all the other "Amount and kind of material used" to shift over to either column r, or the next column, as well. Keep in mind that this should move all other cells after "Amount and Kind of Material Used" as well.

    Once this is completed, I want to COMBINE ALL CELLS after the "Amount and Kind of Material Used" column into one cell with an underscore in between.

    can someone PLEASE help me with this?

    or help me START the code. I'm on Google reading VBA for dummies and it really isn't helping.

    Thanks.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Shifting and combining columns using VBA

    can you attach also desired result
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    07-15-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Shifting and combining columns using VBA

    Quote Originally Posted by patel45 View Post
    can you attach also desired result
    Results.xlsx

    here is the desired result

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Shifting and combining columns using VBA


+ 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. Automatic shifting of cells to different columns
    By Jacana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2013, 06:48 AM
  2. [SOLVED] shifting columns
    By clc3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2012, 12:00 PM
  3. Question with shifting columns in a formula
    By siulonbow in forum Excel General
    Replies: 4
    Last Post: 08-21-2008, 05:37 PM
  4. Deleting and shifting cells and columns
    By Curt1521 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-08-2006, 11:20 AM
  5. [SOLVED] Columns Shifting on Import of Data
    By Carroll in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2005, 12:06 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