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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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.
 
Upvote 0
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:
 
Upvote 0
hi,

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

Regards
Rajesh
 
Upvote 0
hi,

try using this formula...'

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

in cell E2. it should work.

Rajesh
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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