I knew something was incorrect. As an excuse, I'll say my thinking is a bit cloudy lately—I'm recovering from surgery.
If the Signout Time is in C9, the formula to determine the amount to collect for the rest of the day would be:
=IF(ISBLANK(G4), "", SUMIF($H$3:$K$3, ">" & $C$9, H4:K4))
This would be copied down to fill twelve rows.
If you wish to determine the amount to sign out with a shift start time in cell C9 and a shift end time in cell C10:
=IF(ISBLANK(G4), "", SUMIFS(H4:K4, $H$3:$K$3, ">" & $C$9, $H$3:$K$3, "<" & $C$10))
Again, this formula would be copied down to fill twelve rows.
Bookmarks