+ Reply to Thread
Results 1 to 6 of 6

Remove multiple rows based on multiple cell's criteria

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    Michigan
    MS-Off Ver
    Office 2010 Pro
    Posts
    12

    Remove multiple rows based on multiple cell's criteria

    I'm looking for an idea on how to make something like this work:

    Column B has a ID number it could have multiple of the same number ex: 1234 in cells B2, B3, B4 etc. At anytime there's upwards of 60,000 ID numbers not all unique.

    Column E has the type of document it would be, O, T, C, I

    I'm looking to show only ID #'s that do not have a O, or T, so if ID # 1234 has 7 document types (7 IDs in column B) if anywhere in column E there's a O or a T I'd like to remove all those ID #'s.

    I'm having trouble figuring out a formula/vba code to remove the rows based on the criteria mentioned above.

    Any help or ideas would be appreciated. Thanks!

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Remove multiple rows based on multiple cell's criteria

    Hi, can you uploaf an example pls... It would be easier to solve your issue
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Registered User
    Join Date
    08-29-2012
    Location
    Michigan
    MS-Off Ver
    Office 2010 Pro
    Posts
    12

    Re: Remove multiple rows based on multiple cell's criteria

    id num.xlsx

    here is basic idea of the file

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

    Re: Remove multiple rows based on multiple cell's criteria

    You can Autofilter on the sheet. In Column E Custom Does Not Equal O and Does Not Equal T. Then Filter Column B for the ID number.

  5. #5
    Registered User
    Join Date
    08-29-2012
    Location
    Michigan
    MS-Off Ver
    Office 2010 Pro
    Posts
    12

    Re: Remove multiple rows based on multiple cell's criteria

    I'm not entirely sure I'm on the same page as you. I tried using the filter and showing cells that are not O or T. The problem is, if there's 7 of the same ID and one of those are O or T then I need it to remove all of that ID not just the O or T row. Unless we're talking about a different filter?

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

    Re: Remove multiple rows based on multiple cell's criteria

    Maybe:

    Please Login or Register  to view this content.

+ 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