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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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.
 
Upvote 0
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
 
Upvote 0
Re: convert seconds to Hours:Minutes:Seconds & add these

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

Forum statistics

Threads
1,214,834
Messages
6,121,877
Members
449,056
Latest member
ruhulaminappu

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
Back
Top