My simple NETWORKDAYS is not correct. I'm stumped. :(
Trying to figure out what I'm doing wrong here. I want to calculate the number of work days between two dates.
My formula: =NETWORKDAY([Start Date1]5, [End Date1]5)
It returns 62, but should be more like 86. What am I doing wrong here?
Best Answer
-
Using the dates you referenced in your graphic...
Apr 6, 2020 to Jun 30, 2020
and doing things the brute way by just looking at a calendar, this period contains 12 full weeks plus 2 extra work days.
This translates to
- 5 business days per week * 12 weeks + 2 extra business days = 62
- 7 total days per week * 12 weeks + 2 extra days = 86
The NETWORKDAYS() formula is returning the correct number - 62 business days assuming a Monday to Friday workweek. The number you said you're expecting to see is what you would get by including weekends in the calculation i.e. by counting ALL the days between the two dates.
Answers
-
I think you may be looking for a simple count of days between two dates (achieved via EndDate - StartDate). Meanwhile the formula you're using is designed to return only the count of working days aka business days; it doesn't count the weekends...5 (working) days per week vs. 7 days per week.
-
Hi,
To add to Joanna's excellent answer.
Here’s some more information about NETWORKDAY and similar functions.
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Thank you both for your replies and help!
@Joanna Waligora, yes I am looking to find the number of days between two dates, excluding weekends. I am following the example provided in the Smartsheet Help, but not getting the correct response.
-
Using the dates you referenced in your graphic...
Apr 6, 2020 to Jun 30, 2020
and doing things the brute way by just looking at a calendar, this period contains 12 full weeks plus 2 extra work days.
This translates to
- 5 business days per week * 12 weeks + 2 extra business days = 62
- 7 total days per week * 12 weeks + 2 extra days = 86
The NETWORKDAYS() formula is returning the correct number - 62 business days assuming a Monday to Friday workweek. The number you said you're expecting to see is what you would get by including weekends in the calculation i.e. by counting ALL the days between the two dates.
-
Happy to help!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
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!