NEED HELP WITH FORMULA: Status Based on Target End Date, Actual End Date and "At Risk" flag
So this is my current formula:
=IF(OR([Task Name]@row = "Initiative/Program Overview", Program@row = "Initiative/Program Overview"), "", IF(AND(ISDATE([Actual End Date]@row), [Actual End Date]@row <= [Target End Date]@row), "Completed On Time", IF([Actual End Date]@row > [Target End Date]@row, "Completed Late", IF(OR(AND(ISBLANK([Target End Date]@row), ISBLANK([Actual End Date]@row)), ([Target Start Date]@row > TODAY())), "Not Started", IF(AND(ISBLANK([Actual End Date]@row), [Target End Date]@row < TODAY()), "Behind", IF(AND(ISBLANK([Actual End Date]@row), ([Target End Date]@row >= TODAY(8))), "On Track", "At Risk"))))))
This formula is working FANTASTIC, but a few of my team members have brought it to my attention that they need the flexibility to flag specific tasks as "At Risk". In other words they want to be able to override specific tasks that meet specific conditions.
The current parameters automatically updates the Status based on the dates in the Target End Date and Actual End Date columns as follows:
- If the Actual End Date is less than or equal to the Target End Date, Status = Completed On Time
- If the Actual End Date is greater than than the Target End Date, Status = Completed Late
- If there is no Target Start Date and no Actual End Date, Status = Not Started
- If the Target Start Date is greater than today's date, Status = Not Started
- If there is no Actual End Date, AND Target End Date is over 8 days away, Status = On Track
- If there is no Actual End Date, AND Target End Date is less than 8 days away, Status = At Risk
- If there is no Actual End Date, AND Target End Date is greater than today, Status = Behind
I need to add some additional parameters based on a new column called At Risk:
- If there is no Actual End Date, AND Target End Date is over 8 days away AND At Risk flag is checked, then Status is = At Risk
- If there is no Target Start Date and no Actual End Date AND At Risk flag is checked, then Status is = At Risk
- If the Target Start Date is greater than today's date AND At Risk flag is checked, then Status is = At Risk
I have no clue how to modify this formula to make this work.. I could use some smarter folks than me to help. 😂
Answers
-
Use the words in your bottom bullets as hints to formulate the formula.
=IF([At Risk Flag Column]@row = 1, IF(OR(AND(bullet 1 criteria), AND(bullet 2 criteria), AND(bullet 3 criteria)), "At Risk", your original formula here )
Does that help?
-
No.. sorry.. I really am not good at these formulas.. Too much like coding, and when it gets complex like this, it's a LOT over my head.. but thanks for trying to help..
-
No it doesn't help.. sorry.. I hate to sound "speshul"😂 but I don't get it.. These formulas are not my strong suit. Too much like programming and that is totally not my jam. Thanks anyway for your attempt to help the clueless..😂
-
No worries! This is what community is for, to help each other out. 😃
Ok, give this one a try...
=IF([At Risk]@row = 1, IF(OR(AND([Actual End Date]@row > TODAY(8), [Target End Date]@row > TODAY(8)), AND(ISBLANK([Target End Date]@row), ISBLANK([Actual End Date]@row)), AND([Target End Date]@row > TODAY())), "At Risk", IF(OR([Task Name]@row = "Initiative/Program Overview", Program@row = "Initiative/Program Overview"), "", IF(AND(ISDATE([Actual End Date]@row), [Actual End Date]@row <= [Target End Date]@row), "Completed On Time", IF([Actual End Date]@row > [Target End Date]@row, "Completed Late", IF(OR(AND(ISBLANK([Target End Date]@row), ISBLANK([Actual End Date]@row)), ([Target Start Date]@row > TODAY())), "Not Started", IF(AND(ISBLANK([Actual End Date]@row), [Target End Date]@row < TODAY()), "Behind", IF(AND(ISBLANK([Actual End Date]@row), ([Target End Date]@row >= TODAY(8))), "On Track", "At Risk"))))))))
-
Hmmm well I
You are a peach! So I tried this and got the following errors:
-
Okay.. So I got some sleep (was working on fumes! 😂) and carefully went through all of my column names and found the discrepancy! I modified the formula as follows:
=IF([At Risk]@row = 1, IF(OR(AND([Actual End Date]@row > TODAY(8), [Target End Date]@row > TODAY(8)), AND(ISBLANK([Target End Date]@row), ISBLANK([Actual End Date]@row)), AND([Target End Date]@row > TODAY())), "At Risk", IF(OR([Task Name]@row = "General Information", Site@row = "General Information"), "", IF(AND(ISDATE([Actual End Date]@row), [Actual End Date]@row <= [Target End Date]@row), "Completed On Time", IF([Actual End Date]@row > [Target End Date]@row, "Completed Late", IF(OR(AND(ISBLANK([Target End Date]@row), ISBLANK([Actual End Date]@row)), ([Start Date]@row > TODAY())), "Not Started", IF(AND(ISBLANK([Actual End Date]@row), [Target End Date]@row < TODAY()), "Behind", IF(AND(ISBLANK([Actual End Date]@row), ([Target End Date]@row >= TODAY(8))), "On Track", "At Risk"))))))))
Now when I check the "At Risk" flag, the status shows "At Risk". However, if I uncheck the "At Risk" flag, there is no value in status. (see screenshots)
My expectation for my test tasks is that the status will show "On Track" or "Not Started" (based on the original formula) unless the "At Risk" flag is checked.
Basically the "At Risk" flag allows the PM to override the status for tasks where the calculated status is either "On Track" or "Not Started" and flag them as "At Risk". For any other calculated statuses (Completed on Time, Completed Late, At Risk, Behind) checking the "At Risk" flag will have no impact on the calculated status.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!