Populate data from a txt file to fixed format

vigushpri2030

New Member
Joined
Apr 26, 2016
Messages
5
Hello all,

I am working on this particular file where data is generated in a .txt format. I have managed to convert the file to .xlsx and get rid of some unnecessary columns. Once I have structured the data, I need to populate it into a defined format.

Raw Data:
D05B - XYZ CompanyXYZ Company FILE DATE 05/31/16 PAGE 1
865 - MEDIUM Q06 - TYPEOVERDUE STATISTICS
0C02 - CONTROL CODE
PAYMENT OVERDUE INFORMATION
A. OVERDUE AMOUNT
1. OVERDUE 0 DAY000,000,000.00
1.1 MINIMUM/PARTIALLY REPAYMENT ACCOUNT000,000,000.00
2. OVERDUE 1-30 DAYS000,000,000.00
3. OVERDUE 31-60 DAYS000,000,000.00
4. OVERDUE 61-90 DAYS000,000,000.00
5. OVERDUE 91-120 DAYS000,000,000.00
6. OVERDUE 121-180 DAYS000,000,000.00
7. OVERDUE ABOVE 180 DAYS000,000,000.00
B. OVERDUE ACCOUNT NUMBERS
B.1 CATEGORIZED BY OVERDUE DAYS
1. OVERDUE 0 DAY000,000,000
1.1 MINIMUM/PARTIALLY REPAYMENT ACCOUNT000,000,000
2. OVERDUE 1-30 DAYS000,000,000
3. OVERDUE 31-60 DAYS000,000,000
4. OVERDUE 61-90 DAYS000,000,000
5. OVERDUE 91-120 DAYS000,000,000
6. OVERDUE 121-180 DAYS000,000,000
7. OVERDUE ABOVE 180 DAYS000,000,000
B.2 CATEGORIZED BY OVERDUE AMOUNT
1. OVERDUE 0000,000,000
1.1. MINIMUM REPAYMENT AMOUNT000,000,000
2. OVERDUE AMOUNT(1-1000)000,000,000
3. OVERDUE AMOUNT (1001-5000)000,000,000
4. OVERDUE AMOUNT (USD 5000)000,000,000


<colgroup><col><col></colgroup><tbody>
</tbody>

The medium and control code keeps changing while the below field names (such as OVERDUE AMOUNT; OVERDUE 0 DAY) are always unique. Corresponding values changes. There are about 500 such medium and control entries in the excel

I need to populate it in the below format:

Required Format:

MediumControl CodeOVERDUE AMOUNTOVERDUE ACCOUNT NUMBERS
1. OVERDUE 0 DAY2. OVERDUE 1-30 DAYS3. OVERDUE 31-60 DAYS4. OVERDUE 61-90 DAYS5. OVERDUE 91-120 DAYS6. OVERDUE 121-180 DAYS7. OVERDUE ABOVE 180 DAYS1. OVERDUE 0 DAY2. OVERDUE 1-30 DAYS3. OVERDUE 31-60 DAYS4. OVERDUE 61-90 DAYS5. OVERDUE 91-120 DAYS6. OVERDUE 121-180 DAYS7. OVERDUE ABOVE 180 DAYS

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col span="2"><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

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