The information in this article applies to:
SUMMARY
When using the NETWORKDAYS() function with multiple holidays, the
holidays may be entered as cell references or in the serial number
format and the dates must be enclosed in braces ({}).
MORE INFORMATION
The NETWORKDAYS() function returns the number of whole working days
between two dates. The Holidays parameter is used to exclude specific
dates from the calculation. Starting and Ending dates can be entered
directly as serial numbers, as text, through a cell reference, or by
using the DATEVALUE() function. Single holidays can also be entered
this way. However, multiple holidays must be entered in the serial
number format only, and the set of holiday dates must be enclosed in
braces ({}).
Examples listing dates in the function=NETWORKDAYS(DATEVALUE("1/1/92"),DATEVALUE("12/31/92"),
-or- =NETWORKDAYS(DATEVALUE("1/1/92"),DATEVALUE("12/31/92"),
Examples using cell referencesA1: 12/24/92A2: 12/25/92 =NETWORKDAYS(DATEVALUE("1/1/92"),DATEVALUE("12/31/92"),A1:A2) -or- A1: 1/1/92 A2: 12/31/92 A3: 12/24/92 A4: 12/25/92 =NETWORKDAYS(A1,A2,A3:A4) You cannot, however use the following: A1: 12/24/92 C1: 12/25/92 =NETWORKDAYS(DATEVALUE("1/1/92"),DATEVALUE("12/31/92"),{A1,C1}) REFERENCES"Function Reference," version 4.0, pages 94, 284-285
Keywords : |
Last Reviewed: March 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |