IF(OR formula for a Checkbox
I believe this is simple, but I am #UNPARSEABLE error.
I have 5 approval columns with Approved, Denied or Received. I want to check all 5 columns, if any one of the columns has received, then select the checkbox.
Here is what I have now, what's missing?
=IF(OR([Approval1]@row, ="Received", [Approval2]@row, ="Received", [Approval3]@row, ="Received", [Approval4]@row, ="Received", [Approval5]@row, ="Received",),1,0,)
thanks!
Best Answer
-
Hello @LoriLynn Smith on Smartsheet it is best practice to not use OR, just stack the IF statements. Give this a try:
=IF([Approval1]@row = "Received", 1, IF([Approval2]@row = "Received", 1, IF([Approval3]@row = "Received", 1, IF([Approval4]@row = "Received", 1, IF([Approval5]@row = "Received", 1, 0)))))
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
Answers
-
Hello @LoriLynn Smith on Smartsheet it is best practice to not use OR, just stack the IF statements. Give this a try:
=IF([Approval1]@row = "Received", 1, IF([Approval2]@row = "Received", 1, IF([Approval3]@row = "Received", 1, IF([Approval4]@row = "Received", 1, IF([Approval5]@row = "Received", 1, 0)))))
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
-
Awesome, thanks so much! works great!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!