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
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!