+ Reply to Thread
Results 1 to 5 of 5

Delete rows with multiple conditions

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Delete rows with multiple conditions

    Hi,
    I have the below macro which is deleting the entire rows if the given words are found.

    I have a problem, I have a word which starts with Buyer and I want to delete the entire row but I have another row which should not be deleted which has a word Buyer in it.

    I mean Cell A2 = Buyer then delete entire row (which is already in the macro)
    Cell A20 = Buyer NCI XAS should not delete that row (which is not working as per the macro) so please edit the macro and help me.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Delete rows with multiple conditions

    Upload a copy of your workbook.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Delete rows with multiple conditions

    Please find the attached sample file
    Attached Files Attached Files

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Delete rows with multiple conditions

    Give this a try

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Delete rows with multiple conditions

    Its wroking. Thanks

+ 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