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
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!