Да!Наконец-то сам получил ответ за это.
Вот что
= (NETWORKDAYS (A2, B2) -1) * ("21:00:00" - "09:00: 00 ") + IF (NETWORKDAYS (B2, B2), MEDIAN (MOD (B2,1)," 21:00:00 "," 09:00:00 ")," 21:00:00 ") -MEDIAN(NETWORKDAYS (A2, A2) * MOD (A2,1), "21:00:00", "09:00:00")