Welcome to the Smartsheet Forum Archives


The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.

Color coding based on multiple columns

 

Hi,

 

I have a sheet that includes Start Date, Finish Date and Status Columns. I'd like to create an IF formula that considers data in all three columns in order to create color coded balls as shown here (https://www.smartsheet.com/blog/support-tip-automate-RYG-balls).

 

Specifically, I'd like the logic to be:

 

If Start is after TODAY, "Blue"

If Start is before TODAY and status is "Not Started", "Yellow"

If Finish is after TODAY and status is "In Progress" or "On Track", "Green"

If Finish is before TODAY and status is not "Complete", "Red"

If Finish is before TODAY and status is "Complete", "Green"

 

I think its possible to apply this kind of nested logic in Excel using AND and OR functions, but I can't make it work the same way in SmartSheet. 

 

Thanks!

 

 

StartFinishTodayStatusIdeal Result
9/1/201512/1/201512/3/2015CompleteG
11/5/20151/27/201512/3/2015In ProgressG
11/7/20151/20/201612/3/2015Not StartedY
12/30/20152/27/201612/3/2015Not StartedB
11/5/20151/27/201612/3/2015On TrackG
10/4/201511/3/201512/3/2015On TrackR
Tags:

Comments

  • Try this equation:

     

    =IF(Start1 > TODAY(), "Blue", IF(AND(Start1 < TODAY(), Status1 = "Not Started"), "Yellow", IF(AND(Finish1 > TODAY(), OR(Status1 = "In Progress", Status1 = "On Track")), "Green", IF(AND(Finish1 < TODAY(), Status1 = "Complete"), "Green", "Red"))))

     

    If you look at the equation closly I used your logic in the same order you listed it, however your forth line i swapped between the 4th and 5th lines.  Esentially making the last result "Red" if none of the other possibilites occured.

     

    Here is an image of my output.

     

     

    Good Luck...

     

     

    Screenshot.PNG

  • Richard Rymill SBP
    Richard Rymill SBP ✭✭✭✭✭✭

    Nice one Joel! 

This discussion has been closed.