Time Lapse Calculation
Comments
-
I received an #incorrect argument set
-
@Paul, the Networkdays function is embedded but is missing the second date to compare with.
-
The second date is actually generated by the IF statement.
IF(ISDATE([Complete Date]@row), [Complete Date]@row, TODAY())
The above is nested into the NETWORKDAYS function
NETWORKDAYS([Due Date]@row, IF(.....))
Then that NETWORKDAYS is nested into the 3rd pfortion of the first IF statement
=IF(AND(................), do this, otherwise NETWORKDAYS function)
-
That's my fault. I didn't close out the ISDATE function. Add a closing parenthesis there and then remove one from the end of the formula.
My apologies.
=IF(AND(ISDATE([Complete Date]@row), [Complete Date]@row <= [Due Date]@row), 0, NETWORKDAYS([Due Date]@row, IF(ISDATE([Complete Date]@row), [Complete Date]@row, TODAY())))
The above has the ISDATE closed along with the correct amount of closing parenthesis at the end of the formula. That was my fault for not double checking my work. Sorry about that.
-
Doh. I see it now. Dang closing parenthesis.
-
Haha. I probably would have done the same had I not been the one to write it.
-
Thank you, Paul. No apologies necessary. You've been so helpful, I can't thank you enough.
If you don't mind me asking one more question. If I want the formula to return zero when the due date is in the future and the complete date is blank, what do I need to add?
Here's the breakdown:
1. Complete date blank and due date is current date or in the future---> time lapse is zero
2. Complete date blank and due date in the past ---> time lapse equal net workday between due date and today's (current) date.
3. Complete date value is equal or less than due date --> time lapse is zero
4. Complete date value is more than due date --> time lapse is equal net workday between due date and complete date.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 201 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives