Reformat data

fullthrottlecb

New Member
Joined
Mar 10, 2011
Messages
5
I have a csv file I need to reformat here is my raw data

<table border="0" cellpadding="0" cellspacing="0" width="274"><col style="width: 206pt;" width="274"> <tbody><tr style="height: 15pt;" height="20"> <td style="height: 15pt; width: 206pt;" width="274" height="20">01099-001-290</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01099-001-289</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01099-001-288</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01126-018-005</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01126-018-006</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01129-001-007</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01129-001-005</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01129-001-004</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01129-001-003</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01129-001-006</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01129-001-002</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01132-005-007</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01132-005-006</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01133-001-007</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01133-001-005</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01133-001-004</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01133-001-003</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01133-001-006</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01133-001-002</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01149-001-290</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01149-001-289</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01149-001-288</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01155-011-005</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01155-011-004</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01155-011-003</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01155-011-006</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01157-001-007</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01157-001-005</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01157-001-004</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01157-001-003</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01157-001-006</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01157-001-002
<table border="0" cellpadding="0" cellspacing="0" width="274"><col style="width: 206pt;" width="274"> <tbody><tr style="height: 15pt;" height="20"> <td style="height: 15pt; width: 206pt;" width="274" height="20">01175-017-005</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01175-017-004</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01175-017-003</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01175-017-006</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01175-115-005</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01175-115-004</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01175-115-003</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">01175-115-006</td> </tr> </tbody></table>


here is what is need
The format of the numbers is always the same.
I need the first five character on a row by itself and then I need the rest in the next column and next rows.
Example is below.
Underscore is to represent a blank cell.

Any help would be appreciated.

Thanks


<table border="0" cellpadding="0" cellspacing="0" width="274"><col style="width: 206pt;" width="274"> <tbody><tr style="height: 15pt;" height="20"> <td style="height: 15pt; width: 206pt;" width="274" height="20">
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">

</td> </tr> </tbody></table><table border="0" cellpadding="0" cellspacing="0" width="274"><tbody></tbody></table></td></tr></tbody></table>
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
___A______________B
1 01099
2__________ 01099-001-290
3 __________01099-001-289
4 __________01099-001-288
<table border="0" cellpadding="0" cellspacing="0" width="274"><tbody></tbody></table>5
6 01126
7 __________01126-018-005
8 __________01126-018-006
<table border="0" cellpadding="0" cellspacing="0" width="274"><col style="width: 206pt;" width="274"> <tbody><tr style="height: 15pt;" height="20"> <td style="height: 15pt; width: 206pt;" width="274" height="20">9 01175
10 _________01175-017-005
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">11 _________01175-017-004</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">12 _________01175-017-003</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">13 _________01175-017-006</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">14 _________01175-115-005</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">15 _________01175-115-004</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">16 _________01175-115-003</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">17 _________01175-115-006</td></tr></tbody></table>
 
Upvote 0

Forum statistics

Threads
1,224,614
Messages
6,179,906
Members
452,949
Latest member
beartooth91

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