To calculate total hours worked, cell E5 contains: This is simply end time minus start time, multiplied by 24 to convert to decimal hours. If you need to calculate elapsed time that crosses midnight, see this page for options and general explanation. To calculate regular time, F5 contains: This is an example of using MIN instead of IF to simplify. The result is the smaller of two options: 8 hours, or regular time as calculated above. To calculate OT (overtime), G5 contains: Not much to see here. We simply subtract regular time from total hours to get overtime. Note the result will be zero if total time = regular time. This is important because it effectively “zeroes out” the overtime component of the formula in I5 when there is no overtime. To calculate the Total, I5 contains: This is where we finally calculate a total based on rate and hours, taking into account overtime paid at 1.5 times the normal rate. (Adjust the multiplier as needed). We first multiply regular time by the normal rate. Then we multiply overtime by the same rate times 1.5. As mentioned above, when overtime is zero, this part of the formula returns zero. Finally, the sum of both calculations above is returned as the Total in column I.

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.