+ Reply to Thread
Results 1 to 8 of 8

advanced filter three conditions does not contain, between and contain

  1. #1
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    advanced filter three conditions does not contain, between and contain

    Hi
    Can anyone help I have a database that I want to query with three conditions using advanced filter, see attached doc, Im not sure what to put in the filters for each to get the desired result
    QUERY
    Show venues that meet all three criteria
    Criteria 1
    SHOW VENUES THAT ARE NOT IN THE FOLLOWING CITIES: ARBROATH, DERBY, NEWPORT
    Criteria 2
    Only show venues with capacities in either of the three rooms that are between 100 and 200 but include blanks
    Criteria 3
    Only show venues that have type T or blank
    result should be
    Brunton Theatre

    Thanks in advance
    Dave
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: advanced filter three conditions does not contain, between and contain

    This is probably best accomplished using helper columns.

    I wasn't too sure how flexible you wanted the venues to be, so I put them in a table on sheet 2 and used ==ISNA(MATCH([@CITY],Table_Venue[Venue],0)) which yields TRUE if the city is not on this list.

    Also, I am not quite sure what you mean by if a room capacity is blank that you want to accept it. I hope I interpreted it OK. I used a series of helper columns to get the formula in the rooms column. I substituted the pieces back until the formula is defined only in terms of the three rooms.

    For the answer, filter on true in the Filter Column.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Re: advanced filter three conditions does not contain, between and contain

    Hi Dflak,
    Thanks for your help with this, is there a way to configure so as not to show blanks on the rooms?

    Dave

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: advanced filter three conditions does not contain, between and contain

    Hi,

    You can also do this with an advanced filter using a criteria formula, but can you elaborate on what you mean by "include blanks"? Based on what you say the result should be, I think you mean to treat blanks as 0 values in the room capacity, but Dorking Hall would seem to meet your criteria too?
    Last edited by xlnitwit; 11-10-2016 at 07:02 AM.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: advanced filter three conditions does not contain, between and contain

    I have the same question: what do you mean by "not to show blanks on the rooms?" If a cell for the room size is blank what do I do with it? Does being blank mean that the room is OK and should be included for consideration or does being blank mean ignore this cell?

  6. #6
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Re: advanced filter three conditions does not contain, between and contain

    Hi
    Thanks for replying, I have had to change the criteria slightly to get the desired results,

    New criteria is
    Show venues that meet all three criteria
    Criteria 1 - Are not in the following cities : Arbroath, Derby, Newport
    Criteria 2 - Only show venues with capacities in either of the three rooms that are between 100 and 200 venues with blank capacities in all three rooms should not be included
    Criteria 3 - Only show venues that have Type T or ALL

    The result should be
    Brunton Theatre and Dorking Hall

    I often have queries where there are 20+ cities that I should not include, so the quickest solution for listing this aspect would be really good
    Thanks in advance
    dave
    Attached Files Attached Files

  7. #7
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: advanced filter three conditions does not contain, between and contain

    Here is your file using an advanced filter with a formula criteria range and a list of cities that you can adjust as required.
    Attached Files Attached Files

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,463

    Re: advanced filter three conditions does not contain, between and contain

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    http://www.excelguru.ca/forums/showt...en-and-contain


    After 48 posts you should know this. You're lucky this forum is indulgent with your kind of posters
    Last edited by Pepe Le Mokko; 11-18-2016 at 07:19 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. [SOLVED] conditions for advanced filter
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 08-29-2015, 10:24 AM
  2. Advanced Filter : One Criteria Cell Breaks the Filter - Returns Only Headers
    By PaulGW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2014, 10:06 AM
  3. Replies: 5
    Last Post: 12-19-2013, 06:58 AM
  4. advanced filter - button to re apply advanced filter across multiple sheets
    By motmac87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2013, 11:16 PM
  5. Delete Rows hidden by either Auto Filter and Advanced Filter
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:29 AM
  6. Advanced filter with some conditions & copy filtered value to next sheet
    By sudhirkumar3429 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2012, 05:46 AM
  7. advanced filter a range:Advanced Filter function
    By Il Principe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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