Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Need excel formula to calc time i.e.08:29:29am-23:21:32pm=9:07:57

I need to determine the amount of time a process took. It begain at
23:21:32pm and finished at 8:29:29am. The total time = 9:07:57 (9hrs 7min
57sec). I need a formula to calculate the total time. The formual I tried
=text(b10-b9,"h:mm:ss") and that produced #VALUE!. I changed to the 1904
date system under tools/options/calculation and that produced -14:52:03. If
I could convert that negative to a positive from 2400 hrs then I would have
the correct answer. Any insight would be greatly appreciated.... please and
thank you. :) I'm using excel 2003 microsoft office professional edition.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Need excel formula to calc time i.e.08:29:29am-23:21:32pm=9:07:57

=MOD(B10-B9,1)

and format as time

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"doodlebug" wrote in message
...
I need to determine the amount of time a process took. It begain at
23:21:32pm and finished at 8:29:29am. The total time = 9:07:57 (9hrs 7min
57sec). I need a formula to calculate the total time. The formual I
tried
=text(b10-b9,"h:mm:ss") and that produced #VALUE!. I changed to the 1904
date system under tools/options/calculation and that produced -14:52:03.
If
I could convert that negative to a positive from 2400 hrs then I would
have
the correct answer. Any insight would be greatly appreciated.... please
and
thank you. :) I'm using excel 2003 microsoft office professional edition.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Need excel formula to calc time i.e.08:29:29am-23:21:32pm=9:07

Thank you so much. That worked nicely! What is MOD?

"Bob Phillips" wrote:

=MOD(B10-B9,1)

and format as time

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"doodlebug" wrote in message
...
I need to determine the amount of time a process took. It begain at
23:21:32pm and finished at 8:29:29am. The total time = 9:07:57 (9hrs 7min
57sec). I need a formula to calculate the total time. The formual I
tried
=text(b10-b9,"h:mm:ss") and that produced #VALUE!. I changed to the 1904
date system under tools/options/calculation and that produced -14:52:03.
If
I could convert that negative to a positive from 2400 hrs then I would
have
the correct answer. Any insight would be greatly appreciated.... please
and
thank you. :) I'm using excel 2003 microsoft office professional edition.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Need excel formula to calc time i.e.08:29:29am-23:21:32pm=9:07

It is the modulus function. It is a worksheet function documented in help
for Excel.

--
Regards,
Tom Ogilvy


"doodlebug" wrote:

Thank you so much. That worked nicely! What is MOD?

"Bob Phillips" wrote:

=MOD(B10-B9,1)

and format as time

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"doodlebug" wrote in message
...
I need to determine the amount of time a process took. It begain at
23:21:32pm and finished at 8:29:29am. The total time = 9:07:57 (9hrs 7min
57sec). I need a formula to calculate the total time. The formual I
tried
=text(b10-b9,"h:mm:ss") and that produced #VALUE!. I changed to the 1904
date system under tools/options/calculation and that produced -14:52:03.
If
I could convert that negative to a positive from 2400 hrs then I would
have
the correct answer. Any insight would be greatly appreciated.... please
and
thank you. :) I'm using excel 2003 microsoft office professional edition.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Need excel formula to calc time i.e.08:29:29am-23:21:32pm=9:07:57

The problem is that B10 is less than B9, so use
=(B2-B1)+(B1B2)
The second term as 1 (24 hours) to the result is the start time is greater
than the end time
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"doodlebug" wrote in message
...
I need to determine the amount of time a process took. It begain at
23:21:32pm and finished at 8:29:29am. The total time = 9:07:57 (9hrs 7min
57sec). I need a formula to calculate the total time. The formual I
tried
=text(b10-b9,"h:mm:ss") and that produced #VALUE!. I changed to the 1904
date system under tools/options/calculation and that produced -14:52:03.
If
I could convert that negative to a positive from 2400 hrs then I would
have
the correct answer. Any insight would be greatly appreciated.... please
and
thank you. :) I'm using excel 2003 microsoft office professional edition.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Need excel formula to calc time i.e.08:29:29am-23:21:32pm=9:07:57

......................... And format the cell for time
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Bernard Liengme" wrote in message
...
The problem is that B10 is less than B9, so use
=(B2-B1)+(B1B2)
The second term as 1 (24 hours) to the result is the start time is greater
than the end time
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"doodlebug" wrote in message
...
I need to determine the amount of time a process took. It begain at
23:21:32pm and finished at 8:29:29am. The total time = 9:07:57 (9hrs
7min
57sec). I need a formula to calculate the total time. The formual I
tried
=text(b10-b9,"h:mm:ss") and that produced #VALUE!. I changed to the 1904
date system under tools/options/calculation and that produced -14:52:03.
If
I could convert that negative to a positive from 2400 hrs then I would
have
the correct answer. Any insight would be greatly appreciated.... please
and
thank you. :) I'm using excel 2003 microsoft office professional
edition.





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
Time calc formula please. Mario[_4_] Excel Discussion (Misc queries) 4 April 5th 10 12:34 PM
Excel Template: calc time per task fr 'start' and 'end' times LionLegal Excel Worksheet Functions 1 December 5th 07 10:17 PM
Excel Formula to Calc Daily Averages? Don I Excel Worksheet Functions 5 August 10th 06 06:49 PM
formula that calc the diff in time, with a less than function? Debbs Excel Worksheet Functions 1 November 3rd 05 07:23 PM
The Excel cells are not automatically calc. existing formula. Peggy Martinez Excel Worksheet Functions 2 July 27th 05 07:22 PM


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