I have an Excel 2010 workbook where I combined mailing lists from three sources. Each line in the workbook contained an email address, a code indicating the original source list and other information associated with the address. [TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Address[/TD]
[TD]Fld 1[/TD]
[TD]Fld 2[/TD]
[TD]Fld3[/TD]
[/TR]
[TR]
[TD]R[/TD]
[TD]abc@gmail.com[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]L[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR="class: grid"]
[TD]abc@gmail.com[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]M[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR="class: grid"]
[TD]abc@gmail.com[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]R[/TD]
[TD]xyz@yahoo.com[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]L[/TD]
[TD]xyz@yahoo.com[/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]M[/TD]
[TD]sde@aol.com[/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have sorted on email address and discovered duplicate addresses. My goal is to have one line per email address with fields for Code and other fields merged as below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Address[/TD]
[TD]R[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]Fld1[/TD]
[TD]Fld2[/TD]
[TD]Fld3[/TD]
[/TR]
[TR]
[TD]abc@gmail.com[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]xyz@yahoo.com[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]sde@aol.com[/TD]
[TD][/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
and a macro to automate the process.
****** id="cke_pastebin" style="position: absolute; top: 86px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]abc@gmail.com[/TD]
[/TR]
</tbody>[/TABLE]
<tbody>[TR]
[TD]Code[/TD]
[TD]Address[/TD]
[TD]Fld 1[/TD]
[TD]Fld 2[/TD]
[TD]Fld3[/TD]
[/TR]
[TR]
[TD]R[/TD]
[TD]abc@gmail.com[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]L[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR="class: grid"]
[TD]abc@gmail.com[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]M[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR="class: grid"]
[TD]abc@gmail.com[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]R[/TD]
[TD]xyz@yahoo.com[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]L[/TD]
[TD]xyz@yahoo.com[/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]M[/TD]
[TD]sde@aol.com[/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have sorted on email address and discovered duplicate addresses. My goal is to have one line per email address with fields for Code and other fields merged as below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Address[/TD]
[TD]R[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]Fld1[/TD]
[TD]Fld2[/TD]
[TD]Fld3[/TD]
[/TR]
[TR]
[TD]abc@gmail.com[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]xyz@yahoo.com[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]sde@aol.com[/TD]
[TD][/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
and a macro to automate the process.
****** id="cke_pastebin" style="position: absolute; top: 86px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]abc@gmail.com[/TD]
[/TR]
</tbody>[/TABLE]