Nesting OR into AND?
Hi All,
I'm wondering if it is possible to nest an "OR" statement into an "AND" statement. In short, Task C requires Task A be "complete" and Task B be one of two statuses.
I'd expect it to work something like this (note, I'm using status names to illustrate the point): =IF(AND(StatusA="Complete", OR(StatusB="In Progress", StatusB="Complete")), "In Progress", "Not Started")
This is throwing errors, though. Is there a trick I'm not getting, or
Any help would be greatly appreciated!
Answers
-
It looks fine to me - as long as you have your @row reference in there you should be fine:
=IF(AND(StatusA@row ="Complete", OR(StatusB@row ="In Progress", StatusB@row ="Complete")), "In Progress", "Not Started")
-
You're actually very close. You only need to include a row number or "@row" reference.
=IF(AND(StatusA@row="Complete", OR(StatusB@row="In Progress", StatusB@row="Complete")), "In Progress", "Not Started")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!