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