Convert time formats 9.30 to 09:30

colmmc

Board Regular
Joined
Jan 8, 2004
Messages
59
I have a list of times in number format

9.30
9.35
10.50 etc

There's hundreds of them in various spreadsheets I have. I need them to be formatted as time so I can do time calculations on them.

Formatting the above examples directly as time I get

07:12:00
08:24:00
12:00:00

If I convert to text and replace the . with : I get

09:03
09:35
10:05


Now, I can probably write a macro to change all the 03s to 30s etc

But I'm wondering is there an easier method of formatting?

Thanks

Colm
 
Hi. I'm sure there are easier ways, but in another column, you could put something like:

=TIME(INT(A1),MOD(A1,INT(A1))*100,0)
 
Upvote 0
Well that works for the examples I have given. I think it should probably work for everything I have. I'm not familiar with some of those functions so I've learned something else.

Thanks a million.

Colm
 
Upvote 0

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