Question : NETWORKDAYS substitute

What can i use for a NETWORKDAYS substitute.

My spreadsheet contains extensive Macros and Sheet formulae and i can't always assume the User has (or knows how to) installed the Analysis toolpak.

i would prefer VBA, but a traditional formula would be ok.

it must be able to handle Holidays.

Answer : NETWORKDAYS substitute

A non-array version of same:

=SUMPRODUCT((WEEKDAY(ROW(INDIRECT(DATE(YEAR(A1),MONTH(A1),1)&":"&DATE(YEAR(A1),MONTH(A1)+1,0))))={2,3,4,5,6})*(COUNTIF(H1:H20,ROW(INDIRECT(DATE(YEAR(A1),MONTH(A1),1)&":"&DATE(YEAR(A1),MONTH(A1)+1,0))))=0))

Kevin
Random Solutions  
 
programming4us programming4us