Does column A have every date or only the working days? If it has every date then try this formula for H2 copied down
=IF((MONTH(A2)<>MONTH(WORKDAY(A2,2,M$2:M$100)))*NETWORKDAYS(A2,A2),1,"")
or if you only list working days try
=IF(MONTH(A2)<>MONTH(WORKDAY(A2,2,M$2:M$100)),1,"")
assumes that M2:M100 has the holiday dates
Bookmarks