Performing Contains function in Advanced Filter
I am utilizing the Advanced Filter and am unable to figure out how to perform the CONTAINS function that can be used in the Simple Filter.
How would the syntax go in my Advanced Filter if i were to want to see if my column labeled #Pizza
CONTAINS Pepperoni OR CONTAINS Ham
Similarly what would the syntax be for DOES NOT CONTAIN?
Thank you!
-
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"))
Please sign in to leave a comment.
Comments
5 comments