I am attempting to figure out how to change the formula to automatically subtract a 30 minute lunch if the total time for the day exceeds 6 hours worked.
B value Time of day punch in: 9:30 AM
C value =IF(D11="","","-")
D value Time of Day punch out: 6:00 PM
E value =IF(D11="","",IF(D11<=B11,((VLOOKUP(D11,TValue,3,))-(VLOOKUP(B11,TValue,2,))),((VLOOKUP(D11,TValue,2,))-(VLOOKUP(B11,TValue,2,)))))
E, is of course indicating the total time for the day of 8.50, vs the actual hours worked minus a 30 minute lunch.
This is a spreadsheet that I am attempting to change to help out my manager keep track of total employee weekly hours better.
Please keep it simple. I am not versed at all in VBA.
Any assistance on this would be greatly appreciated,
Thanks,
Snedman
B value Time of day punch in: 9:30 AM
C value =IF(D11="","","-")
D value Time of Day punch out: 6:00 PM
E value =IF(D11="","",IF(D11<=B11,((VLOOKUP(D11,TValue,3,))-(VLOOKUP(B11,TValue,2,))),((VLOOKUP(D11,TValue,2,))-(VLOOKUP(B11,TValue,2,)))))
E, is of course indicating the total time for the day of 8.50, vs the actual hours worked minus a 30 minute lunch.
This is a spreadsheet that I am attempting to change to help out my manager keep track of total employee weekly hours better.
Please keep it simple. I am not versed at all in VBA.
Any assistance on this would be greatly appreciated,
Thanks,
Snedman