Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I get the difference between two times, including hundredth

A huge problem:
I have two times, for example: 2min32sec67hdth & 2min30sec23hdth
How do I calculate the difference between those two?

Please help me, I´m desperate..
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default How do I get the difference between two times, including hundredth

One way:

A1: 2:32.67
B1: 2:30.23
C1: = A1 - B1

Format C1 with Format/Cells/Number/Custom mm:ss.00

In article ,
"R-teast Loman" <R-teast wrote:

A huge problem:
I have two times, for example: 2min32sec67hdth & 2min30sec23hdth
How do I calculate the difference between those two?

Please help me, I´m desperate..

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How do I get the difference between two times, including hundredth

In Excel, functions are only able to show seconds as the lowest number. But
there is a way around this.

I took two now functins and changed them to values about 5 seconds apart.
Then I changed them to numbers at 8 decimal places, so they look like this.

C1 = 38281.4276020833000

C3 = 38281.4276678241000

The number after the decimal is the time (as a percentage of a 24 hour day,
so the above numbers say we are about 42% through the day, so it's about
10:08)

In C5, if you take C3 - C1 you get 0.0000657407363
=second(C5) -- 6 (or 6 seconds)

another way to do it is with calculations like this:

=($C$3-$C$1)*24*60*60 (24 hours in a day, 60 minutes in an hour, 60 seconds
in a minute) or =($C$3-$C$1)*86400 (86400 seconds in 24 hours)

this results in 5.679999617860 (or 5 seconds and 68 hundreths)

I hope that helps.

Joe V.



"R-teast Loman" wrote:

A huge problem:
I have two times, for example: 2min32sec67hdth & 2min30sec23hdth
How do I calculate the difference between those two?

Please help me, I´m desperate..

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default How do I get the difference between two times, including hundredth

Not true - you can format cells to display tenths, hundredths or
thousandths of a second and functions will calculate and display
correctly.

Format/Cells/Number/Custom hh:mm:ss.000


In article ,
"joev7777" wrote:

In Excel, functions are only able to show seconds as the lowest number. But
there is a way around this.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How do I get the difference between two times, including hundr

Thanks JE, didn't know that!

Joe V.

"JE McGimpsey" wrote:

Not true - you can format cells to display tenths, hundredths or
thousandths of a second and functions will calculate and display
correctly.

Format/Cells/Number/Custom hh:mm:ss.000


In article ,
"joev7777" wrote:

In Excel, functions are only able to show seconds as the lowest number. But
there is a way around this.




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default How do I get the difference between two times, including hundredth

If that's how you have entered the times, that's your "huge" problem. Ron has
given you a formula to convert to true Excel times, so you can do math on
them.

On Thu, 21 Oct 2004 09:24:55 -0700, "R-teast Loman" <R-teast
wrote:

A huge problem:
I have two times, for example: 2min32sec67hdth & 2min30sec23hdth
How do I calculate the difference between those two?

Please help me, I´m desperate..


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 Jester Excel Discussion (Misc queries) 4 August 31st 06 01:36 PM
Insert times including seconds? joe Excel Worksheet Functions 3 January 12th 06 01:32 AM
Difference in Times bcbjork Excel Discussion (Misc queries) 6 August 27th 05 03:42 PM
EXCEL - I need to compare times to the hundredth of a second savery422 Setting up and Configuration of Excel 1 June 20th 05 06:32 PM
difference between 2 times xlsxlsxls Excel Programming 3 August 18th 04 01:07 PM


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