Hi All,
I need to create a spreadsheet that I can use in a mail merge. I have a contact numbers in column A, and in column J I have the individual items that the contact purchased. I need to create a list of items for each unique contact number that I can then pull into an unordered list in a letter. How can I do that?
Thanks,
Nancy
Example original data
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Row[/TD]
[TD]Column A[/TD]
[TD]Column J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ContactID[/TD]
[TD]Purchase[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]VO-3476[/TD]
[TD]Black Shoes[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]VO-3476[/TD]
[TD]Black Socks[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]VO-3476[/TD]
[TD]White Sweater[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]VO-3482[/TD]
[TD]Red Dress[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]HS-3555[/TD]
[TD]Slippers (size 10)[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]BB-3996.BU[/TD]
[TD]Pink Glasses[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]BB-3996.BU[/TD]
[TD]Blue Glasses[/TD]
[/TR]
</tbody>[/TABLE]
Desired results on a new worksheet
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Row[/TD]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ContactID[/TD]
[TD]Purchases[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]VO-3476[/TD]
[TD]Black Shoes
Black Socks
White Sweater[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]VO-3482[/TD]
[TD]Red Dress[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]HS-3555[/TD]
[TD]Slippers (size 10)[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]BB-3996.BU[/TD]
[TD]Pink Glasses
Blue Glasses[/TD]
[/TR]
</tbody>[/TABLE]
The letter would then pull in:
Dear Mary,
Thank you for purchasing
I need to create a spreadsheet that I can use in a mail merge. I have a contact numbers in column A, and in column J I have the individual items that the contact purchased. I need to create a list of items for each unique contact number that I can then pull into an unordered list in a letter. How can I do that?
Thanks,
Nancy
Example original data
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Row[/TD]
[TD]Column A[/TD]
[TD]Column J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ContactID[/TD]
[TD]Purchase[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]VO-3476[/TD]
[TD]Black Shoes[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]VO-3476[/TD]
[TD]Black Socks[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]VO-3476[/TD]
[TD]White Sweater[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]VO-3482[/TD]
[TD]Red Dress[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]HS-3555[/TD]
[TD]Slippers (size 10)[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]BB-3996.BU[/TD]
[TD]Pink Glasses[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]BB-3996.BU[/TD]
[TD]Blue Glasses[/TD]
[/TR]
</tbody>[/TABLE]
Desired results on a new worksheet
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Row[/TD]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ContactID[/TD]
[TD]Purchases[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]VO-3476[/TD]
[TD]Black Shoes
Black Socks
White Sweater[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]VO-3482[/TD]
[TD]Red Dress[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]HS-3555[/TD]
[TD]Slippers (size 10)[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]BB-3996.BU[/TD]
[TD]Pink Glasses
Blue Glasses[/TD]
[/TR]
</tbody>[/TABLE]
The letter would then pull in:
Dear Mary,
Thank you for purchasing
- Black Shoes
- Black Socks
- White Sweater