If and statements
I would like to create a formula that will check the “MISSED” box if the “# OF VISITS LW” is less than the “Tx PLAN” number. But I would like to have the “# OF VISITS TW” supersede the prior. For example, If the “# OF VISITS TW” is equal to or greater than the “Tx PLAN” number, the checkbox would be unchecked or if the “# OF VISITS TW” is less than “Tx PLAN”, it remains checked.
Best Answer
-
Hi! Try this formula:
=IF([# OF VISITS TW]@row >= [Tx PLAN]@row, false, IF([# OF VISITS TW]@row < [Tx PLAN]@row, true, IF([# OF VISITS LW]@row < [Tx PLAN]@row, true)))
Answers
-
Hi! Try this formula:
=IF([# OF VISITS TW]@row >= [Tx PLAN]@row, false, IF([# OF VISITS TW]@row < [Tx PLAN]@row, true, IF([# OF VISITS LW]@row < [Tx PLAN]@row, true)))
-
Thank you Julie! That was perfect.
-
The formula needs to be altered where if the patient is checked for Troubled there should not be a check for Missed. I tried changing the formula but it did not work.
=IF([# OF VISITS TW]@row >= [Tx PLAN]@row, false, IF([# OF VISITS TW]@row < [Tx PLAN]@row, true, IF([# OF VISITS LW]@row < [Tx PLAN]@row, true)))
-
Hi @efleming
You can add another IF statement to your formula, but make sure this is the first one for it to look at:
=IF([TROUB.]@row = 1, 0,
So something like:
=IF([TROUB.]@row = 1, 0, IF([# OF VISITS TW]@row >= [Tx PLAN]@row, false, IF([# OF VISITS TW]@row < [Tx PLAN]@row, true, IF([# OF VISITS LW]@row < [Tx PLAN]@row, true))))
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!