#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel Formula

I am looking for a formula that will add the hours worked each day for
seven days, adding the hours in a cell at the end of the week as they
are entered each day. For example: a person works 8 am - 5 pm, Mon -
Fri. and has 1 hour lunch each day. What formula would calculate the
time into hours and add the total hours worked minus the lunch time on
a daily basis.

Any help would be appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 258
Default Excel Formula

golfn --

The trick is to remember that, no matter what you see, Excel thinks of dates
and times in a particular way --- XXXXX.YYYYYY where XXXXX is the number of
days after 1/1/1900, and YYYYYY is the amount of the day after 12:00:00
midnight. So 0.5 is 1/2 day, or 12 noon. So here goes:

A B C
1 8 am 5 pm =(b1-a1)*24-1

You multiply times 24 to convert the % of the day elapsed into the number of
hours, then subtract 1 hour for lunch. You can, of course, build in rounding
to the nearest 15 minutes, accounting for people working half-days not taking
lunches, etc. But it's all adding to the basic idea.

HTH

" wrote:

I am looking for a formula that will add the hours worked each day for
seven days, adding the hours in a cell at the end of the week as they
are entered each day. For example: a person works 8 am - 5 pm, Mon -
Fri. and has 1 hour lunch each day. What formula would calculate the
time into hours and add the total hours worked minus the lunch time on
a daily basis.

Any help would be appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Excel Formula

Hi

With start time in A1 and End time in B1, enter in C1
=(B1-A1)*24-1
Copy down through C2:C7
In C8
=SUM(C1:C7)

Times in Excel are stored as fractions of a day, hence the need to multiply
by 24.

If the times are likely to cross midnight, then use
=MOD(B1-A1,1)*24-1
--
Regards
Roger Govier

wrote in message
...
I am looking for a formula that will add the hours worked each day for
seven days, adding the hours in a cell at the end of the week as they
are entered each day. For example: a person works 8 am - 5 pm, Mon -
Fri. and has 1 hour lunch each day. What formula would calculate the
time into hours and add the total hours worked minus the lunch time on
a daily basis.

Any help would be appreciated!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
How do I view formula results intead of formula in excel? davidinatlanta Excel Worksheet Functions 4 February 7th 06 03:02 PM
i edit a formula (excel) then it displays formula not answer caiman Excel Discussion (Misc queries) 2 September 9th 05 02:09 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"