Hi,
I have the following formula which is inserted on sheets through VBA code: =SUMPRODUCT((B3:AF3="AD")*(WEEKDAY(B2:AF2,2)<6)*(ISNA(MATCH(B2:AF2,HolidaySheet!A2:A3,0))))
The A2:A3 range contains two holiday dates which are on a separate worksheet. The holidays change depending on the year...