Formula Using IFS, Contains, and AND
I am trying to troubleshoot the following formula:
=IFS((CONTAINS("Shadow", {GI Clinic 3 Session})), AND([Provider Last Name]3), "Scheduled")
Logic:
If the cross-referenced sheet (GI Clinic 3 Session) contains the word "Shadow" and the Provider Last Name is the name in cell 3 (current sheet), then say "Scheduled."
Everything seems to work up until "Scheduled." Any help is appreciated!
Best Answer
-
Ok. You would want to use a COUNTIFS to count how many times the provider name and session type of "Shadow" are in the same row then use an IF statemet to say that if the count is higher than zero, output "Scheduled".
=IF(COUNTIFS({Source Sheet Provider Name Column}, [Provider Last Name]@row, {Source Sheet Session Type Column}, "Shadow") > 0, "Scheduled")
Answers
-
Are you able to provide a screenshot of the source and target sheets with sensitive data removed, blocked, or replaced with "dummy data" as needed?
-
Hi Paul, thanks for your quick response. Please see the screenshots below:
Main Sheet:
Reference Sheet:
-
Ok. You would want to use a COUNTIFS to count how many times the provider name and session type of "Shadow" are in the same row then use an IF statemet to say that if the count is higher than zero, output "Scheduled".
=IF(COUNTIFS({Source Sheet Provider Name Column}, [Provider Last Name]@row, {Source Sheet Session Type Column}, "Shadow") > 0, "Scheduled")
-
That worked, thanks!!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!