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
- Customer Resources
- 65K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 149 Just for fun
- 70 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!