只管上午,与下午的请假,反正要么请一天,要么请上午3.5小时,要么请下午的4小时。不管你什么上午从11点或者下午从16.25 这样的请假了,不然规则太多了
DATEDIF(B2,A2,"D") + round((if(REPLACE(RIGHT(A2,8),":","") * 1 <= 83000 && REPLACE(RIGHT(B2,8),":","") * 1 >= 173000,7.5,if(REPLACE(RIGHT(A2,8),":","") * 1 <= 83000 && REPLACE(RIGHT(B2,8),":","") * 1 <= 130000,3.5,4))) / 7.5,2)