Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default elapsed time format

Searching the archives turned up a lot of msgs on this, but nothing I
found hits exactly what I need, and I wasn't able to get there from
what has been suggested before ....


I have 4 cells, call them 'start_date', 'start_time', 'stop date', and
'stop time', containing values as you would expect. Dates are
formatted dd-mon-yy, times are formatted '13:30'. In the next cell I
need to calculate elapsed time in hh.0, such that an elapsed time of 2
hours and 36 minutes shows as 2.6 --- typical time clock format.

I can't seem to hit on the right combination of calculations and cell
formatting. Have tried using the INT function with a number format, as
was suggested on some similar threads.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default elapsed time format

Dates and times are stored as multiples of a day, so calculate
your elapsed time as
=(stop_date + stop_time - start_date - start_time) * 24
and format as 0.0 (or as you like).

hth
Andrew Taylor

EdStevens wrote:
Searching the archives turned up a lot of msgs on this, but nothing I
found hits exactly what I need, and I wasn't able to get there from
what has been suggested before ....


I have 4 cells, call them 'start_date', 'start_time', 'stop date', and
'stop time', containing values as you would expect. Dates are
formatted dd-mon-yy, times are formatted '13:30'. In the next cell I
need to calculate elapsed time in hh.0, such that an elapsed time of 2
hours and 36 minutes shows as 2.6 --- typical time clock format.

I can't seem to hit on the right combination of calculations and cell
formatting. Have tried using the INT function with a number format, as
was suggested on some similar threads.


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
Format for elapsed time Mr. B in VT Excel Discussion (Misc queries) 2 February 9th 10 08:46 PM
Format for Time Elapsed in Decimal Marsh New Users to Excel 4 January 15th 10 06:58 PM
How can I convert or format an elapsed time to show mm:ss Mark Excel Discussion (Misc queries) 5 October 2nd 08 11:23 PM
Format cells for elapsed time in mmm:ss? Janis Excel Discussion (Misc queries) 8 October 31st 06 07:54 AM
Format elapsed time in days? Steve M via OfficeKB.com Excel Worksheet Functions 2 August 5th 05 09:28 PM


All times are GMT +1. The time now is 07:47 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"