WorksheetFunction.WorkDay_Intl(Object, Object, Object, Object) Method

Definition

Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters. Weekend parameters indicate which and how many days are weekend days. Weekend days and any days that are specified as holidays are not considered as workdays.

public double WorkDay_Intl (object Arg1, object Arg2, object Arg3, object Arg4);
Public Function WorkDay_Intl (Arg1 As Object, Arg2 As Object, Optional Arg3 As Object, Optional Arg4 As Object) As Double

Parameters

Arg1
Object

Start_date - The start date, truncated to integer.

Arg2
Object

Days - The number of workdays before or after the start_date. A positive value yields a future date; a negative value yields a past date; a 0 (zero) value yields the start_date. Day-offset is truncated to an integer.

Arg3
Object

Weekend - Indicates the days of the week that are weekend days and are not considered working days. Weekend is a weekend number or string that specifies when weekends occur.

Arg4
Object

Holidays - An optional set of one or more dates that are to be excluded from the working day calendar. Holidays is a range of cells that contain the dates, or an array constant of the serial values that represent those dates. The ordering of dates or serial values in holidays can be arbitrary.

Returns

Remarks

If start_date is out of range for the current date base value, WorkDay_Intl returns the #NUM! error value.

If any date in holidays is out of range for the current date base value, WorkDay_Intl returns the #NUM! error value.

If start_date plus day-offset yields an invalid date, WorkDay_Intl returns the #NUM! error value.

If a weekend string is of invalid length or contains invalid characters, WorkDay_Intl returns the #VALUE! error value.

Applies to