PC Review


Reply
Thread Tools Rate Thread

Calculate hours worked minus a half hour for lunch

 
 
Danedel
Guest
Posts: n/a
 
      28th Aug 2008
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 With Quote
 
 
 
 
Roger Govier
Guest
Posts: n/a
 
      28th Aug 2008
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, Format>Cells>Number>Custom>hh: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" <(E-Mail Removed)> wrote in message
news:F244994D-0774-4902-9274-(E-Mail Removed)...
> 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 With Quote
 
Fred Smith
Guest
Posts: n/a
 
      28th Aug 2008
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
news:FD32179B-FCA5-494E-AF53-(E-Mail Removed)...
> 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, Format>Cells>Number>Custom>hh: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" <(E-Mail Removed)> wrote in message
> news:F244994D-0774-4902-9274-(E-Mail Removed)...
>> 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 With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      29th Aug 2008
Or just


=B1-A1-"00:30"

--


Regards,


Peo Sjoblom

"Fred Smith" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
> news:FD32179B-FCA5-494E-AF53-(E-Mail Removed)...
>> 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, Format>Cells>Number>Custom>hh: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" <(E-Mail Removed)> wrote in message
>> news:F244994D-0774-4902-9274-(E-Mail Removed)...
>>> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate hours worked minus lunch becky250 Microsoft Access Queries 4 18th Mar 2011 04:53 PM
I need to calculate hours worked from 11pm to 7am minus a lunch Paula Brooks Microsoft Excel Worksheet Functions 2 2nd Jun 2009 05:07 PM
how to calculate hours worked daily & minus 30 min lunch, 7am-5pm Debby_Jo Microsoft Excel Misc 1 23rd Jul 2008 03:40 AM
How can I calculate daily hours worked minus lunch to eual a decim =?Utf-8?B?bGlsaQ==?= Microsoft Excel Worksheet Functions 6 28th Mar 2007 03:28 AM
hours worked minus lunch Maarkr Microsoft Access Form Coding 1 8th Jul 2004 04:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:37 PM.