#1   Report Post  
Dave O
 
Posts: n/a
Default

Here's the short answer.
Column A holds your labels:
A1 = "Start"
A2 = "End"
A3 = "Hours"

Column B holds the data:
B1 = 6/13/05 20:00
B2 = 6/14/05 04:00
Note these two cells should be formatted as timestamps in 24 hour
format.
B3 is a formula: =(A2 - A1)*24
B3 should be formatted as a number with as many significant digits as
you require. The result in B3 should read 8.0.

Here's the long answer: Excel treats dates as numbers and displays them
in familiar date formats. Pick any cell, call it D1, and enter today's
date: 6/14/2005. Excel recognizes this as a date and automatically
formats it as such. However, if you right click cell D1 and reformat
it as a number, you'll see the value Excel assigns to today's date is
38517. The value of a single day is 1; to track the time of day, Excel
uses a fraction of 1. The numeric value of 12:00 noon on June 14 2005
is 38517.5 (half a day = half of 1 = 0.5). The formula in B3
multiplies by 24 to convert the partial day into hours.

How you handle subtotals of employee weekly hours and man-hours per
shift depends on the layout of your information: anyone here on the NG
will be glad to help, but how you have it now will determine the best
way to treat it. Let us know if we can help!

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
Calculations crossing multiple sheets Stephen McArthu Excel Discussion (Misc queries) 4 June 6th 05 04:35 PM
time interval calculations in excel Krishna Excel Discussion (Misc queries) 6 April 8th 05 02:57 PM
Round Time with Conditions KimLL Charts and Charting in Excel 1 February 15th 05 04:23 PM
How can I round an hour to the nearest 1/4 hour? Ms Chewie Excel Worksheet Functions 5 December 21st 04 05:05 AM
convert 100 minute hour to a 60 minute hour Todd Excel Worksheet Functions 1 November 15th 04 06:14 PM


All times are GMT +1. The time now is 07:09 PM.

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"