# convert h:mm:ss to seconds only

#### allanon1

##### New Member
how to convert hours:minutes:seconds to just seconds. for example in cell a1 I have 1:02:00 would come out 3720. any formula to do so would be great thanks

### Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

#### kgkev

##### Well-known Member
Multiply by 86400 (24x60x60) and display as a number.
Excel Workbook
AB
101:02:003,720.00
Sheet1
Excel 2000
Cell Formulas
RangeFormula
B1=A1*24*60*60

#### VoG

##### Legend
Try

=A1*86400

and format as Number.

#### JugglerJAF

##### Active Member
Depending on how precise you want the numbers, you may want to round the calculation to zero decimal places

=ROUND(A2*86400,0)

Excel does very precise calculations, but multiplying a time value by 86400 can (for some values) result in a decimal being calculated rather than a whole number of seconds.

For example, 02:10:25 when multiplied by 86400 returns 7824.99999999995. If you were to compare the calculation to a value of 7825 (the actual number of whole seconds in 02:10:25), the two would not match. Rounding the calculation to zero decimal places resolves the issue.

#### allanon1

##### New Member
thanks guys that works great

Replies
0
Views
99
Replies
19
Views
375
Replies
7
Views
471
Replies
7
Views
125
Replies
3
Views
119

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,493
Messages
5,832,015
Members
430,104
Latest member
briannnnleong

### 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.

### Which adblocker are you using?

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

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