How to Fix NETWORKDAYS.INTL Returning Wrong Workdays in Excel
Question details
The user is experiencing incorrect workday calculations when using the NETWORKDAYS.INTL function.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating the total number of working days between a start date and an end date while excluding specific weekends and holidays.
- Observed behavior
- The function returns a higher number of workdays than expected because it natively includes both the start and end dates. Additionally, hard-coded holiday dates occasionally produce unexpected calculation results.
Ensure that your start date, end date, and holiday cells are formatted as valid 'Date' values rather than 'Text' to prevent basic formula calculation errors.
Adjust the Formula to Exclude Start and End Dates
By default, NETWORKDAYS.INTL includes both the start date and the end date in its workday calculation. You must manually subtract days to exclude them from the total.
The NETWORKDAYS.INTL function calculates the number of working days that fall on or between the start and end dates. If you are calculating a deadline offset or simply measuring the gap between two milestones without counting the anchor dates, the default inclusion will result in a count that is too high.
Click on the cell containing your current NETWORKDAYS.INTL formula.
Click into the formula bar at the top of the window to edit the function.
To exclude both the start date and the end date, append -2 to the end of your formula. For example: =NETWORKDAYS.INTL(A1,B1,11)-2.
Press Enter to update the calculation and verify that the intended workday count is now correct.

Reference Holiday Dates from Worksheet Cells
Hard-coding holiday dates directly into the formula can cause Excel to misinterpret the date format, leading to incorrect workday counts.
Easily Calculate Workdays with WPS Office
WPS Spreadsheet provides flawless support for the NETWORKDAYS.INTL function, making date calculations straightforward. It accurately parses holiday cell references and date parameters, ensuring your project timelines are always correct.
- 1. Open your spreadsheet: Launch WPS Office and open your workbook to the sheet where you want to calculate the workdays.
- 2. Start the function: Select the target cell, go to the Formulas tab and click 'Insert Function', or simply type =NETWORKDAYS.INTL( to begin.
- 3. Select start and end dates: Click the cell containing your start date, type a comma, and click the cell containing your end date.
- 4. Define weekends and holidays: Input your weekend parameter (e.g., 1 for Saturday and Sunday), type a comma, and highlight the cell range containing your holidays.
- 5. Calculate the result: Add your closing parenthesis and press Enter. If you need to exclude the start and end dates, simply type -2 at the end of the formula before pressing Enter.

Frequently Asked Questions
Why does NETWORKDAYS.INTL count one more day than simple subtraction?
Simple date subtraction (End Date - Start Date) calculates the difference in days, effectively excluding the start date. The NETWORKDAYS.INTL function counts every valid working day involved in the period, meaning both the start and end dates are included by default.
Can I use the DATE function to hard-code holidays in NETWORKDAYS.INTL?
Yes, you can use the DATE function (e.g., DATE(2023,4,8)) inside the formula to ensure the date is recognized correctly by the spreadsheet. However, referencing a cell range containing your holidays is highly recommended because it is easier to update and less prone to unexpected syntax errors.
What string format should I use for custom weekends?
You can use a 7-character text string of 1s and 0s enclosed in quotation marks, where 1 represents a non-working day and 0 represents a workday. The string always begins on Monday. For example, "0000110" sets Friday and Saturday as the weekend.




