Hello Smartsheet Community,
I am attempting to make a project health show either green, yellow, red, blue or blank based on the following criteria, some strings seem to work but I seem to have the biggest problem with the selections of "0%", "100%" and making it blank if one of the sources is blank:
Green:
- If Project percent complete is 100 % - can't get that to work, tried IF([Project percent Complete]@row <> "100%", "Green", and IF([Project percent Complete]@row = "100%", "Green",
- If Project percent complete is 0 and proposed end date is 30+ days away - not working
- If Project percent complete is any selection 1-99% (1-25%, 26-50%, 51-79%, or 80-99%) and proposed end date is 11+ days away - working
Yellow:
- If Project percent complete is 0% and proposed end date is in the next 11-29 days - not working
- If Project percent complete is any selection 1-99% (1-25%, 26-50%, 51-79%, or 80-99%) and Proposed end date is 3-10 days away - working
Red:
- Project percent complete is 0% and proposed end date is in the next 10 days or the past - not working
- If Project percent complete is any selection 1-99% (1-25%, 26-50%, 51-79%, or 80-99%) and Proposed end date is in the next 2 days or past - working
Blue:
- If status is approved and stage of project is closed - working
Blank:
- If Project percent complete is blank OR proposed end date is blank - this seems to work only for proposed end date and if project percent complete is 0%??? Tried IF(OR(ISBLANK([Project percent Complete]@row), ISBLANK([Proposed End Date]@row)), "",
- If status is not approved and stage of project is closed (other status fields include Submitted, Denied, Postponed Temporarily, Postponed Indefinitely) - working
Here's the mass that seems to be working for 0%-99%, however, if proposed end date is blank, it shows red when 1-25%, 26-50%, 51-79%, or 80-99% are selected.
=IF(AND(Status@row = "Approved", [Stage of Project]@row = "Closed"), "Blue", IF(AND(Status@row <> "Approved", [Stage of Project]@row = "Closed"), "", IF(AND([Project percent Complete]@row = "1-25%", [Proposed End Date]@row - TODAY() > 10), "Green", IF(AND([Project percent Complete]@row = "1-25%", [Proposed End Date]@row < TODAY(11), [Proposed End Date]@row >= TODAY(3)), "Yellow", IF(AND([Project percent Complete]@row = "1-25%", [Proposed End Date]@row - TODAY() < 3), "Red", IF(AND([Project percent Complete]@row = "26-50%", [Proposed End Date]@row - TODAY() > 10), "Green", IF(AND([Project percent Complete]@row = "26-50%", [Proposed End Date]@row < TODAY(11), [Proposed End Date]@row >= TODAY(3)), "Yellow", IF(AND([Project percent Complete]@row = "26-50%", [Proposed End Date]@row - TODAY() < 3), "Red", IF(AND([Project percent Complete]@row = "51-79%", [Proposed End Date]@row - TODAY() > 10), "Green", IF(AND([Project percent Complete]@row = "51-79%", [Proposed End Date]@row < TODAY(11), [Proposed End Date]@row >= TODAY(3)), "Yellow", IF(AND([Project percent Complete]@row = "51-79%", [Proposed End Date]@row - TODAY() < 3), "Red", IF(AND([Project percent Complete]@row = "80-99%", [Proposed End Date]@row - TODAY() > 10), "Green", IF(AND([Project percent Complete]@row = "80-99%", [Proposed End Date]@row < TODAY(11), [Proposed End Date]@row >= TODAY(3)), "Yellow", IF(AND([Project percent Complete]@row = "80-99%", [Proposed End Date]@row - TODAY() < 3), "Red", IF(AND([Project percent Complete]@row = "0%", [Proposed End Date]@row - TODAY() > 29), "Green", IF(AND([Project percent Complete]@row = "0%", [Proposed End Date]@row - TODAY() < 11), "Red", IF(AND([Project percent Complete]@row = "0%", [Proposed End Date]@row > TODAY() + 10, [Proposed End Date]@row < TODAY() + 30), "Yellow", IF(OR(ISBLANK([Project percent Complete]@row), ISBLANK([Proposed End Date]@row)), ""))))))))))))))))))
Appreciate any help out there!