VBABEGINER
Well-known Member
- Joined
- Jun 15, 2011
- Messages
- 1,284
- Office Version
- 365
- Platform
- Windows
Code:
[TABLE="width: 538"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Shift Start Time (24 hour format[/TD]
[TD]Shift End Time (24 hour format)[/TD]
[TD]Process SLA (hours)[/TD]
[/TR]
[TR]
[TD]13:30[/TD]
[TD]22:30[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]22:30[/TD]
[TD]7:30[/TD]
[TD]-15[/TD]
[/TR]
</tbody>[/TABLE]
Code:
=HOUR(B3)-HOUR(A3)
-15 is the wrong answer. How will I get correct Hours (positive number)