简体   繁体   中英

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. 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. Here is my current formula =SUM(+E13,+C14,-D14)

实际上,它将是:

=MIN(240, E13 + C14 - D14)

也许:

=MIN(240,E13+C14-D14)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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