Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Krishna
 
Posts: n/a
Default time interval calculations in excel

Excel does a lot of time calculations, treating the current time as a
distance from midnight.

However, if all you want to add are two (or more) time intervals, and come
up with the total time, it gets confused.

For example, if you are adding time taken to accomplish several tasks, the
individual times, such as 10 minutes, two-and-a-half hours, ... do not have
anything to do with midnight. And if you add several time segments, you
should see the entire amount, and not the remainder after 24 hour chunks are
subtracted.

This is not an esoteric requiement in calculations. However, I have had to
resort to acrobatics to be able to accomplish such calculations.
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

What's your question? If you know that 1 is 24 hours in Excel it is easy to
add and subtract different times


Regards,

Peo Sjoblom

"Krishna" wrote:

Excel does a lot of time calculations, treating the current time as a
distance from midnight.

However, if all you want to add are two (or more) time intervals, and come
up with the total time, it gets confused.

For example, if you are adding time taken to accomplish several tasks, the
individual times, such as 10 minutes, two-and-a-half hours, ... do not have
anything to do with midnight. And if you add several time segments, you
should see the entire amount, and not the remainder after 24 hour chunks are
subtracted.

This is not an esoteric requiement in calculations. However, I have had to
resort to acrobatics to be able to accomplish such calculations.

  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Krishna,

Format your cell for

[h]:mm:ss

and you won't get that "24 hour chuck" removal.

Also, you could format the cell for decimal, and simply multiply your sum by
24 to get hours.

HTH,
Bernie
MS Excel MVP


"Krishna" wrote in message
...
Excel does a lot of time calculations, treating the current time as a
distance from midnight.

However, if all you want to add are two (or more) time intervals, and come
up with the total time, it gets confused.

For example, if you are adding time taken to accomplish several tasks, the
individual times, such as 10 minutes, two-and-a-half hours, ... do not

have
anything to do with midnight. And if you add several time segments, you
should see the entire amount, and not the remainder after 24 hour chunks

are
subtracted.

This is not an esoteric requiement in calculations. However, I have had to
resort to acrobatics to be able to accomplish such calculations.



  #4   Report Post  
Krishna
 
Posts: n/a
Default



"Peo Sjoblom" wrote:

What's your question? If you know that 1 is 24 hours in Excel it is easy to
add and subtract different times


Perhaps I didn't make myself very clear.

Consider the following numbers:

Task 1 0:30
Task 2 0:45
Task 3 10:30
Task 4 1:20
Task 5 2:25
Task 6 0:45
Task 7 1:30
Task 8 3:30
Task 9 4:45
Task 10 5:45

If I want to sum up the time for all the tasks, by sum(...), I get 7:45 as
the result, which 31:45 (the correct total), minus 24 hours.

What I want is to get away from this baggage of 24 hours.

Thank you for the reply.
  #5   Report Post  
Krishna
 
Posts: n/a
Default

I will try the two approaches you suggested. However, I am not too sanguine
about their outcome. But, one can hope.

If you have dats such as:

Perhaps I didn't make myself very clear.

Consider the following numbers:

Task 1 0:30
Task 2 0:45
Task 3 10:30
Task 4 1:20
Task 5 2:25
Task 6 0:45
Task 7 1:30
Task 8 3:30
Task 9 4:45
Task 10 5:45

If I want to sum up the time for all the tasks, by sum(...), I get 7:45 as
the result, which 31:45 (the correct total), minus 24 hours.

What I want is to get away from this baggage of 24 hours, without having to
check how many multiples of 24 hours have been chucked away.

Right now what I am doing is convert the time in hh:mm format to a decimal
number, add all the decimal numbers, and convert back to a hh:mm format. But
it still throws away 24-hour multiples.

I will try your suggestion and get back.

Thanks.

Thank you for the reply.

"Bernie Deitrick" wrote:

Krishna,

Format your cell for

[h]:mm:ss

and you won't get that "24 hour chuck" removal.

Also, you could format the cell for decimal, and simply multiply your sum by
24 to get hours.

HTH,
Bernie
MS Excel MVP




  #6   Report Post  
Krishna
 
Posts: n/a
Default

Yes! That works. For the previous set of numbers I gave, the result does come
out as 31:45, as it should.

Now, is this mentioned anywhere in the online help?

Thank you very much.



"Bernie Deitrick" wrote:
Format your cell for
[h]:mm:ss


  #7   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Krishna,

Now, is this mentioned anywhere in the online help?


Sure. Search for

Number format codes

HTH,
Bernie
MS Excel MVP


Yes! That works. For the previous set of numbers I gave, the result does

come
out as 31:45, as it should.


Thank you very much.



"Bernie Deitrick" wrote:
Format your cell for
[h]:mm:ss




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
Excel only calculates the confidence interval for a population . manpahayes Excel Worksheet Functions 0 March 23rd 05 06:07 PM
Does Excel support Time Zones? Aaron Excel Worksheet Functions 1 March 11th 05 06:17 PM
How to continuously update time in Excel? Ray_Fry Excel Worksheet Functions 1 February 20th 05 07:00 PM
How do I stop Excel from closing the open file each time I open a. Welsin Setting up and Configuration of Excel 3 January 8th 05 11:16 PM
time calculation excel Gate Keeper Excel Worksheet Functions 1 December 31st 04 08:27 AM


All times are GMT +1. The time now is 09:36 PM.

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"