+ Reply to Thread
Results 1 to 5 of 5

Move a row to another sheet in the same workbook based on the value of one cell

  1. #1
    Registered User
    Join Date
    09-06-2013
    Location
    Hull, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Move a row to another sheet in the same workbook based on the value of one cell

    New to this forum. I realise there have been many of these threads posted previously, but I have been unable to adapt any of the solutions so that they work properly on my document.

    What I need is for an entire row to be moved automatically from Sheet 1 (Live) to one of the other sheets based on what I put in Column K.

    For example, if I enter 'Yes' into K2, I need the entire of row 2 to move to sheet 2 (awarded). If K3 is 'No' then row 3 needs to be moved to Sheet 3 (not awarded). If K4 is 'Withdrawn' then row 4 needs to be moved to Sheet 4 (withdrawn) etc etc.

    It would be preferable if the data could be removed from Sheet 1 (Live) when it is placed in another sheet and placed on the next available row in its new sheet.

    I hope this is clear enough.

    I am using Excel 2010, and have attached a version of my workbook, if that helps.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Move a row to another sheet in the same workbook based on the value of one cell

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Move a row to another sheet in the same workbook based on the value of one cell

    The code is on sheet live, not on standard module. When you change the rows in column K, that row will auto copy in to each respective sheet.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-06-2013
    Location
    Hull, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Move a row to another sheet in the same workbook based on the value of one cell

    Thanks for the swift responses folks, much appreciated. Both solutions work, but since I would ideally like them to be moved automatically, without using a button, AB33 solution fits best.

    I just have one question though. Is it possible to have the rows removed from the Live sheet when they are moved to one of the others? So if I was to put Yes for 'Robin' say, it would only appear in the Awarded sheet and no longer in the Live sheet?

    Thanks a lot

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

    Re: Move a row to another sheet in the same workbook based on the value of one cell

    You can add these lines to AB33's code:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-06-2013
    Location
    Hull, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Move a row to another sheet in the same workbook based on the value of one cell

    Wonderful stuff! Big thanks to all for the swift and extremely helpful responses. Problem Solved.

+ 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. VBA CODE to move rows from one sheet(1) to another sheet(2) based on data in cell
    By fozzieulo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2013, 02:43 PM
  2. [SOLVED] Move sheet to a new workbook based on D3's contents?
    By poptart141 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-04-2013, 02:37 PM
  3. Macro to move rows from one sheet to another sheet based on a cell vaule
    By d55272 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-09-2012, 03:33 PM
  4. Move ranges from workbook to workbook based on cell value
    By SLIDE1 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-05-2012, 10:45 PM
  5. Move Cell cursor to second workbook based on lookup
    By philwilliams80 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-22-2011, 06:09 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