How to return a blank cell in my formula results when the referenced cell is blank?
I've been trying various different ways to add to my formula to return a blank cell when the date cell I'm referencing is blank, none seem to be working.
The formula should give me a 3 if the date is 0 - 90 days in the future, a 4 if between 90 - 120 days in the future, a 6 if 120 - 180 days and "over 6 months" if more than 180 in the future. I am using the value returned to setup conditional formatting so I need to figure out what to add into the formula to return a blank cell if the date cell is blank.
Formula:
=IF([Exercised Period of Performance End Date]@row <= TODAY(90), 3, IF([Exercised Period of Performance End Date]@row <= TODAY(120), 4, IF([Exercised Period of Performance End Date]@row <= TODAY(180), 6, "Over 6 months")))
Thank you!!
Best Answer
-
Give this a try. It will basically only run the formula when there is a date (which in turn leaves the cell blank if there is no date).
=IF([Exercised Period of Performance End Date]@row <> "", IF([Exercised Period of Performance End Date]@row <= TODAY(90), 3, IF([Exercised Period of Performance End Date]@row <= TODAY(120), 4, IF([Exercised Period of Performance End Date]@row <= TODAY(180), 6, "Over 6 months"))))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Give this a try. It will basically only run the formula when there is a date (which in turn leaves the cell blank if there is no date).
=IF([Exercised Period of Performance End Date]@row <> "", IF([Exercised Period of Performance End Date]@row <= TODAY(90), 3, IF([Exercised Period of Performance End Date]@row <= TODAY(120), 4, IF([Exercised Period of Performance End Date]@row <= TODAY(180), 6, "Over 6 months"))))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
It worked!! Thank you so much.
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!