How to Count Working Days in Excel: Easy Steps
In this article
To count working days in Excel, use the NETWORKDAYS or NETWORKDAYS.INTL functions—these automatically exclude weekends and optional holidays. No add-ins or macros are required; just ensure your dates are valid Excel serial numbers and holidays are listed as a range or array.
What You'll Need
- Excel installed (Microsoft 365, Excel 2016 or later, or Excel for the web)
- Start date and end date in separate cells (formatted as dates, not text)
- Optional: A list of holiday dates in a column or row (e.g., A2:A10)
Step-by-Step
- Prepare your date cells: Enter your start date in one cell (e.g., A2) and end date in another (e.g., B2). Ensure both cells are formatted as dates: right-click > Format Cells > Date, or type dates like
1/15/2025(Excel auto-recognizes standard formats). - Enter the basic working days formula: In a new cell (e.g., C2), type
=NETWORKDAYS(A2,B2)and press Enter. This counts all weekdays (Monday–Friday) between the two dates, inclusive of start and end dates if they fall on weekdays. - Add a holiday range (if applicable): List holidays in a column (e.g., E2:E6: New Year’s Day, Independence Day, etc.). Then update your formula to
=NETWORKDAYS(A2,B2,E2:E6). This excludes both weekends *and* the listed holidays. - Customize weekend days (non-standard schedules): If your weekend isn’t Saturday–Sunday (e.g., Friday–Saturday in some regions), use
NETWORKDAYS.INTL. For example,=NETWORKDAYS.INTL(A2,B2,1,E2:E6)uses weekend code1(Sat–Sun off). To set Sunday–Monday as weekends, use code11:=NETWORKDAYS.INTL(A2,B2,11). - Handle partial days manually (if needed): Excel’s built-in functions count full days only. For half-days, calculate total days and divide by 2 (e.g.,
=NETWORKDAYS(A2,B2,E2:E6)/2), but verify logic matches your organization’s policy—some count any time worked as a full working day. - Verify results: Manually spot-check a short range. For example, if A2 = 1/1/2025 (Wed) and B2 = 1/6/2025 (Mon),
=NETWORKDAYS(A2,B2)should return 4 (Jan 2–3 Wed–Thu, Jan 6 Mon; Jan 1 and 4–5 are weekend/holiday depending on your list).
Common Mistakes
- Text-formatted dates: If cells show #VALUE! or formulas return 0, dates may be stored as text. Fix by selecting the range > Data > Text to Columns > Finish (or use
=DATE(YEAR(A2),MONTH(A2),DAY(A2))to re-convert). - Excluding the start or end date: NETWORKDAYS *includes* both endpoints if they’re valid weekdays. To exclude the start date, use
=NETWORKDAYS(A2+1,B2). - Incorrect holiday range format: Holidays must be actual date values—not text like “Jan 1”—or they’ll be ignored. Validate by selecting a holiday cell and checking the formula bar for a serial number (e.g., 45300 for 1/1/2024).
- Using the wrong function for your Excel version: NETWORKDAYS.INTL requires Excel 2010 or later. In older versions, use the Analysis ToolPak add-in or manually subtract weekends.
- Ignoring time zones: Excel stores dates as serial numbers based on your system’s time zone. If dates span daylight saving transitions, results remain accurate for full calendar days but may misalign with business hours across zones.
Tips
- Use named ranges for holidays: Select your holiday column > Formulas > Define Name > “Holidays”. Then use
=NETWORKDAYS(A2,B2,Holidays)for cleaner, reusable formulas. - Dynamic holiday lists: Link to a shared holiday calendar (e.g., Google Calendar via CSV export) and import weekly. Update the range, and all formulas refresh automatically.
- Highlight non-working days visually: Apply conditional formatting to your date column: Home > Conditional Formatting > New Rule > Use a formula >
=WEEKDAY(A2,2)>5> Format red. This helps audit weekend dates. - For project planning, add buffer days: Use
=WORKDAY(A2,NETWORKDAYS(A2,B2)-2)to find the deadline adjusted for 2 fewer working days than calculated—useful for risk mitigation. - Check regional defaults: In Excel Options > Advanced > Use system separators, ensure your date format matches local conventions (e.g., DD/MM/YYYY in Europe).
Troubleshooting
If your working day count seems off:
- Restart Excel: Sometimes calculation flags get stuck. Close and reopen the workbook.
- Force recalculation: Press F9 (Windows) or ⌘+Option+F9 (Mac) to force full recalculation. If manual calc is on (Formulas > Calculation Options), switch to Automatic.
- Check date validity: In a blank cell, type
=ISNUMBER(A2). If FALSE, the date isn’t recognized. Convert using=DATEVALUE(TEXT(A2,"mm/dd/yyyy")). - Verify weekend codes: For NETWORKDAYS.INTL, confirm your weekend code matches your schedule. Code 1 = Sat/Sun, 2 = Sun/Mon, 7 = Sat/Sun (EU), 11 = Sun/Mon ( Middle East). Use
1unless you need custom weekends. - Check for hidden characters: Holidays copied from web pages may include invisible spaces. Paste into Notepad first, then back to Excel, or use
=TRIM(CLEAN(E2))on holiday cells. - Test with a simple range: Try A2=1/2/2025 (Fri), B2=1/6/2025 (Mon). Expected: 2 days (Fri, Mon). If you get 1, you’re excluding the start date—add +1 or adjust the formula to
=NETWORKDAYS(A2,B2)+1if your business policy excludes the start date.
Frequently Asked Questions
Does NETWORKDAYS include holidays by default?
No—it only excludes weekends (Saturday–Sunday by default). You must explicitly supply a holiday range as the third argument to exclude them.
Can I count working days across months or years?
Yes. NETWORKDAYS handles any valid date range, including those spanning multiple months or years. Just ensure your start/end dates are in chronological order (if reversed, it returns a negative number).
How do I handle holidays that fall on weekends?
Excel’s built-in functions do *not* auto-adjust for this. If a holiday lands on a Saturday, and your weekend is Sat–Sun, it’s already excluded. If your policy moves the holiday to Monday, add the *moved* date (Monday) to your holiday list—not the original Saturday date.
Is there a limit to how many holidays I can list?
In Excel for Microsoft 365 and 2021+, the holiday range can be up to 254 days. Older versions (2016–2019) support up to 30. For large lists, use arrays: =NETWORKDAYS(A2,B2,{45300,45305,45310}) (dates as serial numbers).
Why does WORKDAY return a weekend date?
WORKDAY adds working days *forward* and always returns the next valid working day. If adding 5 days lands on a Saturday, it rolls to Monday. To avoid this, use =WORKDAY.INTL(...,1) (code 1 = Sat–Sun off) or adjust your weekend code.
Can I use this in Excel for the web?
Yes—both NETWORKDAYS and NETWORKDAYS.INTL work in Excel for the web. However, holiday ranges must be in the same workbook; external file references may not load correctly.