More than 2 logical expressions for OR function?

I'm trying to write an OR function that returns an RYGB ball with 3-4 logical expressions but it keeps giving me an error message. Can it only have 2 logical expressions? Here's my formula (i didn't add the Blue logic yet since I couldn't even get the 3 conditions to work) -

=IF(OR((TODAY() - [Due Date]@row) >= 14, (TODAY() - [Due Date]@row) <= 13, (TODAY() > [Due Date]@row)), "Green", "Yellow", "Red")

The logic is:

If today’s date is >= 14 days from the Due Date, then green ball

If today’s date is <= 13 days days from the Due Date, then yellow

If today’s date is past the Due Date, then red

If today’s date is is past the Due Date, then blue


Thank you!

Best Answers

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!