How to Count Business Days in Excel: Step-by-Step
In this article
You can count business days in Excel using the NETWORKDAYS function, which returns the number of working days between two dates, excluding weekends and any holidays you specify. For example, =NETWORKDAYS(A2, B2) gives the business days between the dates in A2 and B2. To include a list of holidays, use =NETWORKDAYS(A2, B2, C2:C10) where C2:C10 holds the holiday dates. If you need to count from a start date forward by a given number of business days, use WORKDAY instead. This guide walks through both functions, how to set them up correctly, and how to avoid common pitfalls.
What You'll Need
- Microsoft Excel (any modern version: Excel for Microsoft 365, Excel 2019, 2021, or Excel for Mac). The functions also work in Excel for the web and Excel mobile apps.
- Two dates between which you want to count business days, or a start date and a number of business days to add.
- Optional: a list of holiday dates in a separate range if you want to exclude them.
Step-by-Step
- Enter your dates. Put the start date in one cell (e.g., A2) and the end date in another (e.g., B2). Ensure Excel recognises them as dates, not text. If they align right by default, they are dates; if they align left, they may be text. You can convert text to dates using Data > Text to Columns or by re-typing them in a recognised format (e.g., 2025-01-15).
- Choose a cell for the result. Click an empty cell where you want the business day count to appear, such as C2.
- Type the NETWORKDAYS formula. Enter =NETWORKDAYS(A2, B2). This counts all days from A2 to B2 inclusive, excluding Saturdays and Sundays. Press Enter. The result is the number of business days.
- Add holidays (optional). If you have a list of holiday dates (e.g., in D2:D10), modify the formula to =NETWORKDAYS(A2, B2, D2:D10). Excel will exclude those dates as well. Holidays that fall on a weekend are already excluded, so you do not need to remove them from the list.
- Use WORKDAY to add business days. If you want to find a future date that is a certain number of business days after a start date, use =WORKDAY(start_date, days, [holidays]). For example, =WORKDAY(A2, 10) returns the date 10 business days after A2, skipping weekends. Add a holiday range as the third argument if needed: =WORKDAY(A2, 10, D2:D10).
- Format the result. If the result appears as a serial number (e.g., 45000), format the cell as a date: select the cell, right-click, choose Format Cells, then Date. For NETWORKDAYS, the result is a number, so no date formatting is needed.
- Copy the formula down. Drag the fill handle to apply the formula to other rows. Relative references will adjust automatically.
Common Mistakes
- Dates stored as text. If NETWORKDAYS returns a #VALUE! error, check that both dates are real dates. You can use =ISNUMBER(A2) to test; it should return TRUE. Convert text dates via Data > Text to Columns or by using the DATEVALUE function.
- Inclusive vs. exclusive counting. NETWORKDAYS includes both the start and end dates. If you need to exclude the start date, subtract 1 from the result: =NETWORKDAYS(A2, B2)-1. Similarly, if you want to exclude both endpoints, subtract 2.
- Holiday range includes non-date values. The holidays argument must be a range of valid dates. Blank cells or text in the range are ignored, but if the range includes a cell with a time value, it may be treated as a date. Keep the holiday list clean.
- Using NETWORKDAYS.INTL incorrectly. The international version allows custom weekends (e.g., Friday-Saturday). The weekend argument is a number or string; using the wrong code can give unexpected results. For example, 7 means Friday and Saturday. See Excel's documentation for the full list.
- Forgetting to lock the holiday range. When copying the formula down, use absolute references for the holiday range (e.g., $D$2:$D$10) so it does not shift.
Tips
- Use named ranges for holidays to make formulas easier to read: select the holiday cells, type a name in the Name Box (e.g., Holidays), then use =NETWORKDAYS(A2, B2, Holidays).
- If you need to count business days but your weekend is not Saturday-Sunday, use NETWORKDAYS.INTL. For example, =NETWORKDAYS.INTL(A2, B2, 7) treats Friday and Saturday as the weekend. The weekend argument can also be a string like "0000011" to define custom weekends.
- To calculate the number of business days between today and a future date, use =NETWORKDAYS(TODAY(), B2). TODAY() updates automatically.
- For a quick visual check, apply conditional formatting to highlight weekends and holidays in your date range.
- Remember that NETWORKDAYS counts both start and end dates if they are business days. If you need the number of full business days between dates (excluding both endpoints), adjust accordingly.
Troubleshooting
- #VALUE! error: Likely one or both dates are text. Check with =ISNUMBER(). Convert text to dates using DATEVALUE or by re-entering in a recognised format.
- #NUM! error: The start date is later than the end date in NETWORKDAYS. Swap the dates or use a formula that handles reversed ranges, such as =MAX(0, NETWORKDAYS(A2, B2)).
- Incorrect count due to holidays: Verify the holiday range contains only dates and that it is correctly referenced. Use absolute references if copying.
- Formula not updating: Check that calculation is set to Automatic (Formulas > Calculation Options > Automatic). If set to Manual, press F9 to recalculate.
- Weekend definition wrong: If your weekends are not Saturday-Sunday, switch to NETWORKDAYS.INTL and set the weekend argument appropriately.
- Dates appear as numbers: Format the result cell as a date if using WORKDAY. For NETWORKDAYS, the result is a number and should not be formatted as a date.
Frequently Asked Questions
What is the difference between NETWORKDAYS and WORKDAY?
NETWORKDAYS counts the number of business days between two dates. WORKDAY returns a date that is a specified number of business days before or after a start date.
Can I count business days excluding custom weekends?
Yes, use NETWORKDAYS.INTL. The weekend argument lets you define which days are weekends, either by a number code or a 7-character string of 0s and 1s.
How do I exclude holidays that fall on weekends?
You don't need to. NETWORKDAYS automatically excludes weekends, so holidays on weekends are already ignored. Including them in the holiday list does not affect the count.
Does NETWORKDAYS include the start and end dates?
Yes, if the start or end date is a business day, it is counted. To exclude one endpoint, subtract 1 from the result.
Why does my formula return a decimal?
NETWORKDAYS returns a whole number. If you see a decimal, you may have accidentally included time values in the dates. Ensure dates have no time component, or use INT to extract the date part.
Can I use these functions in Excel for Mac?
Yes, NETWORKDAYS and WORKDAY are available in Excel for Mac, as well as Excel for the web and mobile apps.