I'm trying to create a simple employee shift schedule that automatically removes half-hour breaks. So far, I've muddled through the formula to add up hours worked by day, however, I cannot seem to figure out how to prevent a break from a day without hours worked. In this screenshot example, I have an employee with five 8.5 hour shifts with formula to deduct 0.5 hours from each day. Unfortunately, on the two days off, the breaks are deducted. Ideally, the formula for the 40-hour work week should return a result of 40. As you can see, it reads 39. The formula cell is R146.
Please help. Also, I'm not sure how unnecessarily complex this formula is. If there is a simpler way to do this, I'd greatly appreciate the input.
Thanks,
Anthony
RVA
Excel Screenshot.png
Excel Screenshot.png
Bookmarks