# NETWORKDAYS Function

> Count the working days between two dates with NETWORKDAYS in TX Sheet Control: Saturday and Sunday weekends, a holiday list and negative results.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > NETWORKDAYS Function
- **231 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/networkdays/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/networkdays/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/networkdays/llms-full.txt

---

Return the number of whole working days between two dates. `start_date` and `end_date_or_days` are the first and last day, both counted; Saturdays and Sundays are not working days. The third argument, `weekend_or_holidays`, is an optional date, range or array of holidays to leave out. When the end date is before the start date, the result is negative.

### Syntax

```text
NETWORKDAYS(start_date, end_date_or_days, weekend_or_holidays, holidays)
```

Category: Date & Time. Minimum arguments: 2. Maximum arguments: 4.

Available for supported offline calculation.

### Examples

```text
=NETWORKDAYS(DATE(2026,10,5),DATE(2026,10,9))
```

The formula returns 5, the working days from Monday, October 5, 2026, to Friday, October 9, 2026.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [NEGBINOMDIST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/negbinomdist/llms-full.txt)
- **Next:** [NETWORKDAYS.INTL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/networkdays-intl/llms-full.txt)
