convert seconds to Hours:Minutes:Seconds & add these amo

baillieston

Board Regular
Joined
Jan 9, 2003
Messages
94
:rolleyes:
would any one be able to help me with the following.
I have a row of data which contains the amount of time in seconds.
e.g 120 or 3600 or 3662

I would like to show these as hours: Minutues: seconds
e.g 120 would be 00:02:00
e.g 3600 would be 01:00:00
e.g 3662 would be 01:01:02

And if possible how would I add these to ensure that the the correct amount showed.

e.g if I had a list of 60 and they all were 00:02:00

I would want to see 01:20:00 as a total and not 00:120:00

Hope I have explained this OK.

Thanks for any help. VBA or formula. :rolleyes: :rolleyes: :rolleyes:
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Juan Pablo González

MrExcel MVP
Joined
Feb 8, 2002
Messages
11,959
Re: convert seconds to Hours:Minutes:Seconds & add these

Use this formula

=A1/(24*60*60)

and format as [hh]:mm:ss

Then, just use a

=SUM(TheRange)

Excel will take care of the hours, minutes and seconds for you.
 

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Re: convert seconds to Hours:Minutes:Seconds & add these

Hello

=d1/24/60/60

format as hh:mm:ss

=sum(d1:d60)

gives 2:00:00
 

baillieston

Board Regular
Joined
Jan 9, 2003
Messages
94
Re: convert seconds to Hours:Minutes:Seconds & add these

:biggrin: Thank you both very much indeed.
Both solutions work a treat.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,336
Messages
5,641,565
Members
417,222
Latest member
Broflovski

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top