Thread: Calculate Time
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default Calculate Time

Hi
you are probably looking for
=TEXT(SUM(H2:H9), "[hh]:mm:ss")

But why use the text function at all?
simply use
=SUM(H2:H9)
and goto 'Format - cells' and use the custom format
[hh]:mm:ss

Reason: With the latter one you can use the result for further
calculations. If you use TEXT you first have to convert the string to a
numeric value before you could use it for further calculations!


--
Regards
Frank Kabel
Frankfurt, Germany


Tamara wrote:
If this function works: =TEXT(F9-E9, "hh:mm:ss"), why doesn't this:
=TEXT(H2:H9, "hh:mm:ss")? I have a form enter start and end times.
In another column I use the first function above to calculate the
elapsed time. I would like to total that column in hh:mm:ss format.
How do I do this?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!