+ Reply to Thread
Results 1 to 4 of 4

How to exclude a cell value from a table filter ?

  1. #1
    Registered User
    Join Date
    01-08-2016
    Location
    Toronto
    MS-Off Ver
    2015
    Posts
    7

    How to exclude a cell value from a table filter ?

    So i have a filtered table and a cell E1 with a city. How to exclude a cell value (E1) from a table filter ? Lets assume E1 is New York.

    I can use

    ActiveSheet.Range("$A$1:$D$200").AutoFilter Field:=2, Criteria1:="<>New York"

    and It works BUT i have to change it every time. I tried AutoFilter Field:=Range"<>E1".Value but it doesn't work

    Help me to figure it out please
    Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: How to exclude a cell value from a table filter ?

    Please use Code Tags. Untested, but try:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-08-2016
    Location
    Toronto
    MS-Off Ver
    2015
    Posts
    7

    Re: How to exclude a cell value from a table filter ?

    Works well, Thanks!!

  4. #4
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: How to exclude a cell value from a table filter ?

    You're welcome.

+ 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. Add EXCLUDE Option in table to Exclude from Solver
    By lbofbb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-17-2015, 09:05 AM
  2. Auto Filter Exclude items
    By exclusiveicon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-03-2014, 12:16 PM
  3. Filter to exclude
    By tuesbien in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-23-2014, 05:35 PM
  4. Copy values from Pivot Table but exclude certain data based on cell value
    By FellowofJest in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-04-2013, 04:59 AM
  5. [SOLVED] how to exclude a criteria using auto filter
    By kadasanis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-21-2013, 02:12 PM
  6. Set filter to EXCLUDE values rather than include them
    By Uther_d_dragon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2013, 10:54 AM
  7. Change Pivot table Filter Based on Cell Value *Multiple Filter items* Possible?
    By Flydd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2012, 06:57 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