Hello!
I am trying to figure out how to add more than one option for CONTAINS.
Here is what I currently have, I definitely have a very low understanding of the logic for formulas:
CONTAINS([Day Notes], “crock” ) CONTAINS([Day Notes], “usb”) CONTAINS ([Day Notes], “trade”)
It doesn’t need to contain all phrases, just one or the other or multiple. I’m using this for a format rule.
Yah I took a look at this, I still can’t figure out how to combine OR with CONTAINS.
Can you please give an example of how to give multiple options in a CONTAINS expression?
Thanks <3
@WillA108 OR(([Color] = "Red"), ([Color] = "Yellow"), ([Color] = "Green")) : TRUE if the Color column value is any of Red , Yellow , or Green . Equivalent to IN([Color], {"Red" "Yellow", "Green"}) . See also IN().
I’ve tried CONTAINS([Day Notes], “crock” ) OR (“usb”) OR (“cooler”)
and i have tried CONTAINS([Day Notes], “crock” ) OR CONTAINS([Day Notes], “usb")
Also CONTAINS([Day Notes], “crock” ) OR ([Day Notes], “usb”)
and also CONTAINS([Day Notes], “crock” OR “usb” OR “cooler”)
I appreciate the responses but this is really all greek to me, as it doesn’t show me how to combine it with CONTAINS.
For example I tried CONTAINS([Day Notes], “crock” )OR([Day Notes] = “usb”), ([Day Notes]= “cooler”)) and it will only light up daynotes which contain “crock” still when I made the formatting to turn the sentence green.
The problem is not with your NOT(CONTAINS(…)) expression, it’s where you’re using it. Please post a screenshot of the entire expression and error message.
It would be nice though to have a separate table with the restricted words and just reference them.
There is another expression offered by a friend, that works with a separate table, but there’s some limitation where punctuation affects the outcome because it’s not using Contains()
COUNT(INTERSECT(SPLIT([Comment], " "), Not Accepted[Word])) = 0
If you understand it and could offer feedback, it would be appreciated!