Hello!
I am working on a column formula for a project plan where the RYGG ball and Task Status will automatically be updated based on the % complete and the due date. What I'm trying to solve for is:
- if % complete = 0 and start date is today or in the future, then stage is grey and status is "not started"
- if % complete = 1-99 and due date is today or in the future, then stage is green and status is "in progress"
- if % complete = 0-99 and due date is in the past, then stage is red and status is "late"
- if % complete = 100 then stage is green and status is "completed"
Here is the formula I've been working on. I'm almost there, or at least I got to unparseable. What am I missing? Any help would be appreciated!
=IF(COUNT(ANCESTORS([Task Name]@row)) = 0, IF(AND(Start@row = "", Finish@row = ""), "Gray", IF(AND([% Complete]@row < 0.5, Finish@row < TODAY(30)), "Red", IF(AND([% Complete]@row < 0.75, Finish@row < TODAY(30)), "Yellow", IF(OR([% Complete]@row > 0.75, Finish@row >= TODAY(30)), "Green"))))), IF(OR(Stage@row="On Hold", Status@row="Cancelled"),"Gray", IF(AND(Finish@row="", Stage@row=""),"", IF(OR(Stage@row="Complete",Finish@row > TODAY(7)),"Green", IF(TODAY(), Finish@row > 0),"Red",IF(OR(Stage@row="Not Started",Status@row="In Progress",Stage@row=""),"Yellow"))))