I'm finalizing some formulas in a project worksheet and am so close! I need to edit the formula so that only dates that are in the past will turn the health field red. When I make the change in my formula from TODAY(1) to TODAY(-1), I lose my health symbol entirely. What am I doing wrong?
Here's what I want to accomplish:
- Green: Status column is "Complete" or the End Date is 7 days out or further
- Yellow: Status column is not "Complete" and the End Date is within the next 4 days
- Red: Status column is not "Complete" and the End is in the past
- Blank: Health column is blank if End Date is blank
- If it's a parent row it shows a red health if any of the children rows under it have a red health, yellow health if any of the children rows show yellow (but not a red), and green if all children are green
In addition to figuring out the red symbol for dates in the past, I'd like to exclude "On Hold" and "Cancelled" status selections. If status is On Hold or Cancelled, I'd like to clear the health symbol.
Here's a screen shot
And here's my formula that I can't get to work for red:
=IF(COUNTIF(CHILDREN(Health@row), "Red") > 0, "Red", IF(COUNTIF(CHILDREN(Health@row), "Yellow") > 0, "Yellow", IF(COUNTIF(CHILDREN(Health@row), "Green") > 0, "Green", IF(OR(Status@row = "Complete", [End Date]@row > TODAY(4)), "Green", IF(ISBLANK([End Date]@row), "", IF([End Date]@row < TODAY(1), "Red", IF([End Date]@row >= TODAY(3), "Yellow", "")))))))
Thanks in advance for any help you might be able to provide.