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.
Calculating Days - Error if no date is entered
I have a column called "Closing Date". I also have a column that calculates the number of days until the closing date. It works great if I have entered the closing date. However, if we don't know the closing date yet and leave that column blank I then get an error in the column that is calculating the closing date. Anyway to just have it be blank?
Here is the formula I am using: =NETDAYS(Today2, [Close Date]2)
Here is the error I am getting when no date is entered in the Close Date column:
#INVALID DATA TYPE
Thanks for your help.
Comments
-
Lots of ways to fix that.
Here's one:
=IFERROR(NETDAYS(Today2, [Close Date]2), "")
You can also avoid using the [Today] column like this
=IFERROR(NETDAYS(TODAY(), [Close Date]3), "")
Hope this helps
Craig
-
Thank you Craig, I was able to remove the today and use the formula you gave me. Worked perfect. Thank you.
-
You are welcome.
Craig
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
- 299 Events
- 38 Webinars
- 7.3K Forum Archives