Actual Date IF Formula for RYG Balls
Hi all!
I would like my RYG balls to express the following (actual dates, not cell reference):
Green = before 21 August 2020
Yellow = after 21 August 2020
Red = after 28 August 2020
This is my current formula, and although individual statements work, it doesn't work as a whole - it doesn't return any 'Reds'
=IF([Delivery Date]9 < (DATE(2020, 8, 20)), "Green", IF([Delivery Date]9 >= (DATE(2020, 8, 20)), "Yellow", IF([Delivery Date]9 >= (DATE(2020, 8, 27)), "Red")))
Help would be very much appreciated 🙂
Best Answer
-
Try swapping your Yellow and Red.
=IF([Delivery Date]9 < DATE(2020, 8, 20), "Green", IF([Delivery Date]9 >= DATE(2020, 8, 27), "Red", IF([Delivery Date]9 >= DATE(2020, 8, 20), "Yellow")))
Answers
-
Try swapping your Yellow and Red.
=IF([Delivery Date]9 < DATE(2020, 8, 20), "Green", IF([Delivery Date]9 >= DATE(2020, 8, 27), "Red", IF([Delivery Date]9 >= DATE(2020, 8, 20), "Yellow")))
-
That's got it - thanks Paul!
-
Help Article Resources
Categories
Check out the Formula Handbook template!