Changing Status Dot Color Based On Deadline Column
Hi, I've tried looking up other questions to answer this and got as far as this formula [=IF(Deadline@row <= TODAY(+14), "Green", IF(Deadline@row <= TODAY(+7), "Yellow", IF(Deadline@row >= TODAY(0), "Red", "")))], but it's not providing the proper results. I have a Deadline column and a Status column (which is the RGY dots). I would like the dot to change color based on the following parameters:
If the deadline is approaching within the next 14 days or more, change to green.
If the deadline is approaching within the next 7 days, change to yellow.
If the deadline is today and/or in the past, change to red.
With my erroneous formula above, no matter what date is in there, the dot is green.
Best Answers
-
try this..
=IF(AND(Deadline@row > TODAY(), Deadline@row < TODAY(+7)), "Yellow", IF(Deadline@row > TODAY(+8), "Green", IF(Deadline@row <= TODAY(0), "Red", "")))
Based on how I understand your initial formula and why its causing an issue-...
-
Answers
-
<= TODAY(+14) covers <= TODAY(+7)
You'll want to use:
-Between today and less than or equal to 7 days. (Yellow)
-and More than 7 days (Green)
-less than today (Red)Using is equal to more than once might have an issue with your formula.
e:formatting
...
-
Im not sure why my response is formatting like that. Sorry I didnt mean to. I tried to remove it but it keeps doing it.
Here's what I came up with:
=IF(AND(Deadline@row > TODAY(), Deadline@row < TODAY(+7)), "Yellow", IF(Deadline@row > TODAY(+8), "Green", IF(Deadline@row <= TODAY(0), "Red", "")))
...
-
@heyjay, I'm confused about the response. What changes to my formula should I be making?
-
try this..
=IF(AND(Deadline@row > TODAY(), Deadline@row < TODAY(+7)), "Yellow", IF(Deadline@row > TODAY(+8), "Green", IF(Deadline@row <= TODAY(0), "Red", "")))
Based on how I understand your initial formula and why its causing an issue-...
-
That fixed it! Thank you!
-
It turns out, the formula isn't working for some of the periods of time in the future. (It looks like it returns a blank instead of a dot for 7 and 8 days into the future. Anyone have any ideas for a fix? Here's what I'm using:
=IF(AND(Deadline@row > TODAY(), Deadline@row < TODAY(+7)), "Yellow", IF(Deadline@row > TODAY(+8), "Green", IF(Deadline@row <= TODAY(0), "Red", "")))
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 457 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!