IF, OR and AND? Formula issue
Hi, I'm trying to calculate if we're meeting the schedule start date.
The issue I have is if the Schedule Start Date is greater than today's date then it still thinks its completed on time. I think I'm missing AND statement with the formula?
=IF(OR([Actual Start Date]@row = "", [Schedule Start Date]@row < [Actual Start Date]@row), IF([Schedule Start Date]@row < Today@row, "Overdue", "Scheduled"), "On Time")
To summarize what I want the formula to calculate:
- If the actual start date is blank, check to see if the schedule start date is less than today's date = "Overdue", if not its "scheduled" for completion.
- If the actual start date has a date, compare it against the schedule start date, if the date is more than the schedule start date its "overdue", if its before the schedule start date or the same date its "On Time"
Thanks :)
Best Answer
-
Hi @Jack Parry,
Something like this?
=IF(OR(AND([Actual Start Date]@row = "", [Schedule Start Date]@row < TODAY()), [Actual Start Date]@row > [Schedule Start Date]@row), "Overdue", IF(AND([Actual Start Date]@row = "", [Schedule Start Date]@row > TODAY()), "Scheduled", "On Time"))
Example output:
Hope this helps, but I've misunderstood something or you've any problems/questions then just post! 🙂
Answers
-
Hi @Jack Parry,
Something like this?
=IF(OR(AND([Actual Start Date]@row = "", [Schedule Start Date]@row < TODAY()), [Actual Start Date]@row > [Schedule Start Date]@row), "Overdue", IF(AND([Actual Start Date]@row = "", [Schedule Start Date]@row > TODAY()), "Scheduled", "On Time"))
Example output:
Hope this helps, but I've misunderstood something or you've any problems/questions then just post! 🙂
-
Works perfectly! Thanks @Nick Korna :)
-
No problem, happy to help.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!