Problem with returning a value when a cell is blank
Hello - The first half of the formula below seems to work fine. However i need to return a value if ([Opportunity End Date]@row) is not blank.
I'm either receiving #unparsable or #incorrect argument. If you could help, would be greatly appreciated.
=IF(ISBLANK([Opportunity End Date]@row), TODAY() - ([Opportunity Creation Date]@row), IF(ISDATE([Opportunity End Date]@row), ([Opportunity End Date]@row - [Opportunity Creation Date]@row))))
Best Answer
-
Problem solved. Opportunity End Date was a text field, not a date field. Now the formula works fine.
Answers
-
You are using too many parenthesis. Try this...
=IF(ISBLANK([Opportunity End Date]@row), TODAY() - [Opportunity Creation Date]@row, IF(ISDATE([Opportunity End Date]@row), [Opportunity End Date]@row - [Opportunity Creation Date]@row))
Another option would be to just leverage the third portion (value if false) of the first IF to say that if the ISBLANK function is not true, output "xyz".
=IF(ISBLANK([Opportunity End Date]@row), TODAY() - [Opportunity Creation Date]@row, [Opportunity End Date]@row - [Opportunity Creation Date]@row)
-
Problem solved. Opportunity End Date was a text field, not a date field. Now the formula works fine.
-
You are correct Paul, I had too many paranthesis. Thank you for your prompt response.
-
Happy to help. 👍️
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!