Raw cluttered data

kentck86

New Member
Joined
Jun 29, 2011
Messages
21
hi experts,

Please assist on this, i am having a raw data which needed adjustment on a common data in each line as example belows it is seeing that 00:04:09.588 is the time where this is the value which i am targeted to perform adjustment. My data format is some sort as follows, is there any easy way to adjust the time value only and without erasing any symbols and sign? I been trying out the text to column function but it erase the symbols and i am hardly to get it back to this origin format as everyline is not having the same symbols in place. As i am having thousands of value needed to be adjusted thus it is not practical to be adjust in manual. Any comment would be appreciated.



<table width="64" border="0" cellpadding="0" cellspacing="0"><col style="width: 48pt;" width="64"> <tbody><tr style="height: 15pt;" height="20"> <td style="height: 15pt; width: 48pt;" width="64" height="20">CHHH,00:04:09.588,,5,50001,1,10787,72221680,8201,3.0,320,6.0,640,2.0,640,,,,,1</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">NNN,00:04:09.588,,0,65,4,5,10787,136,50001,4,5,10787,297,50001,4,5,10787,249,50001,4,5,10787,257,50001,4,5,10787,265,50001,4,5,10787,128,50001,4,5,10787,144,50001,4,5,10787,217,50001,4,5,10787,34,50001,4,5,10787,225,50001,4,5,10787,233,50001,4,5,10787,322,50001,4,5,10787,392,50001,4,5,10787,400,50001,4,5,10787,408,50001,4,5,10787,186,50001,4,5,10787,112,50001,4,5,10787,430,50001,4,5,10787,385,50001,4,5,10787,321,50001,4,5,10787,329,50001,4,5,10787,337,50001,4,5,10787,200,50001,4,5,10787,208,50001,4,5,10787,216,50001,4,5,10787,129,50001,4,5,10787,137,50001,4,5,10787,145,50001,4,5,10787,58,50001,4,5,10787,433,50001,4,5,10787,248,50001,4,5,10787,264,50001,4,5,10837,136,50001,4,5,10812,136,50001,4,1,763,34,11800,4,1,767,63,11800,4,1,763,51,11800,4,1,781,52,11800,4,1,762,42,11800,4,1,780,15,11800,4,1,774,41,11800,4,1,766,33,11800,4,1,794,9,11800,4,1,775,42,11800,4,1,770,63,11800,4,1,768,19,11800,4,1,781,11,11800,4,1,774,62,11800,4,1,783,59,11800,4,1,766,45,11800,4,1,787,18,11800,4,1,782,42,11800,4,1,776,49,11800,4,1,762,24,11800,4,1,765,38,11800,4,1,775,59,11800,4,1,777,27,11800,4,1,765,24,11800,4,1,771,15,11800,4,1,777,17,11800,4,1,779,17,11800,4,1,776,37,11800,4,1,873,60,11800,4,1,874,34,11800,4,1,779,27,11800</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">CELLMM,00:04:09.588,,5,0,3,2,10787,-77.8,10837,-78.7,10812,-77.6,3,17,0,50001,10787,136,-7.2,0,-84.9,,,,,,,,,,118.0,1,50001,10837,136,-9.3,0,-88.0,,,,,,,,,,,1,50001,10812,136,-7.4,0,-85.0,,,,,,,,,,</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">ROAM,00:04:09.588,,5,2</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">PCHI,00:04:09.588,,5,3,1,,,,,,,,,,,,,,,,,,,</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">RXPC,00:04:09.588,,5,,,,,,,</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">TXPC,00:04:09.588,,5,,,,0,,,</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">GPS,00:04:09.791,,101.748093,3.158147,52,0,1,10,0</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">CELLMM,00:04:10.229,,5,0,3,2,10787,-77.4,10837,-78.7,10812,-77.7,3,17,0,50001,10787,136,-7.6,0,-85.0,,,,,,,,,,118.0,1,50001,10837,136,-9.3,0,-88.0,,,,,,,,,,,1,50001,10812,136,-7.4,0,-85.0,,,,,,,,,,</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">GAC,00:04:10.358,1,4,5</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">L3MM,00:04:10.362,,5,1,"ATTACH_","DCCC",,,"080102E5E051070405F4C15FE38D05F261200901060400030000001716"</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">CHMM,00:04:10.365,,5,50001,,10787,72221680,8201,3.0,320,6.0,640,2.0,640,,,,,1</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">PCHMM,00:04:10.365,,5,3,1,,,,,,,,,,,,,,,,,,,</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">CELLMMM,00:04:10.375,,5,0,3,2,10787,-79.3,10837,-79.3,10812,-77.7,3,17,0,50001,10787,136,-7.2,,-86.4,,,,,,,,,,,1,50001,10837,136,-8.3,0,-87.6,,,,,,,,,,,1,50001,10812,136,-7.4,0,-85.0,,,,,,,,,,</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">CHMM,00:04:10.400,,5,50001,4,10787,72221680,8201,3.0,320,6.0,640,2.0,640,,,,,1</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">NLIMM,00:04:10.400,,0,32,4,5,10787,136,50001,4,5,10787,297,50001,4,5,10787,249,50001,4,5,10787,257,50001,4,5,10787,265,50001,4,5,10787,128,50001,4,5,10787,144,50001,4,5,10787,217,50001,4,5,10787,34,50001,4,5,10787,225,50001,4,5,10787,233,50001,4,5,10787,322,50001,4,5,10787,392,50001,4,5,10787,400,50001,4,5,10787,408,50001,4,5,10787,186,50001,4,5,10787,112,50001,4,5,10787,430,50001,4,5,10787,385,50001,4,5,10787,321,50001,4,5,10787,329,50001,4,5,10787,337,50001,4,5,10787,200,50001,4,5,10787,208,50001,4,5,10787,216,50001,4,5,10787,129,50001,4,5,10787,137,50001,4,5,10787,145,50001,4,5,10787,58,50001,4,5,10787,433,50001,4,5,10787,248,50001,4,5,10787,264,50001</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">RRMM,00:04:10.406,,5,1,"BCC_CONNECTION_REQUEST","CCCH",,,"39780837FC5020B1004B0125100000000000000000"</td> </tr> </tbody></table>

thank you
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Welcome to MrExcel.

Use Data|Text To Columns with the comma as the delimiter to parse the data, adjust your times, then save as csv to restore the commas (which you will see if you open the file in Notepad).
 
Upvote 0
hi,

i been tried out the method, but it returns with filling with commas for the blanks. Any advises would be much appreciated.




CHNN,9:04:10,,5,50001,1,10787,72221680,8201,3,320,6,640,2,640,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
NLNN,9:04:10,,0,65,4,5,10787,136,50001,4,5,10787,297,50001,4,5,10787,249,50001,4,5,10787,257,50001,4,5,10787,265,50001,4,5,10787,128,50001,4,5,10787,144,50001,4,5,10787,217,50001,4,5,10787,34,50001,4,5,10787,225,50001,4,5,10787,233,50001,4,5,10787,322,50001,4,5,10787,392,50001,4,5,10787,400,50001,4,5,10787,408,50001,4,5,10787,186,50001,4,5,10787,112,50001,4,5,10787,430,50001,4,5,10787,385,50001,4,5,10787,321,50001,4,5,10787,329,50001,4,5,10787,337,50001,4,5,10787,200,50001,4,5,10787,208,50001,4,5,10787,216,50001,4,5,10787,129,50001,4,5,10787,137,50001,4,5,10787,145,50001,4,5,10787,58,50001,4,5,10787,433,50001,4,5,10787,248,50001,4,5,10787,264,50001,4,5,10837,136,50001,4,5,10812,136,50001,4,1,763,34,11800,4,1,767,63,11800,4,1,763,51,11800,4,1,781,52,11800,4,1,762,42,11800,4,1,780,15,11800,4,1,774,41,11800,4,1,766,33,11800,4,1,794,9,11800,4,1,775,42,11800,4,1,770,63,11800,4,1,768,19,11800,4,1,781,11,11800,4,1,774,62,11800,4,1,783,59,11800,4,1,766,45,11800,4,1,787,18,11800,4,1,782,42,11800,4,1,776,49,11800,4,1,762,24,11800,4,1,765,38,11800,4,1,775,59,11800,4,1,777,27,11800,4,1,765,24,11800,4,1,771,15,11800,4,1,777,17,11800,4,1,779,17,11800,4,1,776,37,11800,4,1,873,60,11800,4,1,874,34,11800,4,1,779,27,11800,,,,,,,,,,,,,,,,,,,,
CELLMNN,9:04:10,,5,0,3,2,10787,-77.8,10837,-78.7,10812,-77.6,3,17,0,50001,10787,136,-7.2,0,-84.9,,,,,,,,,,118,1,50001,10837,136,-9.3,0,-88,,,,,,,,,,,1,50001,10812,136,-7.4,0,-85,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
ROAM,9:04:10,,5,2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
NLTMM,9:04:10,,0,32,4,5,10787,136,50001,4,5,10787,297,50001,4,5,10787,249,50001,4,5,10787,257,50001,4,5,10787,265,50001,4,5,10787,128,50001,4,5,10787,144,50001,4,5,10787,217,50001,4,5,10787,34,50001,4,5,10787,225,50001,4,5,10787,233,50001,4,5,10787,322,50001,4,5,10787,392,50001,4,5,10787,400,50001,4,5,10787,408,50001,4,5,10787,186,50001,4,5,10787,112,50001,4,5,10787,430,50001,4,5,10787,385,50001,4,5,10787,321,50001,4,5,10787,329,50001,4,5,10787,337,50001,4,5,10787,200,50001,4,5,10787,208,50001,4,5,10787,216,50001,4,5,10787,129,50001,4,5,10787,137,50001,4,5,10787,145,50001,4,5,10787,58,50001,4,5,10787,433,50001,4,5,10787,248,50001,4,5,10787,264,50001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
 
Upvote 0
Activate cell containing time and run this Sub.
Code:
[COLOR="Blue"]Sub[/COLOR] UpdateTime()

    [COLOR="Blue"]Dim[/COLOR] newTime [COLOR="Blue"]As[/COLOR] [COLOR="Blue"]String[/COLOR]
    
    newTime = InputBox("Type in new time:", "Time Update")
    [COLOR="Blue"]If[/COLOR] newTime = "False" [COLOR="Blue"]Or[/COLOR] newTime = vbNullString [COLOR="Blue"]Then[/COLOR] [COLOR="Blue"]Exit[/COLOR] [COLOR="Blue"]Sub[/COLOR]
    
    [COLOR="Blue"]With[/COLOR] CreateObject("VBScript.RegExp")
        .Pattern = "\d{2}:\d{2}:\d{2}\.\d{3}"
        [COLOR="Blue"]If[/COLOR] .Test(newTime) [COLOR="Blue"]Then[/COLOR]
            ActiveCell = .Replace(ActiveCell, newTime)
        [COLOR="Blue"]Else[/COLOR]
            MsgBox "Incorrect time format!", vbCritical, "Error"
        [COLOR="Blue"]End[/COLOR] [COLOR="Blue"]If[/COLOR]
    [COLOR="Blue"]End[/COLOR] [COLOR="Blue"]With[/COLOR]
    
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]Sub[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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