WORKDAY
Returns the date serial that is a given number of weekdays from a start date.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=WORKDAY(start_date, days, [holidays])
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
start_date | number | Required | — |
days | number | Required | — |
holidays | any | Optional | — |
Remarks
- A date argument may be text holding a date or time (
"10/26/1999","1999-10-26 14:05"), read as its serial; text that is neither a number nor a date returns#VALUE!. - Positive
daysmoves forward; negativedaysmoves backward. - Weekends are fixed to Saturday and Sunday.
- Optional
holidaysarguments are excluded and may be provided as scalars, inline arrays, or ranges of date values, serials, or date text. - Input and output serials use the workbook's date system (Excel 1900 or Excel 1904).
Examples
Advance one working day from a Friday across the weekend.
Formula =WORKDAY(DATE(2024,1,5),1)
Expected result 45299
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Skip Monday as a holiday as well as skipping the weekend.
Formula =WORKDAY(DATE(2024,1,5),1,A1)
| A | |
|---|---|
| 1 | 45299 |
Expected result 45300
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A zero-day offset preserves the working start date.
Formula =WORKDAY(DATE(2024,1,5),0)
Expected result 45296
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The offset must be a number of working days.
Formula =WORKDAY(DATE(2024,1,5),"tomorrow")
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Move forward by five workdays
Formula =WORKDAY(45292, 5)
Expected result 45299
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Holiday exclusions push the target date out
Formula =WORKDAY(45292, 5, 45293)
Expected result 45300
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Does WORKDAY include the start date when days=0?
Yes. With zero offset, WORKDAY returns the start date serial unchanged; nonzero offsets skip weekend days while stepping.