+ Reply to Thread
Results 1 to 6 of 6

Autofilter searching only for not equal values

  1. #1
    Forum Contributor
    Join Date
    01-18-2017
    Location
    Poznań, Poland
    MS-Off Ver
    2016
    Posts
    139

    Autofilter searching only for not equal values

    Hi!

    I wrote a simple code in order to:

    1) create AutoFilter on the existed table
    2) show only records than in the third column have value different than #N/D!"

    I have something like this:

    Please Login or Register  to view this content.
    Unfourtunately it does not work and records does not show up. Could you please take a look at the code and indicate the error?

    Thanks in advance!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,623

    Re: Autofilter searching only for not equal values

    Works for me.

    Suggest you post a sample workbook with some typical data.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    01-18-2017
    Location
    Poznań, Poland
    MS-Off Ver
    2016
    Posts
    139

    Re: Autofilter searching only for not equal values

    Example attached. I am referring this to module 'KIA' in VBA editor. The filter is conducted but does not show the right records (only does that are not equal to #N/D!
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,623

    Re: Autofilter searching only for not equal values

    Please Login or Register  to view this content.
    works for me.

    The error code shows up as #N/A in my copy of Excel, not #N/D! ... note that there is no exclamation mark ( ! )

  5. #5
    Forum Contributor
    Join Date
    01-18-2017
    Location
    Poznań, Poland
    MS-Off Ver
    2016
    Posts
    139

    Re: Autofilter searching only for not equal values

    OK. I see, with #N/A works for me as well.

    Thank you!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,623

    Re: Autofilter searching only for not equal values

    You're welcome. Thanks for the rep.

+ 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. Autofilter for multiple not equal values
    By udaya726 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-16-2015, 03:26 PM
  2. [SOLVED] Not equal autofilter question
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2015, 01:00 AM
  3. Replies: 11
    Last Post: 08-02-2014, 02:43 PM
  4. AutoFilter not equal
    By krazyhype19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2014, 08:04 AM
  5. AutoFilter not equal to
    By krazyhype19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2014, 07:56 AM
  6. [SOLVED] COUNTIFS function w/greater than or equal to, and less than or equal to time values
    By AliciaRenee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 03:57 PM
  7. Is there a way to have cell equal to autofilter?
    By Aladdin Sane in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-19-2008, 01:07 PM

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