# 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
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!