How about:
That will subtract 120 from the total worked hours and take the higher of that or zero - eg, if they work 120 hours or less, it will return 0 for their overtime hours.
If you need to do it on a weekly basis, then something like this:
(Note that's an array formula, that has to be entered with CTRL+SHIFT+ENTER not just ENTER key).
That will return 2.5 hours, because employee #4 worled 42.5 hours in week 3, and 40 hours-or-less in weeks 1 and 2.
Well, which approach you take will depend on what your contractual obligations re: overtime pay are.
Bookmarks