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"))))
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"))))
-
It worked!! Thank you so much.
-
Happy to help. 👍️
Help Article Resources
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
Check out the Formula Handbook template!