Originally Posted by
ladypickers
Ive tested in cell C5 I entered 21:00, & 08:00 (B11), which returns 21:00 (E11), and then 11:00 (F11), 11.00 (G11), H to K are not returning 0:00 / 0.00
I should have added an earlier ROUND to remove very small decimals -- the result of the existing calc, devoid of round, would be 1.77635683940025E-15 which then gets rounded up to 1 (as not exactly 0).
Originally Posted by
ladypickers
=IF(OR($E11="",$D11<>""),"",MOD(B11-E11,1)) includes column D which isnt needed
Col D was deliberately referenced to isolate the "sick" record on grounds these records were "void" in terms of resulting calcs on same row.
If you want to remove remove the OR, and test only the content of E
however, as noted, you may in turn get results in that row that you don't really want - i.e. you have no start time to calculate rest period etc...
Originally Posted by
ladykillers
If columns H-K needed to return 00:00 instead of empty what would need to be changed ...
replace the null string "" with 0
note:
you don't need to modify Col I as it is dependent on Col H so when you change Col H the output in Col I will update automatically.
the above principle holds true for Col J, and K -- i.e. replace the null string in Col J formula with 0 (rather than "00:00"), and K will follow.
Originally Posted by
ladykillers
where would you drop the =CEILING(value,"00:15") into the below.
per same logic outlined earlier, Col G can be left as-is given this works off the result of the above calc, so when the output in F changes G will follow.
Bookmarks