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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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