I’m running a report on the average hold time of telephone calls. The data I extract for the report exports like this:
3:09
:00
:40
3:48
2:18
:12
:30
1:10
:43
:52
1:32
2:07
:14
:00
I need to re-format the cells to show like this:
3:09
0:00
0:40
3:48
2:18
0:12
0:30
1:10
0:43
0:52
1:32
2:07
0:14
0:00
If I only had 15 or 20, I would change them manually. But, this report has about 200 rows. And, I have 7 different reports to run.
I’m lost when it comes to making macros and using Visual Basic. Although, I can follow instructions and copy/paste. The code mentioned in this thread:
http://www.excelforum.com/excel-gene...s-to-time.html
Doesn’t work with this particular format. It’s changing the data to this:![]()
Sub TransformTimp_2() Dim mcell As Range For Each mcell In Selection If Len(mcell) = 6 Then mcell = 0 + "0" & mcell mcell.NumberFormat = "[hh]:mm:ss " Next mcell End Sub
03:09:00
:00
:40
03:48:00
02:18:00
:12
:30
01:10:00
:43
:52
01:32:00
02:07:00
:14
:00
How can I change the VB code to give me what I want?
Thank you.
Bookmarks