Is there a way of replicating Excel's NETWORKDAYS when connecting to a Jet database via ADO?
|
feedback
|
|
First assuming we know both the start and end are weekdays then, I think this works:
If you dont know that both are work days you need a correction. I think this is correct:
I tested it against Excel, and it appears to give the correct answer | |||
feedback
|
|
There's also this function. It is algorithmically nearly identical to @JDunkerley's - just more verbose. Possibly easier to implement in different environments. | |||||
feedback
|
NETWORKDAYS(start_date,end_date,holidays)– DaveParillo Sep 16 '09 at 15:22