How do you set a flag status if a date is in the past and status does not equal a certain criteria?

Hello! I’m having trouble getting a flag to turn on if my Production Wraps column date is in the past and the status is NOT “wrapped” or “wrapped/aired”. Here’s the formula I’m trying to use but am getting #incorrect. Any suggestions?
=IF(AND([Production Wraps]@row > TODAY(), OR(Status@row <> "Wrapped", Status@row <> "Wrapped/Aired")), 1, 0)
Best Answer
-
Hi @Will C ,
I'm not sure why you are getting #incorrect because your formula seems syntactically correct. It could be that you have a non-date in a date field?
Having said that, if I'm reading your requirement correctly, that formula would not give the desired result. Try this and see if it's the results you are looking for.
=IF(AND([Production Wraps]@row < TODAY(), Status@row <> "Wrapped", Status@row <> "Wrapped/Aired"), 1, 0)
Hope that helps,
Dave
Answers
-
Hi @Will C ,
I'm not sure why you are getting #incorrect because your formula seems syntactically correct. It could be that you have a non-date in a date field?
Having said that, if I'm reading your requirement correctly, that formula would not give the desired result. Try this and see if it's the results you are looking for.
=IF(AND([Production Wraps]@row < TODAY(), Status@row <> "Wrapped", Status@row <> "Wrapped/Aired"), 1, 0)
Hope that helps,
Dave
-
@DKazatsky2 YES! Thank you so much!!!
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!