How to use AND and OR in an IF function?
So the answer has to be Operator plus one of the other 3 "OR" options.
IF [Operator or Engineer]@row = "Operator" AND either [Shift/Available]@row = "1-Grave" or [Shift/Available]@row = "3-Swing", or [On or Off Site]@row = "Off site" then check the box.
=IF(AND(OR([Shift/Available]@row = "1-Grave", [Shift/Available]@row = "3-Swing", [On or Off Site]@row = "Off site")),[Operator or Engineer]@row = "Operator",1,0)
Please help me to figure how to correctly write this formula.
Best Answer
-
Try this:
=IF(AND([Operator or Engineer]@row = "Operator", OR([Shift/Available]@row = "1-Grave", [On or Off Site]@row = "Off Site", [Shift/Available]@row = "3-Swing")), 1)
Answers
-
Try this:
=IF(AND([Operator or Engineer]@row = "Operator", OR([Shift/Available]@row = "1-Grave", [On or Off Site]@row = "Off Site", [Shift/Available]@row = "3-Swing")), 1)
-
Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K 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
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!