+ Reply to Thread
Results 1 to 6 of 6

copy rows to another worksheet based on cell value

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Wigan, UK
    MS-Off Ver
    Office 2007
    Posts
    5

    Angry copy rows to another worksheet based on cell value

    I need to copy rows from one worksheet within a workbook to another based on values within one of the cells. The spreadsheet is an assessment data tracker I'm working on for my school but I'd like it to automatically filter the whole set of data based on specific values e.g. one page will contain the data for pupil premium children vs non-pupil premium children, another for boys vs girls from the whole data set on the master data sheet.

    My question is whether this is best achieved by VBA macro, VLOOKUP or some kind of automatic filter. As my experience in VBA/macros is limited the solution would need to be something I can do easily. Any help would be greatly appreciated!

    In the example file I would need to copy rows 14,16,18,20 & 22 fully to sheet2 "Pupil Premium".


    [URL="https://drive.google.com/open?id=1xEuUBqXFMxtVWO5MjBURaXMOCTHCV0oh"]
    Attached Files Attached Files
    Last edited by craig_youngman; 02-14-2018 at 01:00 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: copy rows to another worksheet based on cell value

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

  3. #3
    Registered User
    Join Date
    01-07-2014
    Location
    Wigan, UK
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: copy rows to another worksheet based on cell value

    Thanks! Wondered how to upload file!

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: copy rows to another worksheet based on cell value

    double post see next post
    Last edited by xladept; 02-14-2018 at 02:54 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: copy rows to another worksheet based on cell value

    It's a start:

    Please Login or Register  to view this content.
    BTW - You'll need to correct the name of the second tab.

  6. #6
    Registered User
    Join Date
    01-07-2014
    Location
    Wigan, UK
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: copy rows to another worksheet based on cell value

    Thank you - I'll give it a try! Help is much appreciated!

+ 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] Need to copy certain rows to a different worksheet based on cell value
    By Lucille Boshoff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2017, 07:29 AM
  2. How to copy rows to a new worksheet based on cell value
    By BethaW in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2014, 09:28 PM
  3. [SOLVED] Copy rows from one worksheet to another worksheet based on a cell criteria.
    By keneco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-07-2013, 10:28 AM
  4. [SOLVED] Copy rows from my main worksheet to another worksheet based on data in one cell
    By gcol in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-08-2012, 05:12 AM
  5. copy rows based on cell value and paste to another worksheet
    By kingpeejay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2009, 01:10 AM
  6. Copy rows to new worksheet based on cell value
    By truffle6 in forum Excel General
    Replies: 1
    Last Post: 01-13-2009, 01:40 PM
  7. copy rows to a new worksheet based on cell value
    By Dan Howard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2006, 03:37 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