Having trouble with IF and ISBLANK formula

Scott Peloquin
✭✭✭✭
I need help using the ISBLANK formula. I want to return a value of average months between two dates the Closing Date and Reported Date. But when there is no Closing Date I want the system to use the TODAY function and then calculate. But when I try to add in the ISBLANK function I keep getting a syntax error so I know I'm close but missing something.
Here is my simple formula =([Closing Date]@row - [Reported Date]@row) / 30
Here is what I was trying to use but get syntax errors: =IF(ISBLANK([Closing Date]@row), TODAY,[[Closing Date]@row - [Reported Date]@row) / 30]
Best Answer
-
Hey @Scott Peloquin,
Use ISDATE instead of ISBLANK.
=IF(ISDATE([Closing Date]@row), ([Closing Date]@row - [Reported Date]@row) / 30, (TODAY() - [Reported Date]@row) / 30)
Answers
-
Hey @Scott Peloquin,
Use ISDATE instead of ISBLANK.
=IF(ISDATE([Closing Date]@row), ([Closing Date]@row - [Reported Date]@row) / 30, (TODAY() - [Reported Date]@row) / 30)
-
Oh awesome. I missed that. Thank you.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.7K Get Help
- 472 Global Discussions
- 201 Use Cases
- 514 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 519 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!