search
HomeTopicsexcelLearn how to quickly count working days in Excel functions. Take a look at these two functions!

In the previous article "Excel Function Learning: The Dichotomy Principle of the LOOKUP Function", we learned about the dichotomy principle of LOOKUP. Today we are going to learn two working day functions. As the name suggests, they are specially used to calculate the number of working days. They are so easy to use!

Learn how to quickly count working days in Excel functions. Take a look at these two functions!

In daily office work, we often encounter the need to calculate how many working days there are between two dates. The simpler way is to count the days against the calendar, but What about more days? This is when you need to use excel functions!

1. Open the following table and need to calculate how many working days there are between two different dates;

Learn how to quickly count working days in Excel functions. Take a look at these two functions!

2. Enter in cell C2 Formula =NETWORKDAYS(A2,B2), press Enter to confirm and you will see the result, that is, there are a total of 7 working days from July 1st to July 10th. Double-click to fill in the formula and you will see column C. All results.

Learn how to quickly count working days in Excel functions. Take a look at these two functions!

Comparing the calendar on the right, we can see that there are three weekends from July 1st to July 10th. These non-working days on weekends have been automatically excluded. The details are explained below. What does this formula mean:

3. In the working day calculation formula =NETWORKDAYS(A2,B2), the first parameter indicates the start date, which is July 1, and the second parameter Indicates the end date is July 10th. If there are specific dates that need to be excluded, you can also enter a third parameter in the formula.

For example, July 5th is an exceptional day off for the company and needs to be subtracted. You can enter these specific dates separately in column D and modify the formula to =NETWORKDAYS(A2,B2,D2) That's it, so that the specific day is subtracted from the original 7 working days to become 6 working days, as shown in the figure below.

Learn how to quickly count working days in Excel functions. Take a look at these two functions!

Of course, you can also subtract the statutory holidays of this year (note that the adjusted dates are not weekends). For example, October 1st happens to be a Saturday. It is possible. Adjusted to be closed on September 30, then the special rest day should be September 30.

Note:

If the third parameter is a given Saturday or Sunday, then the function return result itself is subtracted from this day, and will not be subtracted repeatedly. Go.

4. We can also use the NETWORKDAYS function to calculate the number of weekend days within a specified time period:

Learn how to quickly count working days in Excel functions. Take a look at these two functions!

Enter the formula in D2

=B2-A2-NETWORKDAYS(A2,B2) 1

The function returns 3, indicating that there are three weekends between July 1st and July 10th.

The meaning of this formula is to subtract the working days from the total number of days to get the weekend days. Because the value of B2-A2 is one day less than the actual number of days, 1 is added. In case you encounter the problem of counting weekend days, you might as well try this formula, it’s super easy to use!

Through the above explanation, we can see that this function can bring us great convenience in terms of statistics on issues related to working days. However, there is also a problem. What should we do if we are not closed on Saturdays and Sundays? I believe this is a problem faced by most human resources and finance companies.

do not be afraid! In the Excel 2010 version, there is an upgraded version of the working day function: NETWORKDAYS.INTL. The function is a bit long. I guess not many people can remember it. It doesn’t matter, as long as you remember it net, there will be a prompt in Excel:

Learn how to quickly count working days in Excel functions. Take a look at these two functions!

We noticed that this function uses "custom weekend" to determine the number of working days. The previous NETWORKDAYS function Weekends cannot be modified (must be Saturday or Sunday). This difference makes it more flexible and widely used.

Still looking at the example above, the formula is modified to: =NETWORKDAYS.INTL(A2,B2,11). When entering the third parameter, a prompt will appear:

Learn how to quickly count working days in Excel functions. Take a look at these two functions!

This is to let us choose which day to rest on. If we only have Sunday off, just choose 11. After completing the formula input, the result is:

Learn how to quickly count working days in Excel functions. Take a look at these two functions!

The number of working days has changed from the original 7 days to 8 days, and Saturdays are also counted as working days.

(Only closed on Sundays, although it is a bit sad, but many people are like this~~~)

The most useful parameter in this function is the third parameter, in total There are 17 options:

Learn how to quickly count working days in Excel functions. Take a look at these two functions!

If none of the 17 types of rest days provided meet the actual situation, you can also specify the rest days yourself, and you need to enter a 7-digit number. The first digit represents Monday and the last digit represents Sunday. Only 0 and 1 can be written in each position. 0 represents work and 1 represents rest. If only Tuesday is closed, the custom parameter is 0100000.

Same as the first function, if there are one or two special vacations in a month that need to be deducted, write them directly in the fourth parameter.

Okay, that’s it for today’s tutorial. I believe that with these two functions, human resources and finance MMs no longer have to worry about counting working days!

Related learning recommendations: excel tutorial

The above is the detailed content of Learn how to quickly count working days in Excel functions. Take a look at these two functions!. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:部落窝教育. If there is any infringement, please contact admin@php.cn delete
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),