OK. I Give!
I've been trying to create (or copy) a formula that will calculate the amount of hours worked before 06:00 and after 18:00, and also deduct for lunch if within the aforementioned time frame. This is what I have so far, but it ain't happening
=IF(AND(MOD(D8,1)< TIME(18,0,0),MOD(D8,1)> TIME(6,0,0)), TIME(18,0,0)-MOD(D8,1),0)+IF(AND(MOD(I8,1)< TIME(18,0,0),MOD(I8,1)> TIME(6,0,0)),MOD(I8,1)-TIME(6,0,0),0)
I've also attached the time sheet for your reference.
Thanks!
I've been trying to create (or copy) a formula that will calculate the amount of hours worked before 06:00 and after 18:00, and also deduct for lunch if within the aforementioned time frame. This is what I have so far, but it ain't happening
=IF(AND(MOD(D8,1)< TIME(18,0,0),MOD(D8,1)> TIME(6,0,0)), TIME(18,0,0)-MOD(D8,1),0)+IF(AND(MOD(I8,1)< TIME(18,0,0),MOD(I8,1)> TIME(6,0,0)),MOD(I8,1)-TIME(6,0,0),0)
I've also attached the time sheet for your reference.
Thanks!