Format race times with hundredths of a second from 1.25.67 to 1:25.67

MichelleLink

New Member
Joined
Dec 3, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello, is there a way to format a race time with hundreds of a second from 1.25.67 to 1:25.67 automatically? Basically change that first decimal to a colon so it reads mm:ss.00
I have thousands to do and I am trying to calculate split times. Thanks!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi, you could use a formula in an adjacent cell to convert that value into a proper Excel time.

For example:
Excel Formula:
=0+SUBSTITUTE(A1,".",":",1)

You could then custom format the cell that contains the formula as [mm]:ss.000 and perform your calculations upon it.
 
Upvote 0
Hi
Option 2
VBA Code:
Sub testr()
a = Range(Cells(2, 1), Cells(12, 1).End(xlDown))
For i = 1 To UBound(a)
a(i, 1) = Split(a(i, 1), ".")
a(i, 1) = a(i, 1)(0) & ":" & a(i, 1)(1) & "." & a(i, 1)(2)
Next
With Cells(2, 2).Resize(UBound(a))
.Value = a
.NumberFormat = "mm:ss.000"
End With
End Sub
 
Upvote 0
Hi, you could use a formula in an adjacent cell to convert that value into a proper Excel time.

For example:
Excel Formula:
=0+SUBSTITUTE(A1,".",":",1)

You could then custom format the cell that contains the formula as [mm]:ss.000 and perform your calculations upon it.
Thank you SO much, that worked great!
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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