I have an IF equation that is working fine for me, however, I would like for anything that is past due to be "Red" in the task health bar. Right now, because I have "Grey" as the first clause even if an item is beyond it's end date, if it is "0%" complete it shows as "Grey." How do I adjust the formula to make any thing that is past it's due date "Red?"
I've tried moving things around and I'm sure it's a simple answer, but at this point I'm too brain dead to figure it out.
=IF([% Complete]@row = 0, "Gray", IF(AND(TODAY() > WORKDAY([End Date]@row, -1), [% Complete]@row < 0.9), "Red", IF(AND([% Complete]@row < 0.5, NETWORKDAYS([Start Date]@row, TODAY()) / Duration@row > 0.5), "Yellow", "Green")))