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