+ Reply to Thread
Results 1 to 3 of 3

Copy a range based on a cell value

  1. #1
    Registered User
    Join Date
    12-28-2011
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Copy a range based on a cell value

    I have a spreadsheet that I am trying to copy a range within a row to another sheet based on its value

    I dump data into the spreadsheet from A to L. I assign the values below based on a lookup table in M.
    Values
    A+, A, B+, B, C, D, F, U

    Now I want to copy the range A2:L2 to a different sheet based on its grade, i.e A+ goes to the A+ sheet, A goes to the A sheet and so on. There are approxamatley 4000+ rows in this sheet.

    I have attached a small portion of the records.

    Any help would be appreaciated, thanks in advance
    Attached Files Attached Files
    Last edited by tuke016; 12-29-2011 at 11:17 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Copy a range based on a cell value

    Hello tuke016,

    Welcome to the Forum!

    The following macro has been added to the attached workbook. There is button on "Sheet1" to run the macro. This will copy each row to worksheet "A+", "A", "B+", etc. depending on the value in column "M" of "Sheet1".
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    12-28-2011
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Copy a range based on a cell value

    Leith,

    Thank you very much works like a charm

+ 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