Forum Discussion

AustinK's avatar
AustinK
Qrew Commander
3 years ago

Re: Color-Coding Cells based on Dates AND Multi-Choice

Your formula works from the top down. Once it finds the first thing in that formula that matches it ignores the rest of it. 

If(
[Scheduled - Yes] = "Scheduled" ,$green,
[Scheduled - Yes] = "Missed" ,$gray,
[Scheduled - Yes] = "" and [Appointment Needed By] >= Today(),$yellow,
[Scheduled - Yes] = "" and [Appointment Needed By] < Today(),$red
)

This would color anything with Scheduled selected green, ignoring any other thing on the record. Gray if Missed is selected, and then if blank would color either yellow or red. Let me know if it does not work as anticipated but I think it should. 

Although now that I look at your post you have given your old formula so this may not help you at all since you are asking how to update a new formula that is not here.

1 Reply

  • MeaganMcOlin's avatar
    MeaganMcOlin
    Qrew Trainee

    Austin,

    Basically, I'd like to know how to update the below code - it is written for a checkbox field type, but need it to work for a multi-choice field type instead (where the multi-choice options are Missed & Scheduled)

    If([Scheduled - Yes]=true,$green,

    If([Scheduled - Yes]=false and [Appointment Needed By]  >= Today(),$yellow,

    If([Scheduled - Yes]=false and [Appointment Needed By] < Today(),$red)))

    Thanks!



    ------------------------------
    Meagan McOlin
    ------------------------------