Returns the duration (in calendar days) of the (long) weekend that a given day falls on.
Syntax
NxWKNDUR(date, holidays, weekends)
- date
- is the serial date number that represents the date of concern. If missing or omitted, the current date is used.
- holidays
- is an array of holiday dates, holidays (e.g. NYD,PRS) codes or a calendar (e.g. USA, GBP, JPN) code. If missing, the U.S. federal holidays are used.
- weekends
- is the weekend-number or a seven-character string value. This argument is used if the holidays-argument is specified as an array of dates.
Remarks
- See Holidays for a list of currently supported holidays.
- See Calendars for a list of currently supported calendars.
- Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
- Most functions automatically convert date values to serial numbers.
- If start_date is not a valid date, NxWKNDUR returns the #VALUE! error value.
- If start_date does not fall on, immediately before or after a long weekend, NxWKNDUR returns the #DIV/0! error value.
- If Calendar is not recognized (i.e. not supported), NxWKNDUR returns the #VALUE! error value.
Files Examples
References
- Hans-Peter Deutsch, Derivatives and Internal Models, Palgrave Macmillan (2002), ISBN 0333977068
Comments
Article is closed for comments.