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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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
1TimeDecimal
201:20.580.500

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:73px;"><col style="width:78px;"></colgroup><tbody>
</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

Forum statistics

Threads
1,214,983
Messages
6,122,591
Members
449,089
Latest member
Motoracer88

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