+ Reply to Thread
Results 1 to 4 of 4

Using AutoFilter Criteria1 for list of NOT included

  1. #1
    Registered User
    Join Date
    09-12-2011
    Location
    Phoenix, Arizona, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Using AutoFilter Criteria1 for list of NOT included

    I have a list of addresses from which I need to exclude those from about 20 ZIP Codes. Is it posible to use the AutoFilter Criteria1 for that purpose. Perhaps an Array of NOT included ZIPcodes?
    If not, are there any other suggestions?
    Thanks,
    Frank

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Using AutoFilter Criteria1 for list of NOT included

    No, you can only filter 2 not equal criteria using AutoFilter.

    The alternative is to use VBA to simulate autofilter to hide rows; using this method, you can have unlimited not equal criteria.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Using AutoFilter Criteria1 for list of NOT included

    Use a blank column next to your data and put a formula in there which looks to see if the zip code on a particular row is one of your group to be ignored, e.g. with a formula like this in row 2:

    =IF(ISNUMBER(MATCH(D2,$X$1:$X$20,0)),"ignore","okay")

    where column D contains the zip codes for your addresses and X1:X20 contains the zip codes to be excluded. Copy this down, then filter on this column and select "okay".

    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Using AutoFilter Criteria1 for list of NOT included

    Maybe look into advanced filter. Look my example in the attachment.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Marking if one of a pair included in list
    By Cunner in forum Excel General
    Replies: 8
    Last Post: 04-09-2014, 04:48 AM
  2. Autofilter criteria is only picking up Criteria1
    By cath1509 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2013, 07:18 PM
  3. AutoFilter: Setting Criteria1 to an Array for "Any of these words" type filtering
    By sheldonbeswift in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-16-2013, 10:57 AM
  4. [SOLVED] How to restore autofilter Criteria1 that is an array of strings
    By qc03506 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2013, 08:50 AM
  5. Autofilter Method Query - Criteria1: <> Not Equal
    By Orson100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2010, 12:01 PM
  6. Countif included within a list?
    By di22y in forum Excel General
    Replies: 3
    Last Post: 09-04-2009, 08:44 AM
  7. Replies: 1
    Last Post: 07-28-2006, 11:35 AM

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