Health Formula

Hello, I'm trying to create a health formula based on the below conditions, but I keep getting an #UNPARSABLE error. Hopefully someone in the community can assist.
RED: If the Expected Project Go Live Date is less than 30 days from today AND the Project Phase is not "Go-Live" or "Complete"
YELLOW: If the Expected Project Go Live Date is less than 60 days from today AND the Project Phase is not "Testing", "Go-Live", or "Complete"
GREEN: If the above conditions are not met OR Project Phase is "Complete"
Best Answer
-
Hi @Nick J try this:
=IF(
Β AND(
Β Β [Expected Project Go Live Date]@row - TODAY() < 30,
Β Β NOT(OR(
Β Β Β [Project Phase]@row = "Go-Live",
Β Β Β [Project Phase]@row = "Complete"
Β Β ))
Β ),
Β "RED",
Β IF(
Β Β AND(
Β Β Β [Expected Project Go Live Date]@row - TODAY() < 60,
Β Β Β NOT(OR(
Β Β Β Β [Project Phase]@row = "Testing",
Β Β Β Β [Project Phase]@row = "Go-Live",
Β Β Β Β [Project Phase]@row = "Complete"
Β Β Β ))
Β Β ),
Β Β "YELLOW",
Β Β "GREEN"
Β )
)
Here's how the formula works:
- The first condition checks if the [Expected Project Go Live Date] is less than 30 days from today (
[Expected Project Go Live Date]@row - TODAY() < 30
). It also verifies that the [Project Phase] is not "Go-Live" or "Complete" (NOT(OR(...))
). If both conditions are met, the status is set to "RED". - If the first condition is not met, the formula moves to the next condition. It checks if the [Expected Project Go Live Date] is less than 60 days from today (
[Expected Project Go Live Date]@row - TODAY() < 60
). It also ensures that the [Project Phase] is not "Testing", "Go-Live", or "Complete" (NOT(OR(...))
). If both conditions are met, the status is set to "YELLOW". - If neither of the above conditions is met, the formula defaults to "GREEN". This condition covers situations where the specified conditions are not met or if the [Project Phase] is "Complete".
Adjust the column references and status values as necessary to match your specific Smartsheet setup and requirements.
HTH!
- The first condition checks if the [Expected Project Go Live Date] is less than 30 days from today (
Answers
-
Hi @Nick J try this:
=IF(
Β AND(
Β Β [Expected Project Go Live Date]@row - TODAY() < 30,
Β Β NOT(OR(
Β Β Β [Project Phase]@row = "Go-Live",
Β Β Β [Project Phase]@row = "Complete"
Β Β ))
Β ),
Β "RED",
Β IF(
Β Β AND(
Β Β Β [Expected Project Go Live Date]@row - TODAY() < 60,
Β Β Β NOT(OR(
Β Β Β Β [Project Phase]@row = "Testing",
Β Β Β Β [Project Phase]@row = "Go-Live",
Β Β Β Β [Project Phase]@row = "Complete"
Β Β Β ))
Β Β ),
Β Β "YELLOW",
Β Β "GREEN"
Β )
)
Here's how the formula works:
- The first condition checks if the [Expected Project Go Live Date] is less than 30 days from today (
[Expected Project Go Live Date]@row - TODAY() < 30
). It also verifies that the [Project Phase] is not "Go-Live" or "Complete" (NOT(OR(...))
). If both conditions are met, the status is set to "RED". - If the first condition is not met, the formula moves to the next condition. It checks if the [Expected Project Go Live Date] is less than 60 days from today (
[Expected Project Go Live Date]@row - TODAY() < 60
). It also ensures that the [Project Phase] is not "Testing", "Go-Live", or "Complete" (NOT(OR(...))
). If both conditions are met, the status is set to "YELLOW". - If neither of the above conditions is met, the formula defaults to "GREEN". This condition covers situations where the specified conditions are not met or if the [Project Phase] is "Complete".
Adjust the column references and status values as necessary to match your specific Smartsheet setup and requirements.
HTH!
- The first condition checks if the [Expected Project Go Live Date] is less than 30 days from today (
-
Thank you @Frank B. !!!
Help Article Resources
Categories
Check out the Formula Handbook template!