converting :03:44 to 0:03:44

honeywelljr

New Member
Joined
Feb 7, 2005
Messages
2
I have a report that I am running and exporting into excel. The problem is that some of the values are units of time stated as :03:44 meaning 3min. 44sec. Excel refuses to see this as a number without a 0 for the hour. Is there a way using a macro, or change of format, or formula, or anything that would allow me to take that number and make is so that excel will recognize it as a unit of time that can be manipulated as a number?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
HI

Assuming that the data is in A1, how about
=VALUE("0" & A1)

This will give the time value, or can be formatted to show hours, mins and secs as required.


Tony
 
Upvote 0
honeywelljr said:
I have a report that I am running and exporting into excel. The problem is that some of the values are units of time stated as :03:44 meaning 3min. 44sec. Excel refuses to see this as a number without a 0 for the hour. Is there a way using a macro, or change of format, or formula, or anything that would allow me to take that number and make is so that excel will recognize it as a unit of time that can be manipulated as a number?

Try,

Custom format the cell that houses the formula as mm:ss

=--(0&A1)
 
Upvote 0
I guess a more direct problem is that it seems that excel will not recognize any of the times imported from the report as numbers. it only recognizes it as text, regardless of the formatting of the cell. Other numbers (i.e. percentages) are fine and can be used in formula's. Just not the intervals of time.
 
Upvote 0

Forum statistics

Threads
1,203,453
Messages
6,055,530
Members
444,794
Latest member
HSAL

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