Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Traffic light formula

✭✭✭✭✭
edited 12/09/19 in Formulas and Functions

Hi,

I have a traffic light column in spreadsheet and I have a formula that triggers the colour based on a status column. I am just looking to add a step in that turns the traffic light red if it is not started or in progress and it is past the due date

Formula so far

=IF(Status210 = "Completed", "Green", IF(Status210 = "In progress", "Yellow", IF(Status210 = "Not Started", "Blue")))

 

Capture.JPG

Tags:

Answers

  • ✭✭✭

    I believe you would be looking for this: 

    =IF([Due Date]210 > TODAY(),"Red",IF(Status210 = "Completed","Green", IF(Status210 = "In progress","Yellow", "Blue"))

     

    Note that I updated your equation so that it doesn't check for "Not Started" to return Blue so that Blue will show any time none of the other conditions are met. 

    You also may need to update the Due Date column name to match exactly what your column is named. 

  • I have corrected the formula…just for fun. You will need to change "210" for individual rows to compare values or a global reference if converted to a formula.

    =IF([Due Date]210 > TODAY(),"Red", IF([Status]210 = "Completed", "Green", IF([Status]210 = "In progress", "Yellow", "Blue")))

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions