# NETWORKDAYS formula generator

> Describe what you need and get a NETWORKDAYS formula for Excel and Google Sheets, run on real data before you copy it. Plus 6 tested NETWORKDAYS examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/networkdays · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

NETWORKDAYS counts the working days between two dates, Monday to Friday, including both the start and end date.

Describe the task at [NETWORKDAYS formula generator](https://spreadsheetpractice.com/tools/formula-generator/networkdays) and get a NETWORKDAYS formula for Excel and Google Sheets, tested on real data.

## Tested NETWORKDAYS examples

### Count working days between two dates

`=NETWORKDAYS(B2,C2,$F$2:$F$3)`

Excel. Result on the sample sheet: 4 rows (D2:D5). [See it and try it](https://spreadsheetpractice.com/formulas/working-days-between-two-dates)

### Calculate the number of working days in a month

`=NETWORKDAYS(EOMONTH(A2,-1)+1,EOMONTH(A2,0),$D$2:$D$6)`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/working-days-in-a-month)

### Calculate the number of overlapping days between two date ranges

`=MAX(0,MIN(C2,$G$2)-MAX(B2,$G$1)+1)`

Excel. Result on the sample sheet: 5 rows (D2:D6). [See it and try it](https://spreadsheetpractice.com/formulas/overlapping-days-between-two-date-ranges)

### List only weekdays between two dates

`=WORKDAY(B1-1,SEQUENCE(NETWORKDAYS(B1,B2)))`

Excel. Result on the sample sheet: 10 rows (D2:D11). [See it and try it](https://spreadsheetpractice.com/formulas/list-weekdays-between-two-dates)

### Calculate working hours between two dates and times

`=((NETWORKDAYS(B2,C2)-1)*($G$2-$G$1)+IF(NETWORKDAYS(C2,C2),MEDIAN(MOD(C2,1),$G$1,$G$2),$G$2)-MEDIAN(NETWORKDAYS(B2,B2)*MOD(B2,1),$G$1,$G$2))*24`

Excel. Result on the sample sheet: 6 rows (D2:D7). [See it and try it](https://spreadsheetpractice.com/formulas/working-hours-between-two-dates-and-times)

## Questions

### What does the NETWORKDAYS formula generator do?

You describe the task in plain English, and it writes the formula, using NETWORKDAYS where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does NETWORKDAYS do?

NETWORKDAYS counts the working days between two dates, Monday to Friday, including both the start and end date.

### Can I learn to write NETWORKDAYS formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the NETWORKDAYS function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
