Multiple Values in One Column to RYG Balls

Options

Hi all,

Thanks in advance for any help you may be able to lend. I am working on a formula where I have several different values in one column that would correspond to different balls.

Not Eligible, Not in Scope, Completed = Green

Not Started, Request Submitted, Demo Scheduled, Cancelled, TBD = Grey

Pending Assessment, Assessment Scheduled, Pending Remediation = Yellow

On Hold = Red

no value selected in column = Blank


So far, I have this, but I get errors whenever I try to enter anything else to correspond to another color ball. I could use some help sorting it out as the Nested IF's are a bit daunting.

=IF(OR([Status - Security Testing]@row = "Not Eligible", [Status - Security Testing]@row = "Not in Scope", [Status - Security Testing]@row = "Completed"), "Green")


Best Answer

  • Christina09
    Christina09 ✭✭✭✭✭✭
    Answer ✓
    Options

    Hi @Jennifer Lewkowicz,


    Nested if formula is always confusing. For me, it's easier if I have each IF formula separate then join them together. This minimizes the error...

    Below is the formula:

    =IF(OR([Status - Security Testing]@row = "Not Eligible", [Status - Security Testing]@row = "Not in Scope", [Status - Security Testing]@row = "Completed"), "Green", IF(OR([Status - Security Testing]@row = "Not Started", [Status - Security Testing]@row = "Request Submitted", [Status - Security Testing]@row = "Demo Scheduled", [Status - Security Testing]@row = "Cancelled", [Status - Security Testing]@row = "TBD"), "Gray", IF(OR([Status - Security Testing]@row = "Pending Assessment", [Status - Security Testing]@row = "Assessment Scheduled", [Status - Security Testing]@row = "Pending Remediation"), "Yellow", IF([Status - Security Testing]@row = "On Hold", "Red"))))

Answers

  • Christina09
    Christina09 ✭✭✭✭✭✭
    Answer ✓
    Options

    Hi @Jennifer Lewkowicz,


    Nested if formula is always confusing. For me, it's easier if I have each IF formula separate then join them together. This minimizes the error...

    Below is the formula:

    =IF(OR([Status - Security Testing]@row = "Not Eligible", [Status - Security Testing]@row = "Not in Scope", [Status - Security Testing]@row = "Completed"), "Green", IF(OR([Status - Security Testing]@row = "Not Started", [Status - Security Testing]@row = "Request Submitted", [Status - Security Testing]@row = "Demo Scheduled", [Status - Security Testing]@row = "Cancelled", [Status - Security Testing]@row = "TBD"), "Gray", IF(OR([Status - Security Testing]@row = "Pending Assessment", [Status - Security Testing]@row = "Assessment Scheduled", [Status - Security Testing]@row = "Pending Remediation"), "Yellow", IF([Status - Security Testing]@row = "On Hold", "Red"))))

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!