Google Sheets NETWORKDAYS: Step-by-Step Guide
In this article
NETWORKDAYS in Google Sheets returns the number of working days between two dates, automatically excluding Saturdays and Sundays and any holidays you list. To use it, type =NETWORKDAYS(start_date, end_date, [holidays]) into a cell, replacing the arguments with your dates and an optional range of holiday dates. That is the whole function: two required arguments and one optional one. The rest of this guide covers exact syntax, how to enter dates so Sheets reads them correctly, how to build a holiday list, and what to check when the result looks wrong.
What You'll Need
- A Google account with access to Google Sheets (sheets.google.com or the Google Sheets app).
- Two dates to compare: a start date and an end date.
- Optional: a list of holiday dates in a separate range if you want them excluded.
- Basic familiarity with entering formulas (starting with
=).
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com, sign in, and open an existing sheet or create a new blank one. The steps below apply to the desktop web version; the mobile app works the same way but the formula bar is at the bottom of the screen.
- Enter your start and end dates in separate cells. For example, put
1/6/2025in A2 and1/17/2025in B2. Use a format Sheets recognises, such as2025-01-06or1/6/2025. If Sheets shows the date left-aligned as text, it has not recognised it as a date; reformat the cell to Date via Format > Number > Date and re-enter the value. - Click the cell where you want the result. For instance, C2.
- Type the formula. Enter
=NETWORKDAYS(A2, B2)and press Enter. The cell now shows the number of working days between the two dates, inclusive of both the start and end date. For 1/6/2025 to 1/17/2025, the result is 10. - Add holidays (optional but recommended). List your holiday dates in a separate column, say E2:E5, one date per cell. Then change the formula to
=NETWORKDAYS(A2, B2, E2:E5). Any date in that range that falls on a weekday is subtracted from the count. - Copy the formula down. Drag the fill handle (the small square at the bottom-right of the cell) down to apply the same formula to other rows. Relative references adjust automatically.
- Check the result. Compare a short range manually. For example, Monday to Friday of one week should return 5. If it returns 7, your dates are being read as text or the weekend argument is not what you expect (see Common Mistakes).
Common Mistakes
- Dates stored as text. If a date is left-aligned or shows an apostrophe, NETWORKDAYS may return an error or a wrong count. Fix by reformatting the cell as a date and retyping the value.
- Assuming the end date is excluded. NETWORKDAYS counts both the start and end date if they are weekdays. To exclude the end date, subtract 1 from the result or use
NETWORKDAYS(A2, B2) - 1. - Forgetting that weekends are fixed. NETWORKDAYS always excludes Saturday and Sunday. It cannot be configured for a Friday–Saturday weekend; that requires NETWORKDAYS.INTL, which is a separate function.
- Holiday range includes blanks or text. Blank cells are ignored, but text values in the holiday range can cause a #VALUE! error. Keep the range to actual dates only.
- Using NETWORKDAYS when you meant NETWORKDAYS.INTL. If your work week is not Monday–Friday, use NETWORKDAYS.INTL with a weekend code (for example, 7 for Friday–Saturday).
Tips
- Use absolute references for the holiday range (e.g.,
$E$2:$E$5) so copying the formula down does not shift the holiday list. - Name your holiday range (Data > Named ranges) and use the name in the formula for readability, e.g.,
=NETWORKDAYS(A2, B2, Holidays). - To count working days from today to a future date, use
=NETWORKDAYS(TODAY(), B2). TODAY() updates daily, so the result changes each day. - To count only full working days between two dates excluding both endpoints, use
=NETWORKDAYS(A2, B2) - 2if both endpoints are weekdays, but verify manually for edge cases. - If you need to count working days but include a custom weekend (e.g., Sunday only), NETWORKDAYS.INTL is the correct function; NETWORKDAYS cannot do it.
Troubleshooting
If NETWORKDAYS returns an error or an unexpected number, work through these checks in order.
- #VALUE! error: One or both date arguments are text that Sheets cannot parse, or the holiday range contains non-date values. Reformat the date cells as dates and remove text from the holiday range.
- #NUM! error: The start date is later than the end date. Swap the arguments or check your references.
- Result is 0 or negative: The range may contain only weekend days, or the start date is after the end date. Check the actual dates in the cells.
- Result seems too high: You may have included holidays that fall on weekends (they are already excluded) or your holiday range is larger than intended. Trim the range to the exact holiday cells.
- Formula not updating: Ensure the calculation settings are automatic (File > Settings > Calculation > On change). If set to manual, press Ctrl+Shift+F9 (Windows) or Cmd+Shift+F9 (Mac) to recalculate.
- Dates show as numbers: The cell is formatted as a number, not a date. Format > Number > Date fixes the display without changing the underlying value.
If none of these resolve the issue, try the formula in a fresh sheet with hard-coded dates (e.g., =NETWORKDAYS(DATE(2025,1,6), DATE(2025,1,17))) to isolate whether the problem is the formula or the cell references.
Frequently Asked Questions
Does NETWORKDAYS include the start and end date?
Yes, both the start and end date are counted if they are weekdays. If the start date is a Saturday, it is not counted.
Can NETWORKDAYS handle a custom weekend?
No. NETWORKDAYS always excludes Saturday and Sunday. Use NETWORKDAYS.INTL for a different weekend pattern.
What happens if a holiday falls on a weekend?
It has no effect because weekends are already excluded. Listing it does no harm but does not change the count.
How do I exclude the end date from the count?
Subtract 1 from the result: =NETWORKDAYS(A2, B2) - 1. This works when the end date is a weekday; if it is a weekend, the subtraction may overcorrect, so test with your actual dates.
Can I use NETWORKDAYS with dates in different formats?
Yes, as long as Sheets recognises both as dates. The display format does not matter; the underlying date value does. Use DATE() to avoid ambiguity.
Why does NETWORKDAYS return a decimal?
It should not. If you see a decimal, the cell may contain a different formula or the result is being formatted as a number with decimals. Check the formula and the cell format.