# of days between two dates
I manage an intake process and I am trying to determine the number of days between two dates (received date and decision date). That piece of it is pretty simple. There are two parts that I cannot figure out.
- If the decision date has not been set, the cell for number of days shows an error. I want the cell blank until the decision date has been set.
- If the received date and decision date are the same day, I want the # of days to equal 1.
Best Answer
-
We can accomplish this using IF statements.
=IF(ISDATE([Decision Date]@row), IF(NETDAYS([Received Date]@row, [Decision Date]@row)=0, 1, NETDAYS([Received Date]@row, [Decision Date]@row)))
If you're using a different NetDays formula, swap it into the formula instead of NetDays.
Does this work for you?
Kelly
Answers
-
We can accomplish this using IF statements.
=IF(ISDATE([Decision Date]@row), IF(NETDAYS([Received Date]@row, [Decision Date]@row)=0, 1, NETDAYS([Received Date]@row, [Decision Date]@row)))
If you're using a different NetDays formula, swap it into the formula instead of NetDays.
Does this work for you?
Kelly
-
Hi Kelly,
When I applied this formula all seems to be working except the value when the received date and decision date are the same. The value is then a negative 2.
-
I tried it with a new entry and it does seem to be working now. Thank you for the assist.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 462 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 59 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!