NETWORKDAYS formula give different answers with same inputs
If I use NETWORKDAYS formula in two cases mentioned below, I get different answers.
Date_T column has dates in text format (formulas mentioned in Formulas_T column). Networkdays formula gives 22.
=NETWORKDAYS(DATE(VALUE(MID([Date_T]1, 7, 2)), VALUE(MID([Date_T]1, 4, 2)), VALUE(LEFT([Date_T]1, 2))), DATE(VALUE(MID([Date_T]2, 7, 2)), VALUE(MID([Date_T]2, 4, 2)), VALUE(LEFT([Date_T]2, 2))))
Date_D column has dates in Date format. Networkdays formula gives 21.
=NETWORKDAYS([Date_D]1, [Date_D]2)
Any ideas what is going on?
Best Answer
-
If you have Work Days set in your Admin Center, and there was holiday during January 2022, you would get one net work day fewer in your =NETWORKDAYS([Date_D]1, [Date_D]2) formula. This is because your embedded DATE functions evaluate out to dates in January 1922.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
If you have Work Days set in your Admin Center, and there was holiday during January 2022, you would get one net work day fewer in your =NETWORKDAYS([Date_D]1, [Date_D]2) formula. This is because your embedded DATE functions evaluate out to dates in January 1922.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thanks Jeff. Its the 2 digit year that was source of the problem. When I added '20' in the formula the days changed to 21.
I find it strange that year 22 defaults to 1922 and not 2022 in smartsheet.
Anyway, I was stuck here for many days. Thanks for the solution.
-
Glad you got it working. The old "Y2K" thing is still coming back to haunt us 22 years later, LOL.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives