+ Reply to Thread
Results 1 to 3 of 3

Advanced Filter with "does not contain," combined with "does contain" and "and/or"

  1. #1
    Registered User
    Join Date
    Louisville, KY
    MS-Off Ver
    Microsoft Office 365 ProPlus

    Advanced Filter with "does not contain," combined with "does contain" and "and/or"

    I am trying to automate some filtering in hopes of eventually including the filters in a Macro down the line. I am trying to filter by multiple criteria, as below:

    Column 1: does not contain Plant A, Plant B, Plant C, or Plant D; include all other values
    Column 2: contains either "x" or "y" somewhere in the field

    I am unable to find a good example of Advanced Filters that combines "contains" with "does not contain."


  2. #2
    Forum Expert
    Join Date
    New York
    MS-Off Ver
    Excel 2016 (Windows)

    Re: Advanced Filter with "does not contain," combined with "does contain" and "and/or"

    Excel will only allow two values for its built-in filters. But, you could use a column of formulas for your specific filtering needs - say that your columns are A and B, with data starting in row 2:


    and copy down, then filter that column for TRUE.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Guru shg's Avatar
    Join Date
    The Great State of Texas
    MS-Off Ver
    2003, 2010

    Re: Advanced Filter with "does not contain," combined with "does contain" and "and/or"

    There are only two criteria available for "does not contain." Think you're going to need to put a formula in a column and filter on that.

    =OR(ISNUMBER(SEARCH({"Plant A","Plant B","Plant C"}, A2)))
    Last edited by shg; 11-05-2018 at 01:56 PM.
    Entia non sunt multiplicanda sine necessitate

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. Replies: 1
    Last Post: 01-22-2016, 09:21 AM
  5. Replies: 7
    Last Post: 03-17-2014, 01:51 PM
  6. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  7. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM

Tags for this Thread


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