Performing Contains function in Advanced Filter

Comments

5 comments

  • Alan

    Hi Matthew,

    CONTAINS(#Pizza; "Pepperoni") || CONTAINS(#Pizza; "Ham")

    Will find if your #Pizza contains Pepperoni or Ham.

    If you want both Pepperoni and Ham you would do:

    CONTAINS(#Pizza; "Pepperoni") && CONTAINS(#Pizza; "Ham")

    If you don't want either Pepperoni or Ham:

    NOT(CONTAINS(#Pizza; "Pepperoni")) || NOT(CONTAINS(#Pizza; "Ham"))

    If you don't want Pepperoni and Ham to appear together:

    NOT(CONTAINS(#Pizza; "Pepperoni")) && NOT(CONTAINS(#Pizza; "Ham"))

     

    1
    Comment actions Permalink
  • Matthew Burns

    Hello Alan,

    What a speedy response!

    Thank you! exactly what I was looking to accomplish!

     

     

    0
    Comment actions Permalink
  • siva prasad

    Hi 

     

    Can we refer column from other sheet for filter condition 

     

    0
    Comment actions Permalink
  • siva prasad

    Hi 

     

    Can we refer column from other sheet for filter condition 

     

    0
    Comment actions Permalink
  • Joel Stewart

    siva, no, the filters must reference columns within the sheet. If you need to reference data from another sheet, bring it into the working sheet as a first step before adding the filter on that criterion.

    0
    Comment actions Permalink

Please sign in to leave a comment.