IF/AND/OR formula help
I currently have a formula that works that checks the red flag if either of these two situations are present; 1. the end date is prior to the start date; or 2. the end date is more than 4 years from the start date. This is the formula:
=IF([Target End Date]@row < [Target Start Date]@row, 1, IF(AND(OR(NETDAYS([Target Start Date]@row, [Target End Date]@row) >= 1461, 1, 0))))
I would like to add an AND condition where the Status@row <> "Closed" so that if either of the previous two conditions are true, but the status is Closed, it will uncheck the red flag. I don't need to see the flag if the item is now closed.
Best Answer
-
The easiest way to do this is to just wrap the whole thing in another IF.
=IF(Status@row <> "Closed", original_formula)
Answers
-
The easiest way to do this is to just wrap the whole thing in another IF.
=IF(Status@row <> "Closed", original_formula)
-
That worked beautifully! Thank you!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!