H
hasrijadi
NETWORKDAYS including Saturdays - T. Valko
29-Aug-07 02:29:59
Try this:
A2 = start date
B2 = end date
C2:C10 = list of holiday dates
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A2&":"&B2)),2)<7),--(ISNA(MATCH(ROW(INDIRECT(A2&":"&B2)),C2:C10,0))))
--
Biff
Microsoft Excel MVP
===============================================
how to make C2:C10 not counting.
coz if copy from this formula C2:C10 wiil counting to C3:C11 and so on.
I want this formula static with C2:C10. (not counting)
Best Regards
============
Hasri
EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
29-Aug-07 02:29:59
Try this:
A2 = start date
B2 = end date
C2:C10 = list of holiday dates
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A2&":"&B2)),2)<7),--(ISNA(MATCH(ROW(INDIRECT(A2&":"&B2)),C2:C10,0))))
--
Biff
Microsoft Excel MVP
===============================================
how to make C2:C10 not counting.
coz if copy from this formula C2:C10 wiil counting to C3:C11 and so on.
I want this formula static with C2:C10. (not counting)
Best Regards
============
Hasri
EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com