I have been trying to figure this one out on my own and i can't seem to get it. I have a spreadsheet with names and i need to lookup email address for them and some have more than 1. I know there is a way but i just can't figure it out. Below is an example of my 2 worksheets and the end result i am looking for.
WORKSHEET A
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]S123456[/TD]
[TD]Smith, John[/TD]
[/TR]
[TR]
[TD]D654321[/TD]
[TD]Doe, Jane[/TD]
[/TR]
[TR]
[TD]H234567[/TD]
[TD]Hall, Sam[/TD]
[/TR]
[TR]
[TD]G345678[/TD]
[TD]Good, Bill[/TD]
[/TR]
[TR]
[TD]A456789[/TD]
[TD]Apple, Jill[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
WORKSHEET B
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]S123456[/TD]
[TD]TEST1@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]S123456[/TD]
[TD]TEST2@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]D654321[/TD]
[TD]TEST3@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]D654321[/TD]
[TD]TEST4@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]H234567[/TD]
[TD]TEST5@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]G345678[/TD]
[TD]TEST6@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]G345678[/TD]
[TD]TEST7@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]A456789[/TD]
[TD]TEST8@GMAIL.COM[/TD]
[/TR]
</tbody>[/TABLE]
END RESULT I WOULD LIKE
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]S123456[/TD]
[TD]TEST1@GMAIL.COM; TEST2@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]D654321[/TD]
[TD]TEST3@GMAIL.COM; TEST4@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]H234567[/TD]
[TD]TEST5@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]G345678[/TD]
[TD]TEST6@GMAIL.COM; TEST7@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]A456789[/TD]
[TD]TEST8@GMAIL.COM[/TD]
[/TR]
</tbody>[/TABLE]
WORKSHEET A
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]S123456[/TD]
[TD]Smith, John[/TD]
[/TR]
[TR]
[TD]D654321[/TD]
[TD]Doe, Jane[/TD]
[/TR]
[TR]
[TD]H234567[/TD]
[TD]Hall, Sam[/TD]
[/TR]
[TR]
[TD]G345678[/TD]
[TD]Good, Bill[/TD]
[/TR]
[TR]
[TD]A456789[/TD]
[TD]Apple, Jill[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
WORKSHEET B
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]S123456[/TD]
[TD]TEST1@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]S123456[/TD]
[TD]TEST2@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]D654321[/TD]
[TD]TEST3@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]D654321[/TD]
[TD]TEST4@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]H234567[/TD]
[TD]TEST5@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]G345678[/TD]
[TD]TEST6@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]G345678[/TD]
[TD]TEST7@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]A456789[/TD]
[TD]TEST8@GMAIL.COM[/TD]
[/TR]
</tbody>[/TABLE]
END RESULT I WOULD LIKE
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]S123456[/TD]
[TD]TEST1@GMAIL.COM; TEST2@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]D654321[/TD]
[TD]TEST3@GMAIL.COM; TEST4@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]H234567[/TD]
[TD]TEST5@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]G345678[/TD]
[TD]TEST6@GMAIL.COM; TEST7@GMAIL.COM[/TD]
[/TR]
[TR]
[TD]A456789[/TD]
[TD]TEST8@GMAIL.COM[/TD]
[/TR]
</tbody>[/TABLE]