Returns the number of whole working days between two dates (inclusive). Working days exclude weekends and any date identified as a holiday.
End_dateis the serial date number that represents the end date.
Start_dateis the serial date number that represent the start date. If missing or omitted, the current date is used.
holidays is an array of holiday dates, holiday (e.g. NYD,PRS)/calendar (e.g. USA, GBP, NYMEX) codes or a combination of them. If missing, the US public calendar is used.
weekends is the weekend number (1-7,11-17) or the 7-character string code. If missing, the Western weekend (i.e. 1, "Saturday, Sunday") is used.
- See Holidays for a list of currently supported holidays.
- See Calendars for a list of currently supported calendars.
- Working days exclude weekends and any dates identified as holidays.
- Microsoft 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.
- Dates (i.e. start_date or end_date) should be entered by using the DATE function or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008.
- Problems can occur if dates are entered as text.
- If start_date or end_date is not a valid date, NxNetWorkdays returns the #VALUE! error value.
- If Calendar is not recognized (i.e. not supported), NxNetWorkdays returns the #VALUE! error value.
- If start_date is after end_date, NxNetWorkdays returns the #VALUE! error value
- CxNetWorkdays is similar to the Microsoft Excel function (NETWORKDAYS), but NxNetWorkdays supports predefined calendars and handles weekend days other than Saturday and Sunday.