How about

=(WORKDAY(A5-1,1,holidays)=A5)*8

where holidays is the range of holiday dates