+ Reply to Thread
Results 1 to 6 of 6

Copy multiple rows that contain a certain "name" in column "A" then paste it into new work

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    3

    Copy multiple rows that contain a certain "name" in column "A" then paste it into new work

    Good day all,

    I am looking for help with a VBA code. I have a raw data sheet labeled "Raw Data" that has departments labeled in columns "A" and other data in columns B:J (Dates, Numbers, etc.). I want to copy all department rows that meet a certain criteria to another workbook. For example, In my "Raw Data" sheet I have several departments listed in column "A" which include "Shipping", "Receiving", "Tech Support", etc. They all appear in Column "A" in multiple and random places (they are not in order). I want to write code to copy any and all rows that contains "Shipping" in column "A" to a new new work book labeled "Shipping" and then copy any and all rows that contain "Receiving" in column "A" to a new workbook labeled "Receiving" and so on for "Tech Support" and the other departments we have. I have over 6000 rows of data and 12 different departments. I want to take the data dump "Raw Data" and sned the different departmental data to their own respective workbook that I can analyze form there. Thank you in advance for you support!

    Rob

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Copy multiple rows that contain a certain "name" in column "A" then paste it into new

    Hi
    You could use the Advanced Filter and copy the filtered rows to a new worksheet.
    Hope this helps.
    Tony

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy multiple rows that contain a certain "name" in column "A" then paste it into new

    Does this help?

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-18-2013
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Copy multiple rows that contain a certain "name" in column "A" then paste it into new

    Thank you. John!
    Last edited by rschlot2; 06-18-2013 at 02:04 PM.

  5. #5
    Registered User
    Join Date
    06-18-2013
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Copy multiple rows that contain a certain "name" in column "A" then paste it into new

    Great idea, Tony. Thank you!

    Rob

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy multiple rows that contain a certain "name" in column "A" then paste it into new

    You're welcome. Glad to help out, and thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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