Fairly new to this and while I did look apologies if I miss this previously answered. I'm trying to align colors with an upcoming due date (lease expiration to be exact). I'd like to show blue as over two years out, green as 1 to 2 years out, yellow as 6 months to 1 year out and red as less than 6 months out.
I've gotten this formula to work -
=IF([Lease Expires]@row > TODAY(730), "Blue", IF(AND([Lease Expires]@row < TODAY(729), [Lease Expires]@row > TODAY(365), "Green", IF(AND([Lease Expires]@row < TODAY(364), [Lease Expires]@row > TODAY(181)), "Yellow", IF([Lease Expires]@row < TODAY(180), "Red", "Blue")))))
But whenever i try to add an AND for the last IF as below, I get an error. I've tried TODAY and TODAY(1) just in case.
=IF([Lease Expires]@row > TODAY(730), "Blue", IF(AND([Lease Expires]@row < TODAY(729), [Lease Expires]@row > TODAY(365), "Green", IF(AND([Lease Expires]@row < TODAY(364), [Lease Expires]@row > TODAY(181)), "Yellow", IF(AND([Lease Expires]@row < TODAY(180), [Lease Expires]@row > TODAY)), "Red", "Blue")))))
Ideally I'd also like to make past due blank, but getting errors there too, so set as blue for now.