+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Copy rows from one sheet to different sheets based on cell value

  1. #1
    Registered User
    Join Date
    04-26-2012
    Location
    Skelmersdale, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Copy rows from one sheet to different sheets based on cell value

    Hi I am hoping someone can help me,

    I have a "Course Builder" sheet which people enter course codes onto, i have the macro to move the course info to a "Total Library" sheet and clear the data from the course builder sheet. What i would like to do now is have a macro/code that searches the "Total Library" sheet and copys a row from column H:R to another sheet based on the value in column C. For example column C value is "NRDC_" this row moves to a sheet named "NRDC", i have 11 different sheets to move info into. I would need to paste it into the next available row but not copy a course code if it already exists on the target sheet.
    I can do this with a macro by filtering the data on Total Library for all 11 sheets and copy and paste that way, i was just wondering if anyone new of a smarter/quicker way of doing it?

    Any help would be gratefully received.

    Irleand316

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy rows from one sheet to different sheets based on cell value

    All the macros I've built to parse data from one sheet to many sheets based on the values in a column are done through autofilters, exactly as you've described. For example:

    'SHEET1 TO MANY SHEETS
    Here's a macro for parsing rows of data from one sheet to many sheets named for the same values in a specific column.It not only can parse the rows, it can create the sheets if they are missing. There is a sample sheet there where you can test this out.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy rows from one sheet to different sheets based on cell value

    How'd this work for you?

    If that takes care of your need, please select Thread Tools from menu above and set this topic to SOLVED.

+ 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