ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how to calculate hours worked daily & minus 30 min lunch, 7am-5pm (https://www.excelbanter.com/excel-discussion-misc-queries/195892-how-calculate-hours-worked-daily-minus-30-min-lunch-7am-5pm.html)

Debby_Jo

how to calculate hours worked daily & minus 30 min lunch, 7am-5pm
 
I need a formula in layman's terms how to calculate total hours worked daily
with the subtraction of 30 minutes for lunchtime. And then calculate the
weekly subtotals for a weekly grand total.

pdberger

how to calculate hours worked daily & minus 30 min lunch, 7am-5pm
 
Debby_Jo --

Excel deals with dates and times like this: DDDDD.TTTT -- the integer part
of the number is the number of days after 1/1/1900, and the decimal part is
the time portion -- essentially the percentage of the day elapsed. So 0.5
means that 1/2 of the day has elapsed, or its 12:00:00pm. One hour is 1/24th
of the day, or 0.041667, and 30 minutes is half that -- 0.020833. So:

A B C
1 8:00am 5:00pm =(B1-A1-0.020833)*24

Remember you have to multiply by 24 to convert the % of the day into the
actual number of hours. Also, since Excel assumes that, if you're working
with times, you want an answer in times, you'll need to format C1 to just
regular numbers.

Then you can add all the C:C calculations to weekly, biweekly, or monthly
totals.

HTH

"Debby_Jo" wrote:

I need a formula in layman's terms how to calculate total hours worked daily
with the subtraction of 30 minutes for lunchtime. And then calculate the
weekly subtotals for a weekly grand total.



All times are GMT +1. The time now is 07:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com