IF AND ISBLANK formula
Hi, I want a RGY to turn Red if we are "pass" our target date,
yellow if "at" the target date, and Green if "before" our target date,
=IF(ISBLANK([Target Date]1), "", IF([Target Date]1 > TODAY() + 1, "Green", IF([Target Date]1 >= TODAY(), "Yellow", IF([Target Date]1 < TODAY(), "Red", ""))))
this formula works, except even if we finish on time because I use TODAY() it will still turn red, I need a AND condition if "WO# Finish" is TRUE it stops updating.
I tried the code below and many different ways but can't get it to work, just wondering if someone can help me out,
=IF(AND(ISBLANK([Target Date]1, ""), [WO# Finish]1 = false), IF([Target Date]1 > TODAY() + 1, "Green", IF([Target Date]1 >= TODAY(), "Yellow", IF([Target Date]1 < TODAY(), "Red", "")))))
Thanks.
Comments
-
Hi,
what do you mean by "Stop updating" ? Do you mean keep the current value of the RYB when "WO# Finish" is TRUE ? Or just make the RYB blank ?
If you want the last option, then the formula should be :
=IF(OR(ISBLANK([Target Date]1, [WO# Finish]1 = TRUE),"", IF([Target Date]1 > TODAY() + 1, "Green", IF([Target Date]1 >= TODAY(), "Yellow", "Red")))
Does this help ?
Best regards,
Paul.
-
I want to keep the current value of RYB
-
Well I'm pretty sure this can't be done directly by Smartsheet (like if could be by a macro in Excel).
You can't refer to a value in the past, and you can't "freeze" a value without manual input.
Best regards,
Paul.
-
I kind a figure that it would not work.
what I have done is created a second column if the user puts the check mark WO Completed it takes the modified date into that column and stores it there, as long as no body modifies the row it works.
thanks.
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives