Hi everyone,
I am trying to use End Date, Duration, and % Complete to calculate the correct color ball in the status column and I am having trouble combining the statements I believe I need (might be wrong with my basic statements also).
Here is my thinking:
Red – if you are at OR past the end date AND not 100% complete
=IF(AND(TODAY() – [End Date]# >= 0 , IF([% Complete]# < 1 , “Red”)))
Yellow – in danger – less than 75% complete AND the end date is within 25% of the duration
Duration = 20 days
End date is within 5 days LATER
=IF(AND(TODAY() – [End Date]# <= [Duration]#*0.25 , IF([% Complete]# < 0.75 , “Yellow”)))
Green – In process – Less than 100% complete AND end date is further out than 25% of the duration
Duration = 20 days
End date is more than 5 days away
=IF(AND(TODAY() – [End Date]# > [Duration]#*0.25 , IF([% Complete]# < 1 , “Green”)))
Blue – before OR on OR after the end date AND 100% complete
=IF(AND(TODAY()-[End Date]# >= 0 , IF([%Complete]# = 1 , “Blue”)))
Combine all these statements:
=IF(AND(TODAY() – [End Date]# >= 0 , IF([% Complete]# < 1 , “Red” , IF(AND(TODAY() – [End Date]# <= [Duration]#*0.25 , IF([% Complete]# < 0.75 , “Yellow” , IF(AND(TODAY() – [End Date]# > [Duration]#*0.25 , IF([% Complete]# < 1 , “Green” , IF(AND(TODAY()-[End Date]# >= 0 , IF([%Complete]# = 1 , “Blue”))))))))))))
Another question is, can I use a calculation of Duration for a less than or equal to statement?
Thanks in advance for your help.
-matt