EXCEL中如何求出2个自然日之间的非工作时间(自然日工作时间:9:00-11:30 13:30-17:00)的累计时长 10
2个回答
展开全部
结果单位是天,如果想换算成小时就乘以24:
=B1-A1-IF(A1-INT(A1)<=9/24,0,IF(A1-INT(A1)<=11.5/24,A1-INT(A1)-9/24,IF(A1-INT(A1)<=13.5/24,2.5/24,IF(A1-INT(A1)<=17/24,2.5/24+A1-INT(A1)-13.5/24,6/24))))-=IF(B1-INT(B1)<=9/24,0,IF(B1-INT(B1)<=11.5/24,B1-INT(B1)-9/24,IF(B1-INT(B1)<=13.5/24,2.5/24,IF(B1-INT(B1)<=17/24,2.5/24+B1-INT(B1)-13.5/24,6/24))))-IF(INT(B1)-INT(A1)>1,(INT(B1)-INT(A1)-1)*6,0)
=B1-A1-IF(A1-INT(A1)<=9/24,0,IF(A1-INT(A1)<=11.5/24,A1-INT(A1)-9/24,IF(A1-INT(A1)<=13.5/24,2.5/24,IF(A1-INT(A1)<=17/24,2.5/24+A1-INT(A1)-13.5/24,6/24))))-=IF(B1-INT(B1)<=9/24,0,IF(B1-INT(B1)<=11.5/24,B1-INT(B1)-9/24,IF(B1-INT(B1)<=13.5/24,2.5/24,IF(B1-INT(B1)<=17/24,2.5/24+B1-INT(B1)-13.5/24,6/24))))-IF(INT(B1)-INT(A1)>1,(INT(B1)-INT(A1)-1)*6,0)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |