#1   Report Post  
chintu49
 
Posts: n/a
Default Time Calculation


HI Experts,

well, i was wondering if there is any formula for the time to calculate
the subtraction between two time intervals, becoz in some case i get
incorrect value!!!

Now say A1 has time 23:04 P.M and A2 has time 7:56 A.M, so if we do
subtraction by using calculator then ideally as per the time norms in
24 hours it should give me 8.52 Hours, where in if i do simple
subtraction then it gives me error. similarly any values in A1 and A2
should give me appropriate difference...i m sorry if i sound very
immature, but i m novice.....thnx

chintu..........


--
chintu49
------------------------------------------------------------------------
chintu49's Profile: http://www.excelforum.com/member.php...o&userid=18631
View this thread: http://www.excelforum.com/showthread...hreadid=345844

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=MOD(A2-A1,1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"chintu49" wrote in message
...

HI Experts,

well, i was wondering if there is any formula for the time to calculate
the subtraction between two time intervals, becoz in some case i get
incorrect value!!!

Now say A1 has time 23:04 P.M and A2 has time 7:56 A.M, so if we do
subtraction by using calculator then ideally as per the time norms in
24 hours it should give me 8.52 Hours, where in if i do simple
subtraction then it gives me error. similarly any values in A1 and A2
should give me appropriate difference...i m sorry if i sound very
immature, but i m novice.....thnx

chintu..........


--
chintu49
------------------------------------------------------------------------
chintu49's Profile:

http://www.excelforum.com/member.php...o&userid=18631
View this thread: http://www.excelforum.com/showthread...hreadid=345844



  #3   Report Post  
RES
 
Posts: n/a
Default


because excel doesn't know you mean 7:56 the next day you are
effectively asking it to show a negative time.
Therefore you have two options
firstly enter both a date and time
or use an "if" formula

=if(B1A1,B1-A1,1+B1-A1)

The 1 efectively adds 24hrs onto the time

hope this is what you need

RES


--
RES
------------------------------------------------------------------------
RES's Profile: http://www.excelforum.com/member.php...o&userid=19307
View this thread: http://www.excelforum.com/showthread...hreadid=345844

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 Calculation poly2 Excel Worksheet Functions 4 February 15th 05 12:05 AM
elapsed time calculation rwf Excel Discussion (Misc queries) 1 January 21st 05 04:51 AM
Time calculation. shital shah Excel Worksheet Functions 2 January 20th 05 11:25 AM
"Manual calculation" takes less time. Why? Kjetil Excel Discussion (Misc queries) 1 January 7th 05 12:28 AM
time calculation excel Gate Keeper Excel Worksheet Functions 1 December 31st 04 08:27 AM


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