Absolute Time

  • Thread starter Thread starter bajjo
  • Start date Start date
B

bajjo

a2 = 03/03/2003 20:52:17
b2 = 13/04/2003 21:22:06

I am calculating difference between two date/Time Value and then their
Absolute Value using these formula.

Cycle time = b2-a2

Cycle time(Result) = 984:29:49


Absolute cycle time =
DAY(B2-A2)*24+HOUR(B2-A2)+MINUTE(B2-A2)/60+SECOND(B2-A2)/3600

Absolute cycle time(Result) = 302.497

Where the result of Absolute Cycle time is wrong. That's because DAY()
returns a value between 1 and 31 - which gives
a maximum of 744 hours (+ 24 for the HOURS() comparison).


How to solve above problem so that i can get right result.(i.e Absolute
Cycle time).

Thanks!!
 
Hi

Assuming you by Absolute mean decimal number; you can either use INT instead of DAY, or
use the far simpler formula
=(B2-A2)*24
you may have to manually format the result cell as decimal number after entering this.

HTH. Best wishes Harald
Followup to newsgroup only please.
 
If I undersatand you correctly, it looks like you can calculate what
you're calling "Absolute cycle time" as

=(B2-A2)*24 ===> 984.496944444487
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top