Forum Discussion
joem1964
Apr 14, 2021Copper Contributor
Help with calculating empty Time data in cells
I am attempting to create a Roster Spreadsheet to calculate hours workedin a week (the hours worked are calculated in a hidden field), The tempolate must cater for days off , i.e. no times entered, b...
- Apr 14, 2021
HansVogelaar
Apr 14, 2021MVP
- joem1964Apr 14, 2021Copper ContributorThanks Hans, this has worked perfectly and I will now amend the spreadsheet to reflect the new formula, Many thanks again
- joem1964Apr 22, 2021Copper ContributorHello Hans, Many thanks for your help and this resolved the issue for me, however, I now need to also cater for night shifts, apparently they work 12 hour shifts without the deduction of Breaks, can that be incorporated in the same formula?
(Night shifts typically atart at 19:45 until 07: 45 or 20:00 to 08:00)
Joe- HansVogelaarApr 22, 2021MVP
Does this do what you want?
=IF(OR(H6="",I6=""),0,MROUND(MOD(I6-H6,1)-(MOD(I6-H6,1)>=7/24)*(I6>H6)*$F6/1440,1/1440))