Automations "Equals" vs "Contains"

Has anyone experienced issues with automations behaving differently when using "Equals" versus "Contains"? On one of our sheets, I have an automation that only works if "Cost Center equals 302110000". However, if I use "Cost Center contains 302110000", it never triggers. Similarly, a separate automation only works if "Department equals 110". If I use "Department contains 110", it doesn't trigger. The only difference I can see is that the Department is calculated from the Cost Center. Oddly, when using just the filter on the page, it treats them as the same.
Best Answer
-
Hey @Mark K
The CONTAINS function works best for text strings, not numbers. You can switch to the FIND function to mitigate. Remember that the FIND function returns numbers, not T/F so you need FIND(302110000,@cell)>0 as the criteria. Note there are no quotes around the number as to keep the number as numeric and not convert it to a textstring.
Does this work for you?
Kelly
Answers
-
Hey @Mark K
The CONTAINS function works best for text strings, not numbers. You can switch to the FIND function to mitigate. Remember that the FIND function returns numbers, not T/F so you need FIND(302110000,@cell)>0 as the criteria. Note there are no quotes around the number as to keep the number as numeric and not convert it to a textstring.
Does this work for you?
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.9K Get Help
- 429 Global Discussions
- 147 Industry Talk
- 486 Announcements
- 5.2K Ideas & Feature Requests
- 86 Brandfolder
- 151 Just for fun
- 74 Community Job Board
- 498 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!