Hi- I have a question on how I can edit this IF formula to reflect the correct time when an employee schedule end time is at 12am. The total works for times after 12am. Let's say cell p40 is 6p and cell o40 is 12am and any hours worked greater than 5 requires a half hour break- the total hours pops up as -18
=IF(P40*24-O40*24<5, P40*24-O40*24, P40*24-O40*24-0.5)
=IF(P40*24-O40*24<5, P40*24-O40*24, P40*24-O40*24-0.5)