Convert Decimal to Hours & Mins

swaink

Active Member
Joined
Feb 15, 2002
Messages
432
Hi All

I have browsed for the answer to this one and found a few answers that point me in the right direction but they don't quite fit what I need.

I need to convert the data from a text value to HH:MM

I have been given an extract of some 40k lines in one column I have the time of an event showing as 0.013 instead of 00:13 another may be 0.125 which would be 01:25.

Would anyone be able to offer any suggestions as to how I can best convert these values

Regards

Kevin
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,

Try:

=--REPLACE(SUBSTITUTE(B2,".",""),3,0,":")

in an adjascent column. Format cell as time.
 
Upvote 0

swaink

Active Member
Joined
Feb 15, 2002
Messages
432
Lewiy/Fairwinds

Thats fantastic and has done the job

Many thanks for your help its appreciated

Regards

Kevin
 
Upvote 0

Forum statistics

Threads
1,191,693
Messages
5,988,135
Members
440,127
Latest member
naxmax

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
Top