Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Calculate Time

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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Calculate Time

Because you have a "-" in the first place and a ":" in the second?

"Tamara" wrote in message
...
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!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Calculate Time

Hi Tamara,

=TEXT( XXX , "hh:mm:ss") is only a way to show differently XXX.
In first case, XXX is a difference. In second, H2:H9 is a group of
cells. But what Excel needs to do with this group to give a result ?

You indicated to search for a total :
Does =TEXT(sum(H2:H9), "hh:mm:ss") answer your wish ?

@+
FxM



Tamara a écrit :
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!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Calculate Time

you already recevied an answer on how to do it. However,

With your current formulas you could do

=TEXT(SUMPRODUCT(1*H2:H9),"[hh]:mm:ss")

--
Regards,
Tom Ogilvy

"Tamara" wrote in message
...
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!



  #5   Report Post  
Posted to microsoft.public.excel.programming
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!




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Calculate Time

since she used Text function to produce the results in H2:H9, using a
straight sum function will only return zero. I showed how to use sumproduct
to convert them to summable values.

--
Regards,
Tom Ogilvy

"FxM" wrote in message
...
Hi Tamara,

=TEXT( XXX , "hh:mm:ss") is only a way to show differently XXX.
In first case, XXX is a difference. In second, H2:H9 is a group of
cells. But what Excel needs to do with this group to give a result ?

You indicated to search for a total :
Does =TEXT(sum(H2:H9), "hh:mm:ss") answer your wish ?

@+
FxM



Tamara a écrit :
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!



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
How calculate end time with beginning time plus formula minutes Calculate an ending time Excel Worksheet Functions 3 April 4th 23 02:30 PM
Excel 2007 calculate time between 2 date/time columns Kevo Excel Discussion (Misc queries) 8 April 25th 09 12:02 AM
Calculate Ending time using Start Time and Elapsed Time Chief 711 Excel Worksheet Functions 5 May 13th 08 04:34 PM
IF statement to calculate time usage in specific time bands Daren Excel Worksheet Functions 6 January 31st 07 01:34 PM
how to calculate time start & time finish in quarter hour Peter Wu Excel Discussion (Misc queries) 3 June 7th 06 12:58 AM


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