Find Number of Working and Non-Working Days in Google Sheets

To find the number of working and non-working days in a month or between two specific dates, you can use the NETWORKDAYS or NETWORKDAYS.INTL functions in Google Sheets.

If Saturday and Sunday are your weekends, you can use the NETWORKDAYS function. If you want to specify different weekends, use NETWORKDAYS.INTL. In the examples, I’ll use the NETWORKDAYS function.

If you’re not familiar with these functions, check out my related tutorial here: Google Sheets: The Complete Guide to All Date Functions.

Find the Total Number of Working Days in Google Sheets

Let’s look at the NETWORKDAYS function syntax:

NETWORKDAYS(start_date, end_date, [holidays])

The start_date and end_date arguments are mandatory to find the total network days in that period. To find the total number of working days in a specific month, simply provide the start date and calculate the end date using another function.

For example, let’s calculate the number of working days in the current month:

=NETWORKDAYS(EOMONTH(TODAY(), -1) + 1, EOMONTH(TODAY(), 0))

Enter this formula in a cell in your Google Sheets file, and it will return the total number of working days in the current month.

To find the total working days of any month, replace the TODAY() function with a specific date.

For example, if you want to find the total working days in November 2024, use any date from that month. Here’s the formula:

=NETWORKDAYS(EOMONTH("2024-11-28", -1) + 1, EOMONTH("2024-11-28", 0))

Formula Logic:

The key here is the EOMONTH function. From a provided date, we can find the end of the month date with this function. We can then use this as the end_date in the NETWORKDAYS formula.

The same function can be used to find the starting date of any month from a given date. For example:

=EOMONTH("2024-11-28", -1)

This formula returns the end date of the previous month. Adding one day to this result gives you the starting date of the current month or the month of the provided date. You can then use this as the start_date in the NETWORKDAYS function.

Note: You can enter holidays (dates other than weekends) in a separate column and reference that range in the formula to exclude those dates from the working day count. I’ll explain this in the later part of the tutorial.

Find the Total Number of Non-Working Days in Google Sheets

Once you’ve calculated the total number of working days, you can subtract this from the total days in the month to find the number of non-working days. If the last day of the month is the 30th, then the total number of days in that month is 30.

Here’s the formula to calculate the non-working days:

=DAY(EOMONTH(TODAY(), 0)) - NETWORKDAYS(EOMONTH(TODAY(), -1) + 1, EOMONTH(TODAY(), 0))

Let’s break down the first part of the formula:

=DAY(EOMONTH(TODAY(), 0))

This part of the formula returns the total number of days in the current month. To find the number of non-working days, you subtract the total working days (calculated using NETWORKDAYS) from this total.

Just like in the previous formula, you can replace TODAY() with any custom date to calculate non-working days for a specific month.

Conclusion

This is how you can find the number of working and non-working days in Google Sheets. Simply use the NETWORKDAYS function to calculate the working days and subtract that from the total days in the period to find the non-working days.

In the following example, the start date is in cell B2, the end date is in cell B3, and the holidays are listed in range B5:B9.

Number of Working and Non-Working Days in Google Sheets

The following formula returns the number of working days during this period:

=NETWORKDAYS(B2, B3, B5:B9)

And this formula returns the number of non-working days in the period:

=(B3-B2+1)-NETWORKDAYS(B2, B3, B5:B9)

Here, (B3-B2+1) calculates the number of days between the start date and end date, both inclusive.

Resources

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

How to Extract Numbers from Text in Excel with Regex

You can use the REGEXEXTRACT or REGEXREPLACE functions to easily extract numbers from text...

Using OFFSET and MATCH Together in Google Sheets: Advanced Tips

One powerful and flexible way to look up values is by combining the OFFSET...

How to Use OFFSET and XMATCH Functions Together in Excel

We often use the OFFSET and XMATCH functions together to match a value in...

How to Calculate Maximum Drawdown in Excel and Google Sheets

You can use the following dynamic array formula to calculate maximum drawdown (MDD) in...

More like this

Using OFFSET and MATCH Together in Google Sheets: Advanced Tips

One powerful and flexible way to look up values is by combining the OFFSET...

Running Count with Structured References in Google Sheets

Running a count with structured references is achievable in Google Sheets tables using the...

Running Total with Structured Table References in Google Sheets

You can use two types of formulas to create a running total with structured...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.