Bring back result based on condition
Hi all,
Hoping I can get some help with a formula. I have a date column that I want to bring back a "health result" depending on the 'finish' date. For example if the finish date is past today's date then it would be red and there would be different thresholds for each date range. Is this possible? The "health result" is a column that shows color coded red, yellow, green or blue dot"
Thank you!
Best Answer
-
I replied on your other post.
Answers
-
It is very possible. What are the rest of the requirements for the other colors?
-
Red would signify that the finish date is older than today's date
Yellow would signify that the finish date is in two weeks
Green would signify that the finish date is more than two weeks from today's date
Blue would imply that there is no definite date yet
-
Try something like this...
=IF(Finish@row <> "", IF(Finish@row < TODAY(), "Red", IF(Finish@row <= TODAY(14), "Yellow", "Green"), "Blue")
-
Thank you! One other question - if the date field is going to change to month/year only is there a way to get the formula to work?
-
Are you changing the column to a text/number type or are you adjusting the date display format?
-
I would probably be adjusting to a text/number column to look like this -
-
You would need to come up with a different criteria set or include a hidden date type column that would establish a date for each row.
-
So then the best solution would be stick to the actual dates?
-
If you are wanting date based results, then you will need to have dates to reference.
-
Thanks Paul, appreciate your help. Will try that later today and see how it works out.
-
Happy to help. 👍️
-
@Paul Newcome If I have this formula -
=IF([Project Target Launch (Original)]@row = "Jan 2020", 1 / 21 / 20)
The end result comes back as a decimal rather than a date and changing the format doesn't fix it. How can I adjust it to display as a date?
-
The formula didn't work. I changed to a different column name, but it gave me the incorrect argument set error.
=IF([Original Date]1 <> "", IF([Original Date]1 < TODAY(), "Red", IF([Original Date]1 <= TODAY(14), "Yellow", "Green"), "Blue"))
-
Your first formula coming out as a decimal is because the "/" symbol indicates division. You are basically saying to output the result of one divided by twenty-one divided by twenty. To output a date you need to use a DATE function.
DATE(yyyy, mm, dd)
The formula giving the error was a misplaced closing parenthesis. Sorry about that.
=IF(Finish@row <> "", IF(Finish@row < TODAY(), "Red", IF(Finish@row <= TODAY(14), "Yellow", "Green")), "Blue")
-
Thanks Paul. I tried the revised formula, but am getting an invalid operation error.
=IF([Original Date]1 <> "", IF([Original Date]1 < TODAY(), "Red", IF([Original Date]1 <= TODAY(14), "Yellow", "Green")), "Blue")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!