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.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!