"Empty" values in holiday parameter for NETWORKDAYS() function
Hi!
Here's another option:
A1 = start date
A2 = end date
J1:J10 = holidays. Some cells may contain "".
Entered as an array using the key combo of CTRL,SHIFT,ENTER:
=NETWORKDAYS(A1,A2,IF(ISNUMBER(J1:J10),J1:J10,1000 000))
The blank ("") cells in the holiday array will evaluate to serial date
1000000 = 11/26/4637. I doubt that you're calculating work days that far
into the future!
Biff
"RMTP" wrote in message
...
If the holiday vector in NETWORKDAYS(start,end,holiday_vector) contains
any
"null" strings (i.e. they've had the value "" inserted), then
NETWORKDAYS()
returns #VALUE!
Any ideas how to get around this? I do need to have the empty cells - the
vector can be used for different countries, with different numbers of
holidays. And I can't use zero as the empty filler, since 0 actually
represents a valid date.
I'm converting from OpenOffice's spreadsheet which doesn't have the same
problem.
tia.
rmtp
|