Working with time formats

Goodspeed

New Member
Joined
Sep 24, 2006
Messages
32
Hello,

I am trying to find a way to either import my data, preformat cells or reformat cells in order to display the 0 that would display in the "hour" area of a time display when that time is less than 1 hour. I import quite a bit of "time" data into excel and it is often in increments that are less than a hour, for example; :37:15 = thirty seven minutes and fifteen seconds. When I want to sum these types of entries though excel interprets the total as a time which is not what I need. I find though that when I add the 0 in the hour area of the time it does total the times correctly. For example 0:37:15 + 0:24:07 = 1:01:22 whereas if I try to add :37:15 + :24:07 = I get 0:00:00 as if excel doesn't know what to do with it? Does anyone have any ideas on how I could overcome this?
 

Excel Facts

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

macajm

New Member
Joined
Oct 21, 2005
Messages
32
you could create a macro or run a second column that uses the formula like:-
=IF(LEFT(A1)=":",VALUE("0"&A1),A1)
 

Goodspeed

New Member
Joined
Sep 24, 2006
Messages
32
Thank you for your advice. I was able to use your suggestion to solve my problem.
 

Forum statistics

Threads
1,141,219
Messages
5,705,086
Members
421,378
Latest member
CarlosDuran

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