+ Reply to Thread
Results 1 to 3 of 3

Copy Column A data to Sheet 2 where rows matches Sheet 2 headers

  1. #1
    Registered User
    Join Date
    11-08-2011
    Location
    Indiana
    MS-Off Ver
    Excel 2007, 2010
    Posts
    14

    Copy Column A data to Sheet 2 where rows matches Sheet 2 headers

    I cannot find any code to finish my project and I would like some help. I can find lots of code to move data with matching headers on both sheets but my source has duplicate names in rows to match Sheet2 headers. I would like to do this with code since I have several others that I would run prior to this one. Thanks for your help.

    I need to copy the data in Sheet1 ColumnA to Sheet2 Row2 where the Sheet1 Column B matches Sheet2 Row A header. The data amount will vary for names and departments. Column B will be sorted by department name prior to this code.

    Below is Sheet1 data sample, Sheet2 with headers, and Sheet2 needed results.

    MoveData.JPG

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

    Re: Copy Column A data to Sheet 2 where rows matches Sheet 2 headers

    Assuming row 1 in sheet2 will be populated with the department names rather than need to determine the uniques from sheet1. Also assumed existence of header in sheet 1.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-08-2011
    Location
    Indiana
    MS-Off Ver
    Excel 2007, 2010
    Posts
    14

    Re: Copy Column A data to Sheet 2 where rows matches Sheet 2 headers

    Thanks for the reply. I tested the code on a copy of my data and it worked perfectly. Thanks 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. [SOLVED] Copy from one sheet to another based on column headers
    By in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2014, 10:27 AM
  2. Copy Data from one sheet to another if column data matches
    By solsearcher in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-09-2013, 07:01 AM
  3. Search Column Headers and Copy into a Sheet
    By ukguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2012, 10:28 AM
  4. Replies: 1
    Last Post: 10-30-2009, 10:58 AM
  5. Replies: 8
    Last Post: 02-03-2007, 01:41 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