Conversion of hh:mm:ss to seconds

bladeuk

Board Regular
Joined
Apr 6, 2005
Messages
178
o_O Feeling a bit dim today so can anyone help?

I have a download into excel that provides an anser in hours, minutes and seconds. eg 00:04:14

i want to convert this to seconds, i.e 254

Any ideas?

Thanks
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Dates are stored as integers and times (i.e. "part days") as fractions. 1 hour = 1/24 days, etc. Therefore:
Code:
=(cell)*24*60*60
Just make sure you change the cell format, or you might get "00:00:00" displayed! ;)
 
Upvote 0
It depends on what you want it for. If you just want to change the format, use a custom number format of [ss] and you'll see 254.

If you want to have the seconds as integers then use a formula in an other cell to convert it:
Code:
=A1*24*60*60
formatted as a number, instead of time.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,916
Members
449,093
Latest member
dbomb1414

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