+ Reply to Thread
Results 1 to 4 of 4

Copy/Paste Columns from Multiple Worksheets based on Headers into new Worksheet

  1. #1
    Registered User
    Join Date
    10-30-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    11

    Copy/Paste Columns from Multiple Worksheets based on Headers into new Worksheet

    I've seen a few examples done, but I can't seem to make them work for my scenario.

    I have 8 worksheets that I need to take data from 3 columns (based on the column headings since the header names aren't always in the same columns) and paste*special them into a new worksheet.

    I have attached an example to help illustrate this.

    1) I need the data from Sheets 1 - 8 for the specific column headers: "Full name2", "Office Location", and "Grand Total"
    2) Would like to paste the data into "Consolidated" worksheet, which has the 3 column headers defined in that worksheet.
    3) The "Grand Total" column is what changes on Sheets 1 -8 making this difficult for me.

    Appreciated as always. This is probably something basic for you macro expert, but has been throwing me for a loop.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy/Paste Columns from Multiple Worksheets based on Headers into new Worksheet

    Try this:

    Please Login or Register  to view this content.
    Note: You didn't mention combining names and locations so I just simply followed your directions to the letter
    If you are happy with my response please click the * in the lower left of my post.

  3. #3
    Registered User
    Join Date
    10-30-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy/Paste Columns from Multiple Worksheets based on Headers into new Worksheet

    thank you stnkynts...i'm a lot closer than i was before.

    when i run the macro, it pastes all the data except for "Full name2" and "Office Location" for the last 3 worksheets. In my real workbook, I have these worksheets named something other than Sheet1, Sheet2, etc. I was thinking if there was a way to name which worksheet I want to copy from to avoid any confusion? Otherwise, this macro worked in the test example.

  4. #4
    Registered User
    Join Date
    10-30-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy/Paste Columns from Multiple Worksheets based on Headers into new Worksheet

    did a little editing and got it...thanks stnkynts for your help!

+ 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. copy and paste columns based on column headers
    By patwary786 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-24-2015, 11:43 PM
  2. [SOLVED] (Excel VBA) Copy and Paste from one worksheet to multiple worksheets by names
    By road_warrior in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2015, 08:40 PM
  3. macro to add columns after existing columns and copy/paste headers and formulas
    By rhybeka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2013, 02:35 PM
  4. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  5. [SOLVED] Copy and Paste rows to multiple worksheets based on a cell value.
    By gaidon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2013, 12:43 PM
  6. [SOLVED] Copy multiple worksheets data & paste into blank columns in summary worksheet
    By guest99999 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-21-2013, 09:56 AM
  7. Copy data from multiple worksheets & paste into one worksheet.
    By Rodders in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-10-2012, 11:54 AM

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