Time Conversion/Fractions of a Second

im2fst4u

New Member
Joined
Jan 4, 2014
Messages
3
Hi guys and gals I got a possible tough question for ya.
I'm doing calculations with lap time and race cars and need the fractions of a second. I got my time to work out with a m.ss.000 format. (need the fractions of a second)
But I'm doing calculations in formulas that require ^2 and things like that, so I need a number, not time. (i've tried, I get dumb numbers like 0:00.002)

I found this formula online to convert time into seconds:
=HOUR(A1)*3600+MINUTE(A1)*60+SECOND(A1) This works splendidly for what I need but I want the fraction of a second included in the number as this only does a conversion like this:

Ex. 1:20.500 (one minute, twenty and a half seconds)
converts to 81.000(seconds) Now I have a number to use in formulas but with a rounded value. :(

I need this:
Ex. 1:20.500
80.500 (seconds)

Anyone got a solution?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi im2fst4u,

If you just need the display in that way, use below formula:-
=HOUR(A1)*3600+MINUTE(A1)*60+SECOND(A1)-1&"."&RIGHT(TEXT(A1,"mm:ss.000"),3)


Regards,
DILIPandey
 
Upvote 0
if you want to work with fractions of a second, then you will have to do all calculations in seconds

do not use any of the time formulas

after you complete the calculations, convert to a string that looks like a time value eg. "23:45.546"
 
Upvote 0
I need this:
Ex. 1:20.500
80.500 (seconds)

Anyone got a solution?

You simply multiply by hours in a day (24) * minutes in an hour (60) * seconds in an hour (60) = 86400

Note: You may need to format the cell containing the formula as number.

For example:
Excel Workbook
AB
1TimeDecimal
201:20.580.500
Sheet1
 
Last edited:
Upvote 0
Hi im2fst4u,

If you just need the display in that way, use below formula:-
=HOUR(A1)*3600+MINUTE(A1)*60+SECOND(A1)-1&"."&RIGHT(TEXT(A1,"mm:ss.000"),3)


Regards,
DILIPandey

So I tried this out and it works to give the fractions of a second but gives an inaccurate number
ie. Time:1:20.225, The conversion is:79.225. Shouldn't it be 80.225?
 
Upvote 0
You simply multiply by hours in a day (24) * minutes in an hour (60) * seconds in an hour (60) = 86400

Note: You may need to format the cell containing the formula as number.

For example:
Sheet1

AB
TimeDecimal

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:73px;"><col style="width:78px;"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]01:20.5[/TD]
[TD="bgcolor: #ffff00, align: right"]80.500[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
B2=A2*86400

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Hey, I tried this and it works great! Plus it's simple and I understand it.

Thanks for the quick replies guys, really helpful.
 
Upvote 0
Hey, I tried this and it works great! Plus it's simple and I understand it.

Thanks for the quick replies guys, really helpful.

Glad it works for you, thanks for letting us know.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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