Time Format replace

kris ball

New Member
Joined
Mar 13, 2008
Messages
4
Hi All,

I have a data dump which I feed into Excel and part of the report is in Time Format 00:00:00. In some of the cell the report shows as :04 I need to build something that will bring this back as 00:00:04.

Can someone please help as I have to go through 3k+ cells to re format.

Kris
:confused:
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Stormseed

Banned
Joined
Sep 18, 2006
Messages
3,274
Hi All,

I have a data dump which I feed into Excel and part of the report is in Time Format 00:00:00. In some of the cell the report shows as :04 I need to build something that will bring this back as 00:00:04.

Can someone please help as I have to go through 3k+ cells to re format.

Kris
:confused:

Format the cell/cells to h:mm:ss.

Select the cell or range of cells --> Excel menubar --> Format --> Cells --> Number tab --> Custom --> in the Type option --> type 'h:mm:ss' without the quotes --> Click on OK.
 

kris ball

New Member
Joined
Mar 13, 2008
Messages
4
This is the first thing I did but it does not work I need to insert a formula or Macros to re-write the cell data?

:eek:
 

ysrmkp

Board Regular
Joined
Jun 17, 2008
Messages
55
hi,

Could u please send the sample file to ysrmkp at gmail dot com, so that i can do something.

Regards
Rajesh
 

kris ball

New Member
Joined
Mar 13, 2008
Messages
4

ADVERTISEMENT

Email has been sent
:biggrin:
 

ysrmkp

Board Regular
Joined
Jun 17, 2008
Messages
55
hi,

try using this formula...'

=IF(LEN(D2)=3,TIME(0,0,RIGHT(D2,2)),D2)

in cell E2. it should work.

Rajesh
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,852
Messages
5,833,982
Members
430,249
Latest member
Muka

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