+ Reply to Thread
Results 1 to 2 of 2

Filtering with a value range and a third value

  1. #1
    Registered User
    Join Date
    11-30-2008
    Location
    Spain
    MS-Off Ver
    2016
    Posts
    11

    Filtering with a value range and a third value

    I have a macro that filters a range with the following criteria:
    .AutoFilter Field:=1, Criteria1:=">=1", Operator:=xlAnd, Criteria2:="<=10"

    I would like to add another criteria: empty values come with a "-" character. I do not want to change my worksheet and replace "-" by "0".

    Is there a way to filter my range for values between 1 and 10, or equal to "-"?

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Filtering with a value range and a third value

    You can only use two creteria with the filter function.

    You can use Array, but will only take lists of values, but not comparison.

    The other option would be to use two filters, ie first filter using 2 creteria, clear the filer and do again with the last creteria.
    Last edited by AB33; 08-30-2018 at 07:57 AM.

+ 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. Filtering between date range
    By BigTP in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2018, 03:33 PM
  2. [SOLVED] Filtering A Range Of Dates
    By M7A0S8T8E5R in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2016, 11:56 AM
  3. Filtering data range
    By andrewc in forum Excel General
    Replies: 3
    Last Post: 04-18-2014, 05:26 PM
  4. Filtering a Range
    By andrewc in forum Excel General
    Replies: 3
    Last Post: 11-28-2013, 09:25 AM
  5. Filtering a range of cells, based on another range
    By MBTDavid in forum Excel General
    Replies: 1
    Last Post: 09-02-2013, 04:27 PM
  6. [SOLVED] Filtering on date range, but capturing items that 'straddle' the range
    By Kite3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2013, 05:38 AM
  7. Filtering a range.
    By jal1 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-29-2007, 06:38 PM

Tags for this Thread

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