Have you tried the =NETWORKDAYS() function?