Counting Days Between Two Dates With Weekends, Without Holidays
I am looking for a way to get a count of days between a start date and end date, but I want to include weekends and exclude holidays. Is there a function or combo of functions I could use?
Best Answer
-
I would suggest creating a list of all holiday dates in a separate sheet and then referencing that like so:
=[End Date]@row - [Start Date]@row - COUNTIFS({Holiday Sheet Date Column}, AND(@cell >= [Start Date]@row, @cell <= [End Date]@row))
Answers
-
Hello @cthrasher97141,
Just use NETWORKDAY or NETWORKDAYS and make sure your project settings have no holidays included.
School of Sheets (Smartsheet Partner)
If my answer helped please accept and react w/💡Insightful, ⬆️ Vote Up, ❤️Awesome!
-
Do you mean you want to include weekends in the count and exclude holidays from the count?
-
Hi Paul!
Yes you are correct.
-
I would suggest creating a list of all holiday dates in a separate sheet and then referencing that like so:
=[End Date]@row - [Start Date]@row - COUNTIFS({Holiday Sheet Date Column}, AND(@cell >= [Start Date]@row, @cell <= [End Date]@row))
-
Thank you so much Paul!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!