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

How do I calculate the difference between two times:

11:14:56 AM
11:06:41 AM

I want to know hours, minutes and seconds between the two times shown as

0h 8m 15sec or some way similar to that. I think I could do this
calculation with a very long complex formula but is there a simple way to
calculate elapsed time?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Difference between 2 times

Just subtract one from the other and format the result in some time format that doesn't give you the AM/PM

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Mike H." wrote in message ...
| How do I calculate the difference between two times:
|
| 11:14:56 AM
| 11:06:41 AM
|
| I want to know hours, minutes and seconds between the two times shown as
|
| 0h 8m 15sec or some way similar to that. I think I could do this
| calculation with a very long complex formula but is there a simple way to
| calculate elapsed time?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Difference between 2 times

In article ,
"Niek Otten" wrote:

Just subtract one from the other and format the result in some time
format that doesn't give you the AM/PM


But be cautious doing comparisons between the difference and another
value (ie. was the difference less than or equal to 3 minutes 20
seconds?). You'll almost certainly have an answer of the form
19.99999975632 or 20.00000018463 seconds.

--
David J Richardson --
http://davidj.richardson.name/ - Dr Who articles/interviews/reviews
http://www.boomerang.org.au/ - Boomerang Association of Australia
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
Difference Between Two Times ANYX Excel Discussion (Misc queries) 5 March 14th 09 12:24 AM
Difference between two times Jester Excel Discussion (Misc queries) 4 August 31st 06 01:36 PM
calculate difference between two times Ken Excel Worksheet Functions 6 July 21st 06 09:05 PM
Difference in Times bcbjork Excel Discussion (Misc queries) 6 August 27th 05 03:42 PM
difference between 2 times xlsxlsxls Excel Programming 3 August 18th 04 01:07 PM


All times are GMT +1. The time now is 04:15 AM.

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"