+ Reply to Thread
Results 1 to 3 of 3

Delete rows based on condition

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    2

    Delete rows based on condition

    Hello everyone..

    Just wanted to ask for your help.. I have here a report where in I would like to delete the rows in which the specific cell did not meet the condition.

    Example:
    In Row 1, if Cell B to C is equal to any of the values listed in Cell M then row 1 will retain.
    In Row 2, if cell B-C does not match to any of the values listed in Cell M then row 2 will be removed and so on...

    I have attached a sample..


    Hope you can help me with this..
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Delete rows based on condition

    Hi elocin17

    Welcome to the Forum!

    Will B and C always be populated? Will M always be populated?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    01-11-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Delete rows based on condition

    Hello Jaslake.. Thank you!

    M will always be populated. It serves as the legend.

    B and C will be based from my generated report. So I will be putting a series of data in columns B and C. Then if it matches the data in M then that row will retain else it will be rmoved.

    Am I making sense or do i Confused you?

+ 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