If Contains Contact Cell
I am trying to write what seems like a basic formula, but I'm not getting the expected result. I would like to reference a Contact Cell column with an If(Contains) formula. The basic formula I have written looks like this:
If(Contains("John Smith", [Received By]@row), 1, 2). The result is always returning false ("2") even when the contact of "John Smith" is present. I can create a straightforward "IF" statement, but the contains portion is not working.
Answers
-
Try switching it to the email address. What happens then?
Or possibly try an IF(HAS()) instead. IF(HAS([Received By]@row, "John Smith"),1,2)
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with!
-
Thanks @Michelle Choate 2 , the "Has" formula worked. I had previously tried the email reference, but that does not work.
-
Hi! I think you could cut out the "Contains" function and use =IF([Received By]@row="John Smith", 1, 2)
Does that work for you?
-
It wasn't working because the CONTAINS function just doesn't work well in general with contact type columns.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 413 Global Discussions
- 221 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!