Skip to main content
← All functions

NETWORKDAYS function

Returns the number of whole working days between start_date and end_date. Working days exclude weekends and any dates identified in holidays. Use NETWORKDAYS to calculate employee benefits that accrue based on the number of days worked during a specific term.

Syntax

NETWORKDAYS(start_date, end_date, [holidays])

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
start_dateYesRequired. A date that represents the start date."2012-10-1"
end_dateYesRequired. A date that represents the end date."2013-3-1"
holidaysNoOptional. An optional range of one or more dates to exclude from the working calendar, such as state and federal holidays and floating holidays. The list can be either a range of cells that contains the dates or an array constant of the serial numbers that represent the dates."2012-11-22"

Try NETWORKDAYS

Count weekdays including both endpoints

=NETWORKDAYS(D2,D3)

Count weekdays including both endpoints. The result is checked against a separately authored expected value for the supplied table. You can edit the data to explore the rule.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

NETWORKDAYS · top-level call

=NETWORKDAYS(D2,D3)

1 / 2 · start_date

Required. A date that represents the start date.

NETWORKDAYS reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.