Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default how to add hours and show actual hours not decimal numbers

I am trying to put together an employee work schedule, showing actual hours
for punch in and out times. How do I set it up to add actual hours not
decimal hours. Example: 11 hours is 0.46, if I change it to military time it
will show 11 hours for the day but the total for the week is still all of the
decimals added up. This is probably simple to do but I am too new with this.
Any help would be greatly appreciated, Thanks
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 903
Default how to add hours and show actual hours not decimal numbers

B2: 23:00 start 11 PM
C2 07:00 end 7 AM
D2: =C2-B2+(C2<B2)
format as time h:mm, or

E2: =24 * (C2-B2+(C2<B2)) format a number for hours 0.0

Time is a fraction of a day, so multiply by 24 (hours) the fraction
of a day to get hours.

The (C2<B2) is a comparion it adds 0 or 1, the 1 is one day
which is equivalent to 24 hours.

More information on date and time
http://www.mvps.org/dmcritchie/excel/datetime.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"TWERNER" wrote in message ...
I am trying to put together an employee work schedule, showing actual hours
for punch in and out times. How do I set it up to add actual hours not
decimal hours. Example: 11 hours is 0.46, if I change it to military time it
will show 11 hours for the day but the total for the week is still all of the
decimals added up. This is probably simple to do but I am too new with this.
Any help would be greatly appreciated, Thanks



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 427
Default how to add hours and show actual hours not decimal numbers

Just for testing purpose

Open a new workbook and enter times in the cells and add them

ie A1 11:00
B1 19:00
C1 = B1-A1

You'll find that they display as HH:MM, no decimals in sight

So back to your workbooks, format the cells used as Time

Excel is pretty good at etting the initial format right and handles
calculations the same

The simple formula =B1-A1 can be improved to handle night workers
ie 22:00 to 07:00, here C1 would be =IF(B1A1, B1-A1, 1+B1-A1)

The 1 is 1 whole day, ie 24 hours

Steve


On Mon, 21 Aug 2006 02:01:01 +0100, TWERNER
wrote:

I am trying to put together an employee work schedule, showing actual
hours
for punch in and out times. How do I set it up to add actual hours not
decimal hours. Example: 11 hours is 0.46, if I change it to military
time it
will show 11 hours for the day but the total for the week is still all
of the
decimals added up. This is probably simple to do but I am too new with
this.
Any help would be greatly appreciated, Thanks




--
Steve (3)
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
Converting Decimal to Time Charlene Excel Discussion (Misc queries) 7 April 11th 06 10:24 PM
Time Sheet to show hours owed Carolan Excel Worksheet Functions 0 September 16th 05 03:38 PM
Show a time from one calculated cell as a decimal in another cell. KathyS Excel Worksheet Functions 1 January 20th 05 01:00 AM
How to show negative time (e.g. -10 hours) Arhippa Excel Worksheet Functions 3 January 19th 05 08:53 AM
How can I show hours of more than 24 & negative hours? Peterlg Excel Worksheet Functions 1 January 18th 05 04:50 PM


All times are GMT +1. The time now is 09:46 AM.

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

About Us

"It's about Microsoft Excel"