To calculate business days in Excel, use the NETWORKDAYS function for the number of days between two dates, or the WORKDAY function to find a future or past date based on a set number of working days. These functions automatically exclude Saturdays and Sundays, ensuring your project timelines and payroll calculations remain accurate without manual counting.

What You'll Need

  • Microsoft Excel (any modern version, including Office 365, Excel 2021, 2019, or 2016).
  • A start date and an end date entered into cells (formatted as Dates).
  • An optional list of holiday dates if you want to exclude public holidays from the count.

Step-by-Step

Method 1: Calculating the Number of Working Days Between Two Dates

Use this method when you have a start date and an end date and need to know how many business days elapsed between them.

  1. Enter your dates: In cell A2, enter your start date (e.g., 01/01/2024). In cell B2, enter your end date (e.g., 01/15/2024). Ensure these cells are formatted as "Date" via the Home tab > Number format dropdown.
  2. Create a Holiday List (Optional): If there are specific holidays (like New Year's Day or Independence Day) that should not count as business days, list them in a separate column. For example, enter holiday dates in cells E2 through E5.
  3. Enter the NETWORKDAYS formula: Click on cell C2 and type the following formula: =NETWORKDAYS(A2, B2, E2:E5).
  4. Understand the arguments:
    • A2: The start date.
    • B2: The end date.
    • E2:E5: The optional range containing your holiday dates. If you don't have holidays, simply leave this blank: =NETWORKDAYS(A2, B2).
  5. Press Enter: Excel will return a whole number representing the total business days, including both the start and end date if they fall on weekdays.

Method 2: Finding a Future Date Based on Working Days

Use this method when you know a task takes 10 business days to complete and you need to find the exact calendar date it will be finished.

  1. Enter your start date: In cell A2, enter the date the project begins.
  2. Enter the number of days: In cell B2, enter the number of business days required (e.g., 10).
  3. Enter the WORKDAY formula: In cell C2, type: =WORKDAY(A2, B2, E2:E5).
  4. Analyze the result: Excel will calculate the date that occurs 10 business days after the start date, skipping weekends and any holidays listed in the range E2:E5.
  5. Format the cell: If the result appears as a five-digit number (e.g., 45321), this is Excel's internal date code. Change the cell format to "Short Date" using the Number format menu on the Home tab to see the actual date.

Method 3: Handling Non-Standard Weekends (NETWORKDAYS.INTL)

Standard functions assume Saturday and Sunday are the weekend. If your business operates on a different schedule (e.g., only Sunday is a day off), use the "International" version of the formula.

  1. Enter your dates: Place your start date in A2 and end date in B2.
  2. Enter the NETWORKDAYS.INTL formula: Type =NETWORKDAYS.INTL(A2, B2, [weekend], E2:E5).
  3. Select your weekend code: Instead of [weekend], enter a number from the Excel menu that appears as you type. Common codes include:
    • 1: Saturday, Sunday (Default)
    • 2: Sunday, Monday
    • 11: Sunday only
    • 17: Saturday only
  4. Example: To calculate business days where only Sunday is a holiday, use =NETWORKDAYS.INTL(A2, B2, 11, E2:E5).

Common Mistakes

  • Incorrect Date Formatting: Entering dates as text (e.g., typing "Jan 1st" instead of "1/1/2024") prevents Excel from recognizing the value as a number. Always use standard date formats.
  • Including the Start Date: NETWORKDAYS includes both the start and end date in its count. If your business logic requires you to start counting from the *next* day, you must subtract 1 from the result: =NETWORKDAYS(A2, B2) - 1.
  • Mixing up WORKDAY and NETWORKDAYS: A common error is using WORKDAY when you want to find the number of days, or NETWORKDAYS when you want to find a future date. Remember: NETWORKDAYS = "How many?", WORKDAY = "When?".
  • Forgetting the Holiday Range: If you omit the holiday range, Excel only removes Saturdays and Sundays. This often leads to overestimated project timelines because public holidays are counted as working days.
  • Circular References: Placing the formula in a cell that is part of the holiday range will cause a circular reference error, as the formula is trying to calculate based on its own value.

Tips

  • Use Named Ranges for Holidays: Instead of typing E2:E5, highlight those cells and name the range "Holidays" in the Name Box (top left). Your formula becomes =NETWORKDAYS(A2, B2, Holidays), which is much easier to read and maintain.
  • Dynamic Holiday Lists: Create your holiday list on a separate tab called "Settings." This keeps your main data sheet clean and allows you to update holidays once for the entire workbook.
  • Negative Days: In the WORKDAY function, you can enter a negative number in the second argument to calculate a date in the past (e.g., finding the date 5 business days ago).
  • Data Validation: Use Data Validation (Data tab > Data Validation) on your date entry cells to ensure users can only enter valid dates, preventing #VALUE! errors in your formulas.

Troubleshooting

If your business day calculations are not working as expected, follow these steps in order:

  1. Check for #VALUE! Errors: This usually means one of your dates is not actually a date. Select the cell and check the Number Format. If it is set to "Text," change it to "Date" and re-type the entry.
  2. Verify the Result Format: If your WORKDAY formula returns a number like 45120, the formula is working correctly, but the cell is formatted as a "General" number. Change the format to "Short Date."
  3. Audit the Holiday Range: If the count is higher than expected, check your holiday list. Ensure the dates in the holiday range are formatted as dates and not text. If a holiday date is entered as text, Excel will ignore it and count it as a business day.
  4. Check for Hidden Spaces: Sometimes dates imported from other software contain hidden leading or trailing spaces. Use the =TRIM() function or the Find and Replace tool to remove extra spaces.
  5. Confirm Weekend Settings: If you are using NETWORKDAYS.INTL and getting an unexpected number, double-check the weekend integer code. Using 1 when you meant 11 will result in a significant difference in the final count.

Frequently Asked Questions

Does NETWORKDAYS count the first day?

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

Can I exclude specific days like Wednesdays?

Yes, by using NETWORKDAYS.INTL. Instead of using a number for the weekend argument, you can use a "string" of seven 0s and 1s in quotes. A "1" represents a non-working day and "0" a working day, starting from Monday. For example, "0001000" would make Wednesday the only weekend day.

How do I calculate business hours instead of days?

Excel does not have a built-in NETWORKHOURS function. You must calculate the total business days, multiply by the hours in a workday (e.g., 8), and then manually add or subtract the partial hours from the start and end days.

Why is my formula returning a negative number?

In NETWORKDAYS, if the start date is chronologically after the end date, Excel will return a negative integer. Ensure your start date is the earlier of the two dates.

Does this work in Google Sheets?

Yes, NETWORKDAYS and WORKDAY function identically in Google Sheets, using the same syntax and arguments as Microsoft Excel.