Hello,
I have a spreadsheet that contains several columns similar to the below:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Report Date:[/TD]
[TD]6/22/18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Category[/TD]
[TD]Sub Category[/TD]
[TD]Reg Code[/TD]
[TD]Dist Code[/TD]
[TD]Area Code[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Jon[/TD]
[TD]Doe[/TD]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[TD]11[/TD]
[TD]000[/TD]
[TD]00[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Jane[/TD]
[TD]Doe[/TD]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[TD]11[/TD]
[TD]001[/TD]
[TD]00[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Jack[/TD]
[TD]Doe[/TD]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[TD]11[/TD]
[TD]001[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Mary[/TD]
[TD]Doe[/TD]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[TD]11[/TD]
[TD]002[/TD]
[TD]00[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Jasper[/TD]
[TD]Test[/TD]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[TD]11[/TD]
[TD]002[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Veronica[/TD]
[TD]Test[/TD]
[TD]Fruit[/TD]
[TD]Orange[/TD]
[TD]12[/TD]
[TD]000[/TD]
[TD]00[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Angel[/TD]
[TD]Test[/TD]
[TD]Fruit[/TD]
[TD]Orange[/TD]
[TD]12[/TD]
[TD]001[/TD]
[TD]00[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Jim[/TD]
[TD]Doe[/TD]
[TD]Fruit[/TD]
[TD]Orange[/TD]
[TD]12[/TD]
[TD]001[/TD]
[TD]01[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Jess[/TD]
[TD]Grass[/TD]
[TD]Veggie[/TD]
[TD]Carrot[/TD]
[TD]13[/TD]
[TD]000[/TD]
[TD]00[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]June[/TD]
[TD]High[/TD]
[TD]Veggie[/TD]
[TD]Carrot[/TD]
[TD]13[/TD]
[TD]001[/TD]
[TD]00[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Jen[/TD]
[TD]One[/TD]
[TD]Veggie[/TD]
[TD]Carrot[/TD]
[TD]13[/TD]
[TD]001[/TD]
[TD]01[/TD]
[/TR]
</tbody>[/TABLE]
What I would like to be able to do is the following:
1. Create different workbooks (This example would result in 3 workbooks) that contain the same data where Reg Code (2 characters always) is the same.
2. Each workbook would contain the rows of information where Reg Code is the same; however, I would NOT like to include any rows containing "00" in the Area Code field.
3. Lines 1 and 2 would be copied over each time.
4. Create each file name based on "[Category]_[Sub Category]_MMMYYYY.xlsx"
TIA!
I have a spreadsheet that contains several columns similar to the below:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Report Date:[/TD]
[TD]6/22/18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Category[/TD]
[TD]Sub Category[/TD]
[TD]Reg Code[/T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]
[TD]June[/TD]
[TD]High[/TD]
[TD]Veggie[/TD]
[TD]Carrot[/TD]
[TD]13[/TD]
[TD]001[/TD]
[TD]00[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Jen[/TD]
[TD]One[/TD]
[TD]Veggie[/TD]
[TD]Carrot[/TD]
[TD]13[/TD]
[TD]001[/TD]
[TD]01[/TD]
[/TR]
</tbody>[/TABLE]
What I would like to be able to do is the following:
1. Create different workbooks (This example would result in 3 workbooks) that contain the same data where Reg Code (2 characters always) is the same.
2. Each workbook would contain the rows of information where Reg Code is the same; however, I would NOT like to include any rows containing "00" in the Area Code field.
3. Lines 1 and 2 would be copied over each time.
4. Create each file name based on "[Category]_[Sub Category]_MMMYYYY.xlsx"
TIA!
Last edited: