P
pol
Emp sttime Endtime breake Hrs
XX 8:30 17:30 1:00
(endtim-sttime-breake)
YY 8:00 20:50 1.15
ZZ
With ActiveSheet
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
For i = 1 To LastRow Step 1
If i > 2 Then
.Cells(i, 5).Value = (.Cells(i, 3).Value - .Cells(i,
2).Value) - (.Cells(i, 4).Value)
End If
Next
End With
sttime Endtime breake Hrs are hh:mm format
But the above formula is not working Please help
XX 8:30 17:30 1:00
(endtim-sttime-breake)
YY 8:00 20:50 1.15
ZZ
With ActiveSheet
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
For i = 1 To LastRow Step 1
If i > 2 Then
.Cells(i, 5).Value = (.Cells(i, 3).Value - .Cells(i,
2).Value) - (.Cells(i, 4).Value)
End If
Next
End With
sttime Endtime breake Hrs are hh:mm format
But the above formula is not working Please help