在Excel中如何计算用餐休息的开始时间

huangapple go评论86阅读模式
英文:

How to calculate meal break start time in excel

问题

I am trying to calculate meal break start time based on shift length for the following sample data.

在Excel中如何计算用餐休息的开始时间

Business rules to calculate, "Where the shift length is > 6 hours, insert meal break start time in column F. Meal break start time must be 5 hours from the shift start time in column C."

I have applied below formula to derive the output;

=C27+TIME(5,0,0)

I am not sure if this is correct.

Could you pls suggest how to resolve this.

英文:

I am trying to calculate meal break start time based on shift length for the following sample data.

在Excel中如何计算用餐休息的开始时间

Business rules to calculate, "Where the shift length is > 6 hours, insert meal break start time in column F. Meal break start time must be 5 hours from the shift start time in column C"

I have applied below formula to derive the output;

=C27+TIME(5,0,0)

I am not sure if this is correct.

Could you pls suggest how to resolve this.

答案1

得分: 1

这看起来不错!现在你只需要检查一下轮班时长,以确保如果轮班不够长,则不显示用餐休息的开始时间。

=如果(E27>时间(6,0,0),C27+时间(5,0,0),"")

英文:

That looks good! Now you just need a check for the shift length, so it doesn't show a meal break start time if the shift isn't long enough.

=IF(E27>TIME(6,0,0), C27+TIME(5,0,0), "")

huangapple
  • 本文由 发表于 2023年5月10日 13:04:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76215067.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定