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
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!