+ Reply to Thread
Results 1 to 6 of 6

Delete row based on criteria

  1. #1
    Forum Contributor
    Join Date
    08-23-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    404

    Delete row based on criteria

    Morning all,

    I have attached an example worksheet. Sheets 1 and 2 show you how my data is now.

    To explain, based on the name column ('B') I would like the code to delete the ENTIRE ROW when a person only features on either sheet 1 or 2. In the attached the person called 'Jo' would be deleted from Sheet 1 because she only features on Sheet 1 and not Sheet 2.

    So if a person is present on both sheets then they are left alone. The spelling of each name will always be correct but the list of names may be in different orders (as they are in sheet 1 and 2 in the example).

    Thanks ExampleForum.xls
    Last edited by D_N_L; 11-04-2011 at 10:00 AM. Reason: SOLVED

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Delete row based on criteria

    Use this code - Since you have only mentioned delete from sheet1, i have not deleted row 2 from Sheet 2.
    Please Login or Register  to view this content.
    Thx to another fellow forum genius who had originally given me this code.

  3. #3
    Forum Contributor
    Join Date
    08-23-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    404

    Re: Delete row based on criteria

    Thanks man!!! rep added.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Delete row based on criteria

    Thank you....you can mark it solved if your issue is resolved.

  5. #5
    Forum Contributor
    Join Date
    08-23-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    404

    SOLVED Delete row based on criteria

    tHIS IS SOLVED

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Delete row based on criteria

    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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