create statement from Extract

griffiths

New Member
Joined
Apr 10, 2014
Messages
1
I am really struggling with this one. Any help would be appreciated. Some pre works leaves me with a list of people who have travelled. I would like to be able to create seperate workbooks that use the same header as within the data extract. rows 1-6 and then all the data with the same "cost centre owners" (column ad) information within each seperate workbook. So the example
abcdefghijklmnopqrstuvwxyzaaabacad
1
2
3
4
5
6Client NumberNamecost centreStaff IDDivATBReasonClass travelInvoice DateInvoice numberdate of travellead nameno of passengerproduct nameproduct codesupplierroutingFareFare2Fare3savingsSavingsDeclinedNettVatGrossNarrativeHotel BedsPNR Dateproduct typecost centre owner
74673Company Name1234x25/02/14125/02a johnson
84673Company Name1234x25/02/1412325/02m smith
94673Company Name1234x26/02/1411426/02k klien
104673Company Name1234x27/02/1411527/07m smith
114673Company Name1234x25/02/1411625/02
K Klien


<colgroup><col style="width: 48pt;" width="64">
<tbody>

</tbody>
124673Company Name1234x25/02/1411725/02
M Smith


<colgroup><col style="width: 48pt;" width="64">
<tbody>

</tbody>
134673Company Name1234x01/02/1411801/02
K Klien


<colgroup><col style="width: 48pt;" width="64">
<tbody>

</tbody>
144673Company Name1234x03/02/1411903/02
Richard James


<colgroup><col style="width: 48pt;" width="64">
<tbody>

</tbody>
154673Company Name1324x03/02/1412003/02
K Klien


<colgroup><col style="width: 48pt;" width="64">
<tbody>

</tbody>
164673Company Name1234x03/02/1412103/02
M Smith


<colgroup><col style="width: 48pt;" width="64">
<tbody>

</tbody>
174673Company Name1234x03/02/1412203/02
M Smith


<colgroup><col style="width: 48pt;" width="64">
<tbody>

</tbody>
184673Company Name1324x7/02/1412307/02
K Klien


<colgroup><col style="width: 48pt;" width="64">
<tbody>

</tbody>

<tbody>
</tbody>
would produce 4 workbooks called "a johnson", "msmith", "K Klien", "Richard James" with 1, 5, 5,1, rows of data respectively. These workbooks would be saved sepeartely in a specified location.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,215,186
Messages
6,123,537
Members
449,106
Latest member
techog

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