Formula for filling Heart symbol based on Created date?
I need help with a formula to populate my "health" column with a hearts based on the row "Created" date and I hope someone can help. I just did the three day class, but this wasn't covered and I didn't think of it until this morning.
If the "Created Date" is >74 days from today() it should be 0, "Empty".
If the "Created Date" is 70-73 days from today() it should be 1, "Two".
If the "Created Date" is 60-69 days from today() it should be 2, "Two".
If the "Created Date" is 50-59 days from today() it should be 3, "Three".
If the "Created Date" is 40-49 days from today() it should be 4, "Four".
If the "Created Date" is 0-39 days from today() it should be 2, "Five".
Thank you in advance.
Cheers, Justin
Best Answer
-
Hi @Justin Bray,
You can do this with a nested IF formula:
=IF(TODAY() - [Created Date]@row <= 39, "Five", IF(TODAY() - [Created Date]@row <= 49, "Four", IF(TODAY() - [Created Date]@row <= 59, "Three", IF(TODAY() - [Created Date]@row <= 69, "Two", IF(TODAY() - [Created Date]@row <= 73, "One", "Empty")))))
Sample data & Output:
I would guess your Created Date would normally be system generated, but this serves to illustrate how the formula works.
Hope this helps, but if I've misunderstood anything or you've any problems/questions then let us know!
Answers
-
Hi @Justin Bray,
You can do this with a nested IF formula:
=IF(TODAY() - [Created Date]@row <= 39, "Five", IF(TODAY() - [Created Date]@row <= 49, "Four", IF(TODAY() - [Created Date]@row <= 59, "Three", IF(TODAY() - [Created Date]@row <= 69, "Two", IF(TODAY() - [Created Date]@row <= 73, "One", "Empty")))))
Sample data & Output:
I would guess your Created Date would normally be system generated, but this serves to illustrate how the formula works.
Hope this helps, but if I've misunderstood anything or you've any problems/questions then let us know!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 516 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!