Examines whether the given date falls on a weekend or a holiday (i.e., non-working day), and returns the nearest working business day using a Business Day Convention (BDC).
NxAdjust (Date, Convention, Holidays, Weekends)
- is a serial date number that represents a given date. If missing, the current date is used.
- is the Business Day Convention (BDC): 1 = Following, 2 = Following Modified, 3 = Preceding, 4 = Preceding Modified, 5 = Unadjusted (default).
Value Convention 1 Following - the following business day. 2 Following Modified - the following business day as long as this falls within the same month; otherwise the preceding business day. 3 Preceding - the preceding business day. 4 Preceding Modified - the preceding business day as long as it falls within the same month; otherwise the following business day. 5 Unadjusted - leaves the date unchanged (default).
- is a specific calendar code, an array of holiday codes, or an array of holiday dates. If missing, the U.S. federal holidays are used.
- is the weekend number (1-7,11-17) or the weekend string value (7-character string). If missing, the western weekend (i.e., 1, "Saturday, Sunday") is used.
- NxAdjust accounts for situations when a payment date falls on a weekend or holiday and calculates the corresponding value date.
- If a given date or any of the holiday/calendar codes is invalid, NxAdjust returns the #VALUE! error.
- If the business day convention (BDC) value is less than one(1) or greater than five (5), NxAdjust returns the #VALUE! error.
- For more weekend conventions and codes, see the Weekend category.
- For a full list of supported calendars and their corresponding codes, visit the Calendar category.
- Microsoft Excel stores date 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.
December 25 is considered to be a U.S. government holiday.
|=NxAdjust(DATE(2012,5,27),1,"USD")||Tuesday, May 29, 2012|
|=NxAdjust(DATE(2012,3,31),2)||Friday, March 30, 2012|
|=NxAdjust(DATE(2012,5,27),3,"USD")||Friday, May 25, 2012|
|=NxAdjust(DATE(2012,4,1),4)||Monday, April 02, 2012|
|=NxAdjust(DATE(2012,4,1),5)||Sunday, April 1, 2012|
- Hans-Peter Deutsch, Derivatives and Internal Models, Palgrave Macmillan (2002), ISBN 0333977068.
- Satyajit Das, Swap and Derivative Financing: The Global Reference to Products, Pricing, Applications, and Markets, McGraw-Hill Companies (1993), ISBN 1557385424.