用公式中的时间replace“午餐时间,午餐时间”,给出超时/不包括午餐的时间差
我目前有以下公式来跟踪我的工作时间表。 时间被放在传统的格式,即。 8:00 am
,然后总计显示工作时间为8小时,工作8小时:
=IF(D2="","",ROUND(IF(OR(C2="",B2=""),(D2-A2),(B2-A2)+(D2-C2))*24*4,0)/4)
A =时间input,B =午餐输出,C =午餐input,D =超时。
我想通过两种方式来改变这一点:
1。 删除ROUNDfunction,我不需要它。
第2位。 我不需要午餐和午餐。 我需要B列=午餐,显示为一个数字( 1
个小时,或.5
半小时),从Time In和Time Out中减去,因为我们没有为午餐付费。
为午餐添加ColumnE,请尝试:
=IFERROR(IF(D2="","",(D2-A2)*24)-E2,"")
格式化为数字。
我build议使用24小时的格式来计算date/时间。
这应该为你工作:
A is time in, eg 08:00 B is time out, eg 16:30 C is lunch, eg 00:30 (duration in minutes) D is the formula below, which calculates your paid working time =((B2-A2)-C2)*24