# 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
- Customer Resources
- 68K Get Help
- 474 Global Discussions
- 209 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 85 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!