Convert existing numbers to time

trekcowboy

New Member
Joined
Mar 5, 2002
Messages
9
I have a column of numbers such as 123, 245, 345 etc.

I would like to convert these to times such as 1:23, 2:45, and 3:45, when I choose format cells I get a value of 0:00

Thanks for your help in advance.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
If these values are 24-hour representation of hours and minutes use...

=SUM(MID(REPT(0,4-LEN(A1))&A1,{1,3},2)/{24,1440})

...where A1 contains your value. Format the cell containing this formula as h:mm
 
Upvote 0
EXCELLENT Thank you!

I hate to ask this but could you please tell me how to include seconds.

24511 = 2:45:11

Thanks again
 
Upvote 0
On 2002-03-06 11:01, trekcowboy wrote:
EXCELLENT Thank you!

I hate to ask this but could you please tell me how to include seconds.

24511 = 2:45:11

Thanks again

=SUM(MID(REPT(0,6-LEN(A1))&A1,{1,3,5},2)/{24,1440,86400})
 
Upvote 0

Forum statistics

Threads
1,214,885
Messages
6,122,085
Members
449,064
Latest member
MattDRT

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