how to count easily
=SUMPRODUCT(INT((MAX(end_date,start_date)-WEEKDAY(MAX(end_date,start_date)+1-{2;3;4;5;6;7})-MIN(end_date,start_date)+8)/7))
-SUMPRODUCT(ISNUMBER(MATCH(WEEKDAY(holidays),{2;3;4 ;5;6;7},0))*(holidays=MIN(end_date,start_date))*( holidays<=MAX(end_date,start_date)))
--
---
HTH
Bob
(change the xxxx to gmail if mailing direct)
"dribler2" wrote in message
...
With all formulas i gathered, i am still unable to do what my boss need.
my boss is never satisfied maybe this is the last he will ask me
something like this
given is a holiday date list in series
he gave me the first date
then he gave me another date
he want me to count the mon-sat workdays within the given dates.
Excluding sundays and holidays
AND next monday if holiday falls on sunday, AND saturday if holiday fall
on
friday...
I hope he pays my extra worked-holidays
thanks for assistance
been dribled4
|