Then we figure out the total hours that overlap “the period of interest”.

Using these two values, we can figure out all remaining hours.

The formula in E5 works in two parts, using IF to control flow.

Excel formula: Calculate hours between two times

Finally, to figure out “Remaining” hours (i.e.

The MIN function ignores empty cells, the logical values TRUE and FALSE, and text values.

MAX Function

The Excel MAX function returns the largest numeric value in the data provided.

Excel formula: Timesheet overtime calculation formula

MAX ignores empty cells, the logical values TRUE and FALSE, and text values.

Excel formula: Basic timesheet formula with breaks

Excel MIN function

Excel MAX function