Formualizer Docs

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

ArgumentTypeRequiredDefault
start_datenumberRequired—
daysnumberRequired—
holidaysanyOptional—

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 days moves forward; negative days moves backward.
  • Weekends are fixed to Saturday and Sunday.
  • Optional holidays arguments 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)

Input cells
A
145299

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?.

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.

Implementation

Engine source

On this page