Hey there, fellow spreadsheet enthusiasts! Are you tired of manually counting the number of workdays between two dates in Google Sheets? Let me introduce you to the lifesaver formula known as NETWORKDAYS.INTL.
But first, what even is a network day? Essentially, it refers to a workday that isn't a weekend or a holiday. This formula helps calculate the number of network days between two dates, taking into account weekends and holidays.
The syntax for the formula is straightforward. It goes like this: NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]).
The first two parameters, start_date and end_date, refer to the beginning and end dates of the time period in question. These can be cell references or actual dates.
The optional third parameter, [weekend], determines which days should be considered weekends. By default, Saturday and Sunday are considered weekends, but you can specify different days by inputting a number code.
The code works like this:
For example, to exclude Thursday and Friday as weekends, you would input the code "6".
The final optional parameter, [holidays], allows you to input any additional days to exclude from the calculation. This can be inputted as a range of dates or as individual cell references.
As a quick example, let's say we want to know the number of work days excluding weekends and three holidays (July 4th, Labor Day, and Christmas) between November 1st and December 31st. Our formula would look like this:
=NETWORKDAYS.INTL("11/1/2021", "12/31/2021", 1, {"7/4/2021", "9/6/2021", "12/25/2021"})
When we hit enter, we get the result of 41 workdays. Amazing!
Now, what if you wanted to add your own company's holidays to the formula? You could manually input them like in the example above, but that gets tedious fast.
One way to make it easier is to create a separate holiday list in your Google Sheets document that the formula can reference. This way, you can easily add or remove holidays from the list without having to constantly change the formula.
Here's how:
Boom! Now you have a dynamic holiday list that can be easily modified for years to come.
NETWORKDAYS.INTL is a powerful formula that can save you time and effort when calculating workdays in Google Sheets. Don't let manual counting bog you down - implement this formula and make your life easier.
With just a little bit of customization, you can make the formula even more powerful and suited to your specific needs. So go forth, spreadsheet warriors, and conquer those calculations with NETWORKDAYS.INTL!