+ Reply to Thread
Results 1 to 2 of 2

displaying data that does not meet criteria

  1. #1
    Registered User
    Join Date
    11-04-2005
    Posts
    10

    displaying data that does not meet criteria

    Is there a way (in VBA) to display/filter data that does NOT meet a list of criteria. Autofilter only lets me do 2 conditions, I have about 30. Bottom line is I want to delete all rows that don't belong. I know what should belong but don't have a list of what doesn't. Thanks.

  2. #2
    Bob Phillips
    Guest

    Re: displaying data that does not meet criteria

    What you could do is to create a list of all valid criteria, and then add a
    formula to check if an item is in that list. For instance, the list is in
    column A, valid criteria in column J, so in B2 add a formula of

    =MATCH(A2,J:J,0)

    Then AUtofilter column B, and filter on the #N/A values, and delete the
    visible rows.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "jerrystan" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a way (in VBA) to display/filter data that does NOT meet a list
    > of criteria. Autofilter only lets me do 2 conditions, I have about 30.
    > Bottom line is I want to delete all rows that don't belong. I know what
    > should belong but don't have a list of what doesn't. Thanks.
    >
    >
    > --
    > jerrystan
    > ------------------------------------------------------------------------
    > jerrystan's Profile:

    http://www.excelforum.com/member.php...o&userid=28573
    > View this thread: http://www.excelforum.com/showthread...hreadid=497694
    >




+ 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