How to have the In Progress status be green when there are no start/end dates

Hello!

I am trying to have the have the status show as green when something is in progress, even if it doesn't have a start or end date. I only want it to turn yellow or green when there are end dates involved. Here is my current formula: =IF(ISBLANK(Complete@row), "", IF(Complete@row = "Not Started", "Gray", IF(Complete@row = "Complete", "Green", IF([End Date]@row <= TODAY(0), "Red", IF([End Date]@row <= TODAY(7), "Yellow", "Green")))))


Tags:

Best Answer

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭
    Answer ✓

    Hey @Alicia D

    Will this work for you?

    =IF(ISBLANK(Complete@row), "", IF(Complete@row = "Not Started", "Gray", IF(Complete@row = "Complete", "Green", IF(AND([End Date]@row <= TODAY(0), ISDATE([End Date]@row)), "Red", IF(OR(ISBLANK([End Date]@row), ISBLANK([Start Date]@row)), "Green", IF([End Date]@row <= TODAY(7), "Yellow", "Green"))))))

    Kelly

Answers

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭
    Answer ✓

    Hey @Alicia D

    Will this work for you?

    =IF(ISBLANK(Complete@row), "", IF(Complete@row = "Not Started", "Gray", IF(Complete@row = "Complete", "Green", IF(AND([End Date]@row <= TODAY(0), ISDATE([End Date]@row)), "Red", IF(OR(ISBLANK([End Date]@row), ISBLANK([Start Date]@row)), "Green", IF([End Date]@row <= TODAY(7), "Yellow", "Green"))))))

    Kelly

  • Alicia D
    Alicia D ✭✭✭✭✭

    Hello! YES that worked, thank you! Although, now I see that my other column where a flag is indicated is not updating. It is still showing a red flag even though the status is green. Here is my current formula for that one: =IF([Helper at Risk]@row <> 0, IF(AND([End Date]@row <= TODAY(0), Complete@row <> "Complete", Status@row <> ""), 1, 0), IF(COUNTIFS(CHILDREN(), 1) > 0, 1, 0))





    Thank you @Kelly Moore !!

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭

    Hey @Alicia D

    Could you share a screenshot of your Helper At Risk column, and it's formula?

    But taking a shot in the dark, try this

    =IF([Helper at Risk]@row <> 0, IF(AND([End Date]@row <= TODAY(0), Complete@row <> "Complete, OR(Status@row <> "",Status@row<>"Green")), 1, 0), IF(COUNTIFS(CHILDREN(), 1) > 0, 1, 0))

    Kelly

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!