Formula for RAG rating based on status and dates
Hi Smartsheet community,
I'm after a formula that will produce the different RAG ratings.
I'm definining them based on whether they are on schedule and their statuses.
Blue is 'Status'="Complete"
Red is (open for advisory)
- 'Status'='Not started' and 'start date' < today and end date is within 14 days OR
- Status= not started and end date<today OR
- 'Status' = 'in progress' and 'end date' is within 7 days
Amber (open for advice)
- 'Status' = in progress and end date is between 14-28 days
- Status = Not started and start date < today and end date is greater than 28 days
Green (open for advice) - not sure how we can show on track?
- Status is in progress and end date > 28 days
- Status = not started and start date > today
Best Answers
-
Hi Carmen
If you want this as a column formula, try the formula below.
=IF([Status]@row = "Complete", "Blue",
IF(OR(AND([Status]@row = "Not started", [Start Date]@row < TODAY(), [End Date]@row <= TODAY() + 14),
AND([Status]@row = "Not started", [End Date]@row < TODAY()),
AND([Status]@row = "In progress", [End Date]@row <= TODAY() + 7)), "Red",
IF(OR(AND([Status]@row = "In progress", [End Date]@row > TODAY() + 14, [End Date]@row <= TODAY() + 28),
AND([Status]@row = "Not started", [Start Date]@row < TODAY(), [End Date]@row > TODAY() + 28)), "Amber",
IF(OR(AND([Status]@row = "In progress", [End Date]@row > TODAY() + 28),
AND([Status]@row = "Not started", [Start Date]@row > TODAY())), "Green", "No RAG Assigned")))) -
hi,
try this
=IF(Status@row = "Complete", "Blue", IF(AND(Status@row = "Not Started", TODAY() >= [Start Date]@row, TODAY() <= [End Date]@row + 14), "Red", IF(AND(Status@row = "Not Started", TODAY() >= [End Date]@row), "Red", IF(AND(Status@row = "In Progress", TODAY() <= [End Date]@row + 7), "Red", IF(AND(Status@row = "In Progress", TODAY() <= [End Date]@row + 28, TODAY() >= [End Date]@row + 14), "Yellow", IF(AND(Status@row = "Not Started", TODAY() >= [Start Date]@row, TODAY() <= [End Date]@row + 28), "Yellow", IF(AND(Status@row = "In Progress", TODAY() >= [End Date]@row + 28), "Green", IF(AND(Status@row = "Not Started", TODAY() < [Start Date]@row), "Green", ""))))))))
Experienced IT PM and the Real Smartsheet Enthusiast.
Is there anything else we can help you with? - book your time.
MASA Consult - Your Aligned Smartsheet Gold Partner
Find us on LinkedIn & Check our Smartsheet Solutions!
Tag my name: @kowal if you want me to respond :)
Answers
-
Hi Carmen
If you want this as a column formula, try the formula below.
=IF([Status]@row = "Complete", "Blue",
IF(OR(AND([Status]@row = "Not started", [Start Date]@row < TODAY(), [End Date]@row <= TODAY() + 14),
AND([Status]@row = "Not started", [End Date]@row < TODAY()),
AND([Status]@row = "In progress", [End Date]@row <= TODAY() + 7)), "Red",
IF(OR(AND([Status]@row = "In progress", [End Date]@row > TODAY() + 14, [End Date]@row <= TODAY() + 28),
AND([Status]@row = "Not started", [Start Date]@row < TODAY(), [End Date]@row > TODAY() + 28)), "Amber",
IF(OR(AND([Status]@row = "In progress", [End Date]@row > TODAY() + 28),
AND([Status]@row = "Not started", [Start Date]@row > TODAY())), "Green", "No RAG Assigned")))) -
hi,
try this
=IF(Status@row = "Complete", "Blue", IF(AND(Status@row = "Not Started", TODAY() >= [Start Date]@row, TODAY() <= [End Date]@row + 14), "Red", IF(AND(Status@row = "Not Started", TODAY() >= [End Date]@row), "Red", IF(AND(Status@row = "In Progress", TODAY() <= [End Date]@row + 7), "Red", IF(AND(Status@row = "In Progress", TODAY() <= [End Date]@row + 28, TODAY() >= [End Date]@row + 14), "Yellow", IF(AND(Status@row = "Not Started", TODAY() >= [Start Date]@row, TODAY() <= [End Date]@row + 28), "Yellow", IF(AND(Status@row = "In Progress", TODAY() >= [End Date]@row + 28), "Green", IF(AND(Status@row = "Not Started", TODAY() < [Start Date]@row), "Green", ""))))))))
Experienced IT PM and the Real Smartsheet Enthusiast.
Is there anything else we can help you with? - book your time.
MASA Consult - Your Aligned Smartsheet Gold Partner
Find us on LinkedIn & Check our Smartsheet Solutions!
Tag my name: @kowal if you want me to respond :)
-
you welcome.
Experienced IT PM and the Real Smartsheet Enthusiast.
Is there anything else we can help you with? - book your time.
MASA Consult - Your Aligned Smartsheet Gold Partner
Find us on LinkedIn & Check our Smartsheet Solutions!
Tag my name: @kowal if you want me to respond :)
Help Article Resources
Categories
Check out the Formula Handbook template!