Convert Numbers into Actual Time

Chris Waller

Board Regular
Joined
Jan 18, 2009
Messages
183
Office Version
  1. 365
Platform
  1. Windows
I have a Spreadsheet completed by a colleague who does not understand anything about Excel and I am having to try to sort out a problem caused by a user.

What has happened on several columns which have been formatted as numbers with two decimal places actually represent times for example 10.45 equates to 10 minutes 45 seconds, 0.50 represents fifty seconds, 1.10.50 represents 1 hour 10 minutes and 50 seconds. As there are over 1,200 occurances in 6 seperate columns, does anyone know of a way to easily change these to actual hours, minutes and seconds that they represent without making an absolute hash of the Spreadsheet? TIA</SPAN>
 
Thanks that worked for a couple of my examples however, the 50 seconds now looks like 5 seconds.
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Thanks that worked for a couple of my examples however, the 50 seconds now looks like 5 seconds.
Are you referring to my formula? If so, are your values text or numbers? I assumed they were text because you showed 0.50... numbers cannot retain a trailing zero but text representations of numbers can. My formula will not work if those values are numbers.
 
Upvote 0
OK, I see now..

0.50 is being entered for 50 seconds.
Excel converts that to 0.5 (removes the trailing 0)

Try
=TEXT(SUBSTITUTE(TEXT(A1,"0.00"),".",""),"00\:00\:00")+0
 
Upvote 0
Are you referring to my formula? If so, are your values text or numbers? I assumed they were text because you showed 0.50... numbers cannot retain a trailing zero but text representations of numbers can. My formula will not work if those values are numbers.

The number format 0.00 displays 0.5 as 0.50.
 
Upvote 0
Rick, That worked a treat Kudos to you</SPAN></SPAN>. Brilliant! I have been trying to sort this out since the middle of last week. I will keep this formula in my Workbook. No doubt it will come in very handy especially if I have to help out on the same task that I am currently doing.

I will give this a whirl at work tomorrow where I have a thousand or so more entries to try this out on. Thanks once again. I can perhaps sleep a little easier tonight. Thanks again.
 
Upvote 0
The number format 0.00 displays 0.5 as 0.50.
Yeah, but actually what I wrote did not apply (it was a knee-jerk reaction based on a different formula that I did not end up posting). The TEXT(A2,"0.00") part of my formula handle the number problem.
 
Upvote 0
Thanks Jonmo and Rick, I should have paid closer attention.

I'm wondering if you can explain what the "\" is actually doing in the text format?

I've been meaning to ask for a while because I don't quite understand it.
 
Upvote 0

Forum statistics

Threads
1,215,368
Messages
6,124,523
Members
449,169
Latest member
mm424

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