简体   繁体   English

我需要创建一个Excel公式来计算度假时间,最大应计时间为240小时

[英]I need to create an excel formula to calculate vacation time with maximum accrual of 240hours

I need to create an excel formula to calculate vacation time with a maximum accrual of 240hours. 我需要创建一个Excel公式来计算休假时间,最大应计时间为240小时。 Right now my formula just calculates what is carried over from last month, earned this month and then used this month. 现在,我的公式只是计算上个月结转的金额,本月获得的金额,然后在本月使用。 Is there a way to make it so it only calculates up to 240 hours per month. 有没有办法做到这一点,所以它每月最多只能计算240小时。 Here is my current formula =SUM(+E13,+C14,-D14) 这是我当前的公式= SUM(+ E13,+ C14,-D14)

实际上,它将是:

=MIN(240, E13 + C14 - D14)

也许:

=MIN(240,E13+C14-D14)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM