Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
need blanks instead of #invalid data type
I am trying to have smartsheet calculate the difference between a start date and end date, but I will never have all dates in the sheet. I need it to return blanks when either start or end date is missing instead of #invalid data type.
Can someone please help? I already tried a conditional formatting rule to white out the #invalid data type text, that doesn't work, and several iterations of the "" I would usually use to return blanks in excel.
Thank you!!!!
Comments
-
Jillian,
Try using the IFERROR function:
=IFERROR({formula}, "")
https://help.smartsheet.com/function/iferror
Ben
-
How about this: =IF([End Date]1 >= [Start Date]1, [End Date]1 - [Start Date]1)
-
Benjamin is accurate. The Iferror function will display a desired result if you are getting an error, which you are.
https://help.smartsheet.com/function/iferror
Basically, you are saying if the function I am running has an error, then give me a blank.
=IFERROR(YOUR FORMULA HERE, "")
-
+1
Once I worked this out I use it in almost all of my formulas now. Great for prompting for missing data.
Wanting to pull the year out from another date cell
=IFERROR(YEAR([End date]4), "no date")
if there is no date it tells the user why nothing showed up in this cell.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives