D sweetman
New Member
- Joined
- Nov 1, 2015
- Messages
- 11
Hi
See below a start and finish time of a shift. For John Doe I want the hours worked to read 24:00. See formulas used in the 2 hours worked for John and Peter.
[TABLE="width: 426"]
<tbody>[TR]
[TD]Start[/TD]
[TD][/TD]
[TD]Finish[/TD]
[TD]Name[/TD]
[TD][/TD]
[TD]Hours worked[/TD]
[/TR]
[TR]
[TD]14:00[/TD]
[TD] Sleep over[/TD]
[TD]14:00[/TD]
[TD]John Doe[/TD]
[TD][/TD]
[TD]00:00[/TD]
[/TR]
[TR]
[TD]16:00[/TD]
[TD]D/D[/TD]
[TD]21:00[/TD]
[TD]Peter Doe[/TD]
[TD][/TD]
[TD]05:00[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 350"]
<tbody>[TR]
[TD]=IF(D3="";"";(IF((D3>B3);(D3-B3);(24-(B3-D3)))))
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 350"]
<tbody>[TR]
[TD="class: xl65, width: 350"]=IF(D4="";"";(IF((D4>B4);(D4-B4);(24-(B4-D4)))))[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for any help
Regards
David
See below a start and finish time of a shift. For John Doe I want the hours worked to read 24:00. See formulas used in the 2 hours worked for John and Peter.
[TABLE="width: 426"]
<tbody>[TR]
[TD]Start[/TD]
[TD][/TD]
[TD]Finish[/TD]
[TD]Name[/TD]
[TD][/TD]
[TD]Hours worked[/TD]
[/TR]
[TR]
[TD]14:00[/TD]
[TD] Sleep over[/TD]
[TD]14:00[/TD]
[TD]John Doe[/TD]
[TD][/TD]
[TD]00:00[/TD]
[/TR]
[TR]
[TD]16:00[/TD]
[TD]D/D[/TD]
[TD]21:00[/TD]
[TD]Peter Doe[/TD]
[TD][/TD]
[TD]05:00[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 350"]
<tbody>[TR]
[TD]=IF(D3="";"";(IF((D3>B3);(D3-B3);(24-(B3-D3)))))
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 350"]
<tbody>[TR]
[TD="class: xl65, width: 350"]=IF(D4="";"";(IF((D4>B4);(D4-B4);(24-(B4-D4)))))[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for any help
Regards
David