To calculate business days in Excel, use the NETWORKDAYS or NETWORKDAYS.INTL function. These formulas automatically subtract weekends (Saturday and Sunday) and optional holidays from a date range, providing you with the total number of working days between a start date and an end date. This is essential for project management, payroll calculations, and tracking service level agreements (SLAs) where weekends do not count toward deadlines.

What You'll Need

  • Microsoft Excel (any modern version including Office 365, 2021, 2019, or Excel for the Web).
  • A start date and an end date entered into cells.
  • A separate list of holiday dates (optional but recommended for accuracy).
  • Basic familiarity with entering formulas into a cell.

Step-by-Step

  1. Prepare Your Data: Enter your start date in one cell (e.g., A2) and your end date in another cell (e.g., B2). Ensure these cells are formatted as "Date" so Excel recognizes them as numerical values rather than text.
  2. Create a Holiday List: If you want to exclude public holidays, create a small table elsewhere in your sheet. List every holiday date for the year in a single column (e.g., D2 through D10). This prevents Excel from counting a Monday as a business day if it is actually a national holiday.
  3. Select the Target Cell: Click on the cell where you want the final count of business days to appear.
  4. Enter the Basic NETWORKDAYS Formula: Type =NETWORKDAYS(A2, B2). This formula assumes a standard Monday-through-Friday work week. Once you press Enter, Excel will return the number of working days between the two dates, inclusive of both the start and end date.
  5. Add the Holiday Range: To make the calculation accurate for your specific region, modify the formula to include your holiday list: =NETWORKDAYS(A2, B2, D2:D10). The third argument tells Excel to look at the range D2:D10 and subtract any dates found there from the final count, provided those dates fall on a weekday.
  6. Using NETWORKDAYS.INTL for Custom Weekends: If your business operates on a non-standard schedule (for example, if you work Saturdays or have only Sundays off), use the NETWORKDAYS.INTL function. The syntax is =NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]).
  7. Define the Weekend Parameter: Inside the NETWORKDAYS.INTL formula, the "weekend" argument is a number that tells Excel which days to skip. For example, if only Sunday is a weekend, use the number 11. Your formula would look like: =NETWORKDAYS.INTL(A2, B2, 11, D2:D10).
  8. Verify the Result: Manually check a short date range (e.g., a 10-day span) to ensure the formula is subtracting the correct weekends and holidays. If the number seems off by one, remember that NETWORKDAYS includes both the start and end date in its count.

Common Mistakes

One of the most frequent errors is entering dates as text. If you type "Jan 1st 2024" and Excel treats it as a string of text rather than a date value, the formula will return a #VALUE! error. Always use the date picker or a standard date format (YYYY-MM-DD or MM/DD/YYYY) and verify the cell format in the Home tab under the Number group.

Another common mistake is forgetting that the NETWORKDAYS function is inclusive. If a project starts on Monday and ends on Tuesday, the formula returns 2. Some users expect 1 (the difference between the dates). If you need the difference rather than the count, you must subtract 1 from the final result: =NETWORKDAYS(A2, B2) - 1.

Users also often forget to update their holiday list annually. If you are using a template from a previous year, the formula will still be subtracting holidays from the old year, leading to an overestimation of working days in the current year. It is best practice to keep a dedicated "Settings" or "Reference" tab for holidays that can be updated once per year.

Finally, mixing up the start and end dates can lead to negative numbers. While Excel can handle this, it often confuses users. If the start date is later than the end date, the result will be a negative integer. Use the ABS function =ABS(NETWORKDAYS(A2, B2)) if you only care about the total number of days regardless of the order.

Tips

To make your holiday list more dynamic, convert the holiday range into an official Excel Table (Insert > Table). Give the table a name, such as "CompanyHolidays". Now, instead of using a range like D2:D10, you can use the table name in your formula: . The advantage here is that as you add new holidays to the bottom of the table, the formula automatically updates without you having to change the cell range.

If you need to find a future date based on a number of business days (rather than counting days between two known dates), use the WORKDAY or WORKDAY.INTL function. For example, =WORKDAY(A2, 10, D2:D10) will tell you the date 10 business days after the date in A2, skipping weekends and your specified holidays.

For advanced users, you can use a "string" for the weekend argument in NETWORKDAYS.INTL. Instead of a number, you can use a sequence of seven 0s and 1s in quotation marks, where 0 is a work day and 1 is a weekend. The string starts on Monday. For example, "0000011" represents a standard Sat/Sun weekend, while "0000001" represents only Sunday as a weekend. This allows for highly specific schedules, such as a Tuesday/Thursday weekend.

Troubleshooting

If your formula returns #VALUE!, the most likely cause is that one of your dates is not being recognized as a date. Check for leading spaces or hidden characters in your date cells. A quick way to test this is to change the cell format to "General"; if the date turns into a five-digit number (like 45291), it is a valid date. If it stays as text, you must re-enter it.

If the result is higher than expected, double-check your holiday range. Ensure the range actually covers the dates in your start and end period. If your holiday list is in a different worksheet, ensure the reference is correct (e.g., 'Holidays'!D2:D10).

If you see a #NAME? error, you have likely misspelled the function name. Ensure there are no typos in NETWORKDAYS or NETWORKDAYS.INTL. Also, ensure you are not using a very old version of Excel (pre-2010) that might not support the .INTL variation of the function.

If the calculation is off by exactly one day, determine if your business logic requires the start date to be excluded. As mentioned, Excel counts both boundaries. To exclude the start date, simply subtract 1 from the formula result.

Frequently Asked Questions

Does NETWORKDAYS count the start and end dates?

Yes, the function is inclusive. If the start date is a Monday and the end date is the same Monday, the result is 1.

Can I exclude only Saturdays but keep Sundays as work days?

Yes, use the NETWORKDAYS.INTL function. In the weekend argument, use the number 17, which specifies that Saturday is the only weekend day.

How do I handle half-days or partial business days?

Excel's built-in business day functions only handle whole integers. To account for half-days, you must calculate the total business days and then manually subtract 0.5 for every half-day occurring within that range.

What happens if the start date is a weekend?

The function simply ignores the weekend days. It only counts the days that fall on the designated workdays between the two dates, regardless of whether the start or end date themselves are weekends.

Can I use this formula across different years?

Yes, the formula works across any number of years. However, you must ensure your holiday list includes all the holidays for every year spanned by your start and end dates.

Is there a limit to how many holidays I can list?

There is no practical limit for most users. You can list hundreds of dates in your holiday range without impacting the performance of the calculation.