Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Get Workdays in Excel: Step-by-Step Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To get workdays in Excel, use the NETWORKDAYS function for a simple count between two dates, or WORKDAY to find a future or past working date. Both exclude weekends by default and can skip holidays you list. This guide walks through each function, shows how to add holidays, and covers common mistakes so your counts stay accurate.

What You'll Need

  • Excel 2010 or later (NETWORKDAYS and WORKDAY are built in; NETWORKDAYS.INTL and WORKDAY.INTL need Excel 2010+).
  • Two dates: a start date and an end date (for NETWORKDAYS) or a start date and a number of workdays (for WORKDAY).
  • Optional: a list of holiday dates in a separate range if you want to exclude them.
  • Basic familiarity with entering formulas and cell references.

Step-by-Step

  1. Enter your dates. Put the start date in one cell (e.g., A2) and the end date in another (e.g., B2). Use a format Excel recognises, such as 1/15/2025 or 15-Jan-2025. If Excel treats them as text, re-enter them or use DATE(2025,1,15).
  2. Count workdays between two dates. Click an empty cell and type =NETWORKDAYS(A2,B2). Press Enter. The result is the number of working days from A2 to B2 inclusive, excluding Saturdays and Sundays.
  3. Exclude holidays. List holiday dates in a separate range, say D2:D10. Then use =NETWORKDAYS(A2,B2,D2:D10). Any date in that range that falls on a weekday is also excluded.
  4. Find a future workday. To get the date that is a certain number of workdays after a start date, use =WORKDAY(A2,10). This returns the date 10 workdays after A2, skipping weekends. Add a holiday range as a third argument: =WORKDAY(A2,10,D2:D10).
  5. Find a past workday. Use a negative number: =WORKDAY(A2,-5) gives the date 5 workdays before A2.
  6. Customise weekends (optional). If your weekend is not Saturday/Sunday, use NETWORKDAYS.INTL or WORKDAY.INTL. The third argument is a weekend code: 1 = Saturday/Sunday, 2 = Sunday/Monday, 7 = Friday/Saturday, and so on. For example, =NETWORKDAYS.INTL(A2,B2,7) counts workdays with a Friday/Saturday weekend. You can also use a 7-character string of 1s and 0s to define exactly which days are weekend (1 = weekend).
  7. Format the result. NETWORKDAYS returns a number; WORKDAY returns a date serial number. If WORKDAY shows a number like 45678, format the cell as a date (Home > Number Format > Short Date).
  8. Copy the formula down. Drag the fill handle to apply the formula to other rows. Use absolute references (e.g., $D$2:$D$10) for the holiday range so it does not shift.

Menu labels can differ slightly by Excel version and platform; the formulas themselves are the same on Windows, Mac, and Excel for the web.

Common Mistakes

  • Dates stored as text. If NETWORKDAYS returns #VALUE!, check that your dates are real dates, not text. Use ISNUMBER(A2) to test; if FALSE, re-enter the date or convert it.
  • Forgetting that both start and end dates are included. NETWORKDAYS counts both the start and end date if they are workdays. If you need to exclude one end, adjust the formula (e.g., use B2-1 as the end date).
  • Holiday range includes weekends. That is fine—weekends are already excluded, so a weekend holiday has no extra effect. But a holiday that falls on a workday will reduce the count.
  • Using WORKDAY without formatting. The result may look like a plain number; format it as a date to see the actual day.
  • Relative holiday references. When copying formulas, a relative holiday range (D2:D10) will shift and miss holidays. Use $D$2:$D$10.
  • Assuming NETWORKDAYS.INTL is available in older Excel. It requires Excel 2010 or later. In Excel 2007, only NETWORKDAYS and WORKDAY exist (with Saturday/Sunday weekends).

Tips

  • Use a named range for holidays (Formulas > Define Name) to make formulas easier to read and maintain.
  • To count workdays in a month, use NETWORKDAYS with the first and last day of the month, e.g., =NETWORKDAYS(DATE(2025,1,1),EOMONTH(DATE(2025,1,1),0)).
  • Combine WORKDAY with TEXT to display the resulting date in a specific format: =TEXT(WORKDAY(A2,10),"dd-mmm-yyyy").
  • If you need to count only specific weekdays (e.g., Mondays), use SUMPRODUCT with WEEKDAY, but NETWORKDAYS.INTL covers most weekend patterns.
  • Remember that NETWORKDAYS.INTL's weekend string uses 1 for weekend and 0 for workday, starting with Monday. For example, "0000011" means Saturday and Sunday are weekends.

Troubleshooting

  • #VALUE! error: Usually a date is text or a holiday range contains text. Check with ISNUMBER and clean the data.
  • #NUM! error: The start date is after the end date in NETWORKDAYS, or the weekend code is invalid in NETWORKDAYS.INTL. Swap the dates or use a valid code (1–7 or a 7-character string).
  • Result seems off by one: Confirm whether you want both endpoints included. NETWORKDAYS includes both; if you want exclusive, subtract 1 or adjust the end date.
  • Holidays not excluded: Check that the holiday range is correct and that the dates are real dates, not text. Also ensure the range is absolute if copied.
  • WORKDAY returns a weekend date: That should not happen unless the start date is a weekend. WORKDAY always returns a workday; if the start date is a weekend, it moves forward to the next workday.
  • Function not recognised: If you see #NAME?, the function may not be available in your Excel version. NETWORKDAYS.INTL and WORKDAY.INTL require Excel 2010+. Use the basic versions or update Excel.

Frequently Asked Questions

What is the difference between NETWORKDAYS and WORKDAY?

NETWORKDAYS counts the number of workdays between two dates. WORKDAY returns a date that is a specified number of workdays away from a start date.

Can I exclude holidays that fall on weekends?

Yes, but it makes no difference because weekends are already excluded. Including them in the holiday list is harmless.

How do I count workdays with a Friday-Saturday weekend?

Use NETWORKDAYS.INTL with weekend code 7: =NETWORKDAYS.INTL(start,end,7). For WORKDAY.INTL, use the same code as the third argument.

Does NETWORKDAYS include the start and end date?

Yes, both are included if they are workdays. To exclude one, adjust the dates in the formula.

Why does WORKDAY return a number instead of a date?

The cell is formatted as General or Number. Format it as a date to display the date value.

Can I use these functions in Excel for the web?

Yes, NETWORKDAYS, WORKDAY, NETWORKDAYS.INTL, and WORKDAY.INTL are supported in Excel for the web.