formula question
I have a formula that is working fine, but i want to squeeze in one more logic variable. I am looking at thousands of rows of data. I want the formula to count any row with column value of [stay level] of "medical" or "emergency medical", then for the five facilities listed i also want the formula to also bring in all rows with a [stay level] of "Observation".
=IF(OR(AND([Facility Name]@row = "Corpus", [Stay Level]@row = "Observation"), AND([Facility Name]@row = "Doctors Hospital", [Stay Level]@row = "Observation"), AND([Facility Name]@row = "Medical Center", [Stay Level]@row = "Observation"), AND([Facility Name]@row = "Methodist Center", [Stay Level]@row = "Observation"), AND([Facility Name]@row = "South Health", [Stay Level]@row = "Observation"), [Stay Level]@row = "Medical"), 1, 0)
Best Answer
-
Thanks. Completed this by adding a helper row to combine the medical and emergency medical stay levels into one value.
Answers
-
Thanks. Completed this by adding a helper row to combine the medical and emergency medical stay levels into one value.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!