Sub LogTimeSimple()
Dim ws As Worksheet
Dim currentTime As String
Dim lastRow As Long
Dim currentCell As Range
' Set the worksheet
Set ws = ThisWorkbook.Sheets("Sheet1")
' Get the current time and date
currentTime = Format(Time, "HH:mm:ss")
'...
Was hoping someone could help me?
I need to calculate all possible shifts with an automatic deduction of 30 min lunch time when the employee works 6 or more hours.
I have this formula so far:
Time in: A1
Time Out: B1
Total Hours: C1
A1 and B1 formated 1:30 PM
C1 formated 13:30
Formula...
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.