calculating dates from column OR from current date
Hello, I am trying to calculate the number of days that a report is overdue. This is the formula I am currently using, but there are some problems I need help to fix.
=IFERROR(NETDAYS([Final Report Due]@row, [Final Report Submitted]@row), 0) - 1
I added the -1 because it is calculating the NETDAYS rather than the difference between the days, so if a report is one day overdue, it was showing up as two, and if it was submitted on the due date, it showed up as one instead of zero.
The problem with the -1 is that any IFERROR results are now listed as -1 instead of 0.
For the rows where the final reports have not yet been submitted, I'd like to calculate it from the current date instead. Is there a way to do this?
Many thanks for any help or suggestions!
Best Answer
-
Try this:
=IF([Final Report Submitted]@row <> "N/A", IF([Final Report Submitted]@row <> "", [Final Report Submitted]@row, TODAY()) - [Final Report Due]@row, 0)
Answers
-
Try this:
=IF([Final Report Submitted]@row <> "N/A", IF([Final Report Submitted]@row <> "", [Final Report Submitted]@row, TODAY()) - [Final Report Due]@row, 0)
-
@Paul Newcome Thank you, that worked perfectly!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 136 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 485 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!