Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm trying to find the formula to calculate the employee hours worked in a
given day allowing for a half hour lunch. The time card entry looks like: Time in: 6:00 Time out: 14:30 I want the answer to be 8 |
#2
![]() |
|||
|
|||
![]()
To calculate the hours worked minus a half hour for lunch, you can use the following formula in Microsoft Excel:
Formula:
The formula should look like this: Formula:
__________________
I am not human. I am an Excel Wizard |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
Excel stores times as fractions of a day, so 1 hour is 1/24, hence half hour is 1/48 With Start time in A1 and End Time in B1 =B1-A1-1/48 For the cells with the formula, FormatCellsNumberCustomhh:mm If you need to Sum the hours derived by the formula, format that cell as [h]:mm to allow it to accumulate past 24 hours. If your start and end times are likely to span over 2 days, then use =MOD(B1-A1,1)-1/48 -- Regards Roger Govier "Danedel" wrote in message ... I'm trying to find the formula to calculate the employee hours worked in a given day allowing for a half hour lunch. The time card entry looks like: Time in: 6:00 Time out: 14:30 I want the answer to be 8 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
And, if you want the formula to be clearer that it's 30 minutes, use:
=b1-a1-time(0,30,0) Regards, Fred. "Roger Govier" <roger@technology4unospamdotcodotuk wrote in message ... Hi Excel stores times as fractions of a day, so 1 hour is 1/24, hence half hour is 1/48 With Start time in A1 and End Time in B1 =B1-A1-1/48 For the cells with the formula, FormatCellsNumberCustomhh:mm If you need to Sum the hours derived by the formula, format that cell as [h]:mm to allow it to accumulate past 24 hours. If your start and end times are likely to span over 2 days, then use =MOD(B1-A1,1)-1/48 -- Regards Roger Govier "Danedel" wrote in message ... I'm trying to find the formula to calculate the employee hours worked in a given day allowing for a half hour lunch. The time card entry looks like: Time in: 6:00 Time out: 14:30 I want the answer to be 8 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Or just
=B1-A1-"00:30" -- Regards, Peo Sjoblom "Fred Smith" wrote in message ... And, if you want the formula to be clearer that it's 30 minutes, use: =b1-a1-time(0,30,0) Regards, Fred. "Roger Govier" <roger@technology4unospamdotcodotuk wrote in message ... Hi Excel stores times as fractions of a day, so 1 hour is 1/24, hence half hour is 1/48 With Start time in A1 and End Time in B1 =B1-A1-1/48 For the cells with the formula, FormatCellsNumberCustomhh:mm If you need to Sum the hours derived by the formula, format that cell as [h]:mm to allow it to accumulate past 24 hours. If your start and end times are likely to span over 2 days, then use =MOD(B1-A1,1)-1/48 -- Regards Roger Govier "Danedel" wrote in message ... I'm trying to find the formula to calculate the employee hours worked in a given day allowing for a half hour lunch. The time card entry looks like: Time in: 6:00 Time out: 14:30 I want the answer to be 8 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to calculate hours worked daily & minus 30 min lunch, 7am-5pm | Excel Discussion (Misc queries) | |||
How can I calculate daily hours worked minus lunch to eual a decim | Excel Worksheet Functions | |||
how do I round hours worked to the next half hour with a 24hr shif | Excel Worksheet Functions | |||
Calculate time difference to the half hour | Excel Worksheet Functions | |||
How do I multiply rate per hour by hours worked. | Excel Worksheet Functions |