+ Reply to Thread
Results 1 to 4 of 4

Thread: Autofilter "dead zones"

  1. #1
    Registered User
    Join Date
    02-27-2008
    Location
    Grand Prairie, Texas
    MS-Off Ver
    MS Office 2003 SP3
    Posts
    89

    Autofilter "dead zones"

    Ok, I have a question regarding autofilters and their logic.

    In some large spreadsheets, we have autofiltered data where applying filters in different orders yields different final lists. That is, applying filter A, then B, then C, won't show the same rows as applying C, then B, then A.

    I'm certain that this has to do with the placement of the data in the sheets, and probably with the order in which the columns are presented.

    Does anyone know of a good reference that explains Autofilter data set best pracitices, to avoid getting inconsistent results? Do columns need to be sorted left to right by number of entries, or is the algorithm for ensuring consistent sorting more complicated than that?

    Thanks in advance to anyone who can provide insight or additional info!

    -Adam
    -Adam Hartman
    Mechanical Engineer
    Siemens Industry, Low Voltage Building Technology
    Grand Prairie, TX

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,786

    Re: Autofilter "dead zones"

    if you filter say a on =1 then any values from b or c will be hidden if a<>1
    you need advanced filter using OR criteria
    see http://www.contextures.com/xladvfilter01.html
    if you get stuck come back
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    02-27-2008
    Location
    Grand Prairie, Texas
    MS-Off Ver
    MS Office 2003 SP3
    Posts
    89

    Re: Autofilter "dead zones"

    martindwilson,

    Thanks for the link, but that's not the problem that I have. I get the correct values when I filter A->B->C, so the logical AND in the default filter function is working as desired. If I filter C->B->A, I also get some results, but not the entire set. That is, if I do ABC, I may get 10 results, and that is the complete, accurate set of data matching my filters. If I do CBA, I may get 7 results, all of which were on the original ABC list, but there are also 3 additional results that aren't shown.

    I assume that the logical AND is commutative for autofilters, and so the order of operations shouldn't matter, but I'm finding that it does.

    -Adam
    -Adam Hartman
    Mechanical Engineer
    Siemens Industry, Low Voltage Building Technology
    Grand Prairie, TX

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,786

    Re: Autofilter "dead zones"

    cant be. as each filter is applied it only filters on what's visible
    so filtering by col c first may remove some of column a that you want
    thats why advanced filter exists
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0