It usually starts with a number that has to be right: payroll needs the exact count of working days in the period, HR is working out how much leave somebody took. Or a contract says "delivery within 15 working days," the client asks when that lands, and everyone turns to look at you — you're the one with the spreadsheet open.
So you count on your fingers, a colleague counts too — two different numbers. The difference, as always: a weekend somebody forgot, or a bank holiday nobody wrote down.
The good news: Excel and Google Sheets have functions built for exactly this, and the basic one takes ten seconds to type. The bad news: they have quiet quirks that produce wrong answers without warning — the number just sits there, looking confident, being wrong.
Short answer
If your weekend is Saturday and Sunday, use =NETWORKDAYS(start_date, end_date). It counts every Monday-to-Friday day between the two dates — including both the start date and the end date. To knock out public holidays too, add a holiday range as a third argument: =NETWORKDAYS(start_date, end_date, holidays). If your weekend falls on different days, NETWORKDAYS.INTL lets you choose it. And if you have a start date plus a number of working days and need the deadline date, that's WORKDAY: =WORKDAY(start_date, days, holidays).
NETWORKDAYS: the basic count
Put your start date in A2 and your end date in B2, then type:
=NETWORKDAYS(A2, B2)
NETWORKDAYS walks from start date to end date, counting every day that isn't a Saturday or a Sunday. Both endpoints count if they're weekdays — a Monday and that week's Friday return 5, not 4.
It deals only in whole days: no rounding, no partial credit. Google Sheets has the identical function, so all of this types straight into Sheets as-is. But its weekend is hard-wired — for anything else you'll need its sibling, coming shortly.
Why your answer is one more than you expected
This is the most common complaint about NETWORKDAYS, and it isn't a bug: the function counts days worked, not the gap between two dates.
A support-forum post that stuck with me: someone analysing processing times compared NETWORKDAYS with a plain subtraction. Monday 29 June to Thursday 2 July came out as 4 working days but only 3 by subtraction, and they were convinced one function was lying. Neither was. Subtraction measures the distance — how far you'd travel. NETWORKDAYS counts the days you'd actually be at your desk: Monday, Tuesday, Wednesday, Thursday. Four at work, three of distance.
So if your mental model is "how many days will pass," subtract 1 — but do it knowingly, because the blanket fix bites people too. One forum user ran an outstanding-jobs sheet where a job logged today showed as 1 day outstanding, not 0. They appended −1, and the cell replied with a date in January 1900: the formula worked, but the cell was still formatted as a date — and "0" in a date costume is the start of Excel's calendar. The −1 trick also goes quietly wrong when the start date lands on a weekend — that day was never counted.
Excluding holidays
Weekends are only half the story — Christmas Day doesn't stop being a holiday because your formula doesn't know it. The fix is a holiday list — one date per cell in a spare range, say H2:H12 — passed in like this:
=NETWORKDAYS(A2, B2, $H$2:$H$12)
Notice the dollar signs: copy the formula down a column without them and the range slides, pointing at empty cells. Use absolute references, or name the list Holidays — =NETWORKDAYS(A2, B2, Holidays) — since named ranges don't drift.
Worth knowing: a holiday on a weekend costs nothing extra, and one outside your window is ignored — so keep the whole year's list in place and reuse it.
The dangerous failure is the silent one. If your list was pasted from an email or another system, the "dates" may be text that merely looks like dates. NETWORKDAYS won't complain — it just won't recognise them, and your count comes out too high. Quick test: real dates sit right-aligned and change with the number format; text sits left and stays put. And never type a holiday into the formula in curly braces, like {25/12/2025} — that's arithmetic, not a date. Use a cell, or DATE(2025, 12, 25).
When your weekend isn't Saturday and Sunday
NETWORKDAYS assumes a Saturday–Sunday weekend — wrong for a big chunk of the world. Plenty of offices run a Friday–Saturday weekend; some work six days, resting on one. That's NETWORKDAYS.INTL — same idea, plus a weekend code:
=NETWORKDAYS.INTL(A2, B2, 7, $H$2:$H$12)
The codes you'll actually meet: 1 Saturday–Sunday (the default), 6 Thursday–Friday, 7 Friday–Saturday. Single-day codes run 11 (Sunday only) to 17 (Saturday only), for six-day weeks. If no code fits, hand it a seven-character string, one character per day starting Monday, 1 meaning "day off": "0000011" is Saturday–Sunday longhand; "0000110" makes Friday and Saturday the days off.
This has genuinely not always been this easy. An old 2005 forum thread — pre-INTL — has a poster whose office rested Friday–Saturday explaining NETWORKDAYS kept giving inconsistent answers. The replies are a museum of pain: monster SUMPRODUCT formulas, and a suggestion to shift every date by a day to trick the function into moving its weekend. Twenty years on, it's one argument.
WORKDAY: from "15 working days" to an actual date
Counting days answers "how long did that take?" Half the time the real question runs the other way: "we start Monday, it takes 15 working days — when do we finish?"
=WORKDAY(A2, 15, $H$2:$H$12)
Give it a start date and a number of working days; it returns the date you land on, skipping weekends and anything in your holiday list. WORKDAY.INTL does the same with a weekend code.
One asymmetry to burn into your brain: WORKDAY does not count the start date — it's day zero, so =WORKDAY(Monday, 1) hands you Tuesday. That's the mirror image of NETWORKDAYS counting both ends — why the two pair up so neatly in the worked example below. Negatives work too: "launch is Friday, everything ready 10 working days before" is =WORKDAY(launch_date, -10).
The four functions at a glance
| Function | What it returns | Reach for it when |
|---|---|---|
NETWORKDAYS | Working days between two dates, both included | Timesheets, leave, turnaround times |
NETWORKDAYS.INTL | Same count, your choice of weekend | Fri/Sat weekends, six-day weeks |
WORKDAY | Date a set number of working days from start | Deadlines quoted in working days |
WORKDAY.INTL | Same, with a custom weekend | Deadlines where the weekend isn't Sat/Sun |
Same month, across months — does it matter?
No — and this trips up people building monthly timesheets. NETWORKDAYS doesn't think in months at all — it walks the calendar day by day, whatever that crosses.
March 2025 is a tidy test: it runs from Saturday 1 March to Monday 31 March, and =NETWORKDAYS(DATE(2025,3,1), DATE(2025,3,31)) returns 21. Five tidy weeks would suggest 25; starting on a weekend sheds days at both ends. For monthly payroll, use one formula per month with that month's first and last dates, all pointing at the same shared, named holiday list.
Worked example: a three-week project
Let's do one slowly, wall-calendar style. A project kicks off on Monday 3 March 2025 and wraps on Friday 21 March 2025. How many working days is that?
Count it by hand: week one, Monday 3 to Friday 7 March: 5. Weekend: skipped. Week two, Monday 10 to Friday 14: 5 more, running total 10. Weekend: skipped. Week three, Monday 17 to Friday 21: 5 more. Total: 15 working days across 19 calendar days.
The formula (3 March in A2, 21 March in B2):
=NETWORKDAYS(A2, B2)
It returns 15. Fingers and formula agree.
Now add a closure day — Wednesday 19 March. Put 19/03/2025 in H2 and add the list:
=NETWORKDAYS(A2, B2, $H$2:$H$12)
Now it returns 14 — one weekday removed, one day removed. (Had it stayed at 15, check whether H2 holds a real date or text in disguise.)
Same dates, Friday–Saturday weekend — =NETWORKDAYS.INTL(A2, B2, 7): also 14. Five Fri/Sat weekend days drop out, but Sundays 9 and 16 count as working days.
Finally, cross-check from the other direction: fifteen working days counted inclusively from Monday 3 March should equal fourteen counted forward from it, since WORKDAY doesn't count the starting day:
=WORKDAY(A2, 14)
It returns Friday 21 March 2025 — the end date we started with. When count and landing date agree, you can be confident in both.
When it breaks: negatives, #VALUE! and times
You got a negative number. Nothing's broken. Swap the dates so the end comes first and NETWORKDAYS counts backwards — the March example reversed returns −15. Sometimes that's exactly what you want: days overdue, counted back from today. Wrap it in ABS(...) if you only need the size.
You got #VALUE!. One of your "dates" isn't one. Classic souvenir of a CSV import: the column looks like dates, reads like dates, is stored as text — and NETWORKDAYS chokes rather than guessing. (A text holiday doesn't even earn the error — it's silently ignored.) Fix: re-type them as real dates, convert the column with DATEVALUE, or build dates with DATE(year, month, day).
Your dates have times hiding in them. Dates pulled from a timestamped system often carry a time of day — 3 March at 4:45 pm. NETWORKDAYS ignores the time completely: a request logged at 4:45 pm counts that whole day as worked, and one resolved at 9 next morning counts both days in full. Often that's the convention you want; just don't mistake it for elapsed time. It counts days touched, not 24-hour blocks.
FAQ
Why is NETWORKDAYS giving me one more day than I counted? Because it counts both the first and last day: Monday-to-Friday is 5, not 4. If you truly want the gap between the dates, subtract 1 — carefully, if your start date falls on a weekend.
My holiday list is in the formula but the count doesn't change. Why? Almost always one of three things: text-formatted holidays (alignment test above), a relative range that slid when copied (fix: $ signs or a named range), or a holiday on a weekend, so nothing should change.
Can I count a four-day week, or only Mondays? Yes — NETWORKDAYS.INTL. Its codes cover one- and two-day weekends in every combination; the seven-character string covers anything stranger, like a workplace closed Wednesdays: "0010000".
Why #VALUE! when the dates look perfectly fine? "Looks fine" is the trap: the cell holds text styled like a date, usually after an import. Dates are just numbers in a costume: if changing the number format changes nothing on screen, it isn't one.
Do these formulas work the same in Google Sheets? Yes — all four exist in Sheets, same arguments, same order. One watch-out: locale. A US-locale file reads 03/04/2025 as March 4th; a UK-locale one reads 3 April — a swap that won't error, just quietly be the wrong date.
Conclusion
Counting working days by hand reliably eats an afternoon; it doesn't have to. NETWORKDAYS for the count, NETWORKDAYS.INTL for odd weekends, WORKDAY when you need a date instead of a count — plus three habits: NETWORKDAYS counts both ends, holidays stay as real dates in one named list, and big answers get cross-checked with WORKDAY.
One last habit, for the numbers you'd rather not get wrong. When a count really matters — a payroll run, a visa application with a working-day window, a contract deadline with penalties attached — take ten seconds to double-check it on CalcZila with its online business days calculator before it goes anywhere. Two tools agreeing is cheap insurance against a mistyped date or a holiday list that quietly stopped working — far cheaper than explaining a wrong deadline after the fact.




No comments:
Post a Comment