Sum Up data in Time Format

Indra
StarLounger
Posts: 96
Joined: 03 Sep 2010, 09:17
Location: Citra Gran, Jakarta

Sum Up data in Time Format

Post by Indra »

Hi There,

I have set data below, and I need to sum up the data so can be appears as total hours, minutes and seconds, instead of below. Any help would be appreciated, as ussual.

regards,

Indra

Total Hours
--------------------------
Day 1 9:00:00
Day 2 11:00:00
Day 3 5:00:00
--------------------------
Total 1:00:00
--------------------------

User avatar
Leif
Administrator
Posts: 7209
Joined: 15 Jan 2010, 22:52
Location: Middle of England

Re: Sum Up data in Time Format

Post by Leif »

Try formatting the Total cell with with the custom format: [h]:mm:ss
x.jpg
You do not have the required permissions to view the files attached to this post.
Leif

Indra
StarLounger
Posts: 96
Joined: 03 Sep 2010, 09:17
Location: Citra Gran, Jakarta

Re: Sum Up data in Time Format

Post by Indra »

Thank you Leif,

this is cool. :clapping:

regards
Indra

User avatar
Sundog
5StarLounger
Posts: 704
Joined: 28 Jan 2010, 22:47
Location: Alien Country (Roswell NM)

Re: Sum Up data in Time Format

Post by Sundog »

Leif wrote:Try formatting the Total cell with with the custom format: [h]:mm:ss
Lief, when custom formatting, what do the [square brackets] do, in general?
Sundog

User avatar
Don Wells
5StarLounger
Posts: 689
Joined: 27 Jan 2010, 16:45
Location: Ottawa, Ontario, Canada

Re: Sum Up data in Time Format

Post by Don Wells »

Sundog wrote:
Leif wrote:Try formatting the Total cell with with the custom format: [h]:mm:ss
Lief, when custom formatting, what do the [square brackets] do, in general?
Does this help?
You do not have the required permissions to view the files attached to this post.
Regards
Don

User avatar
Leif
Administrator
Posts: 7209
Joined: 15 Jan 2010, 22:52
Location: Middle of England

Re: Sum Up data in Time Format

Post by Leif »

Sundog wrote:Lief, when custom formatting, what do the [square brackets] do, in general?
(Thanks Don!)

My understanding is that Excel stores time in Days, therefore once you get to 24, the hours counter resets to 0.
(e.g. 3:00:00 + 21:00:00 = (1 day plus) 00:00:00)

The [h] forces the time to be displayed in hours without being converted into days - [hh] would force the hours to be shown with a leading zero if required.

You'll find a whole bundle of information on formatting dates and times at Date & Time.
Leif

User avatar
sdckapr
3StarLounger
Posts: 392
Joined: 25 Jan 2010, 12:21

Re: Sum Up data in Time Format

Post by sdckapr »

The [h] forces the time to be displayed in hours without being converted into days - [hh] would force the hours to be shown with a leading zero if required.
And also [m] ([mm]) and ([ss]) keep elapsed minutes and seconds, respectively without "re-countering" to 0 so the values can be higher than 59.

Steve

PS: But it has nothing to do with storing date/time in units of days. It would still need some distinction with the hour/min/sec of "time on a clock" vs elapsed hours/min/sec even if the stored units were hours, minutes, seconds or whatever...

User avatar
Leif
Administrator
Posts: 7209
Joined: 15 Jan 2010, 22:52
Location: Middle of England

Re: Sum Up data in Time Format

Post by Leif »

Steve - thanks for the clarification :smile:
Leif

User avatar
Sundog
5StarLounger
Posts: 704
Joined: 28 Jan 2010, 22:47
Location: Alien Country (Roswell NM)

Re: Sum Up data in Time Format

Post by Sundog »

Thanks, Don, Lief, and Steve!
Leif wrote:You'll find a whole bundle of information on formatting dates and times at Date & Time.
Wholly Toledo! What a great link!! Thanks, Lief!!!
Sundog