reorganising data for mail merge

Reljoy

New Member
Joined
May 6, 2010
Messages
8
I have a spreadsheet as a .xls generated from a swimming carnival program.

It gives me data in column A that looks like:

[TABLE="width: 416"]
<tbody>[TR]
[TD]Appleby, Esmae - Female - Year: 7 - Comp#: - T - DOB: 14/03/2003[/TD]
[/TR]
[TR]
[TD]#73 Girls 12 100 Free Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Bonnyville Sarah - Female - Year: 7 - Comp#: - T - DOB: 11/03/2003[/TD]
[/TR]
[TR]
[TD]#13 Girls 12 50 Free Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#35 Girls 12 50 Fly Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#73 Girls 12 100 Free Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Capper Allison - Female - Year: 7 - Comp#: - C - DOB: 16/01/2003[/TD]
[/TR]
[TR]
[TD]#13 Girls 12 50 Free Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#57 Girls 12 50 Breast Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Floss Chantelle - Female - Year: 7 - Comp#: - C - DOB: 20/01/2003[/TD]
[/TR]
[TR]
[TD]#13 Girls 12 50 Free Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#57 Girls 12 50 Breast Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#73 Girls 12 100 Free Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#87 Girls 12 50 Back Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Frost, Jack - Male - Year: 7 - Comp#: 285 - C - DOB: 29/01/2003[/TD]
[/TR]
[TR]
[TD]#4 Boys 12-14 200 IM Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#21 Boys 12 50 Free Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#43 Boys 12 50 Fly Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#54 Boys 12-14 200 Free Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#65 Boys 12 50 Breast Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#80 Boys 12 100 Free Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]#95 Boys 12 50 Back Secondary[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I want it to look like: (there could be up to 8 events for each student):

[TABLE="width: 1849"]
<tbody>[TR]
[TD]Appleby, Esmae - Female - Year: 7 - Comp#: - T - DOB: 14/03/2003[/TD]
[TD]#73 Girls 12 100 Free Secondary[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bonnyville Sarah - Female - Year: 7 - Comp#: - T - DOB: 11/03/2003[/TD]
[TD]#13 Girls 12 50 Free Secondary[/TD]
[TD]#35 Girls 12 50 Fly Secondary[/TD]
[TD]#73 Girls 12 100 Free Secondary[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Capper Allison - Female - Year: 7 - Comp#: - C - DOB: 16/01/2003[/TD]
[TD]#13 Girls 12 50 Free Secondary[/TD]
[TD="colspan: 2"]#57 Girls 12 50 Breast Secondary[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Floss Chantelle - Female - Year: 7 - Comp#: - C - DOB: 20/01/2003[/TD]
[TD]#13 Girls 12 50 Free Secondary[/TD]
[TD]#57 Girls 12 50 Breast Secondary[/TD]
[TD]#73 Girls 12 100 Free Secondary[/TD]
[TD]#87 Girls 12 50 Back Secondary[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Frost, Jack - Male - Year: 7 - Comp#: 285 - C - DOB: 29/01/2003[/TD]
[TD]#4 Boys 12-14 200 IM Secondary[/TD]
[TD]#21 Boys 12 50 Free Secondary[/TD]
[TD]#43 Boys 12 50 Fly Secondary[/TD]
[TD]#54 Boys 12-14 200 Free Secondary[/TD]
[TD]#65 Boys 12 50 Breast Secondary[/TD]
[TD]#80 Boys 12 100 Free Secondary[/TD]
[TD]#95 Boys 12 50 Back Secondary[/TD]
[/TR]
</tbody>[/TABLE]


Then the data can be mail merged to a parent letter.
How can I make Excel do this?
I want it to be able to be reused year after year.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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