WorksheetFunction.WorkDay (Excel)

Returns a number that represents a date that is the indicated number of working days before or after a date (the starting date). Working days exclude weekends and any dates identified as holidays. Use WorkDay to exclude weekends or holidays when you calculate invoice due dates, expected delivery times, or the number of days of work performed.

WorkDay (Arg1, Arg2, Arg3)


Dim dblWorkDay As Double
dblWorkDay = WorksheetFunction.WorkDay(Arg1:=, Arg2:=)

Arguments

Arg1, Arg2, Arg3

Arg1 - Start_date - a date that represents the start date

Arg2 - Days - the number of nonweekend and nonholiday days before or after start_date. A positive value for days yields a future date; a negative value yields a past date

Arg3 - Holidays - an optional list 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 contain the dates or an array constant of the serial numbers that represent the dates