How can I combine the tags at the end of my ID #'s if I have duplicate values? Specifically, I have a dynamic list of ID numbers that are regularly put into a spreadsheet and depending on what the patient needs, a tag is put on to the end of the #. For example: Patient 14454 may need test "B" ran. Therefore the ID # would become 14454_B. Sometimes the same patient can be ran more than once with different tags, such as 14454_A, 14454_B, and 14454_APS. How could I have Excel, whether through vba or a formula, to put these tags together like this: 14454_A,B,APS ? I appreciate any help. Thank you.
Here is a sample with a before (table on top) and after (table on bottom)[TABLE="width: 500"]
<tbody>[TR]
[TD]Id #[/TD]
[TD]Method[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4321[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]7412[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]9632[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1478[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Dbr[/TD]
[/TR]
[TR]
[TD]2145[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1478[/TD]
[TD]Dbr[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]id#_method[/TD]
[/TR]
[TR]
[TD]1234_A,B,Dbr[/TD]
[/TR]
[TR]
[TD]4321_A[/TD]
[/TR]
[TR]
[TD]7412_B[/TD]
[/TR]
[TR]
[TD]9632_D[/TD]
[/TR]
[TR]
[TD]1478_G,Dbr[/TD]
[/TR]
[TR]
[TD]2145_G[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Here is a sample with a before (table on top) and after (table on bottom)[TABLE="width: 500"]
<tbody>[TR]
[TD]Id #[/TD]
[TD]Method[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4321[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]7412[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]9632[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1478[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Dbr[/TD]
[/TR]
[TR]
[TD]2145[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1478[/TD]
[TD]Dbr[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]id#_method[/TD]
[/TR]
[TR]
[TD]1234_A,B,Dbr[/TD]
[/TR]
[TR]
[TD]4321_A[/TD]
[/TR]
[TR]
[TD]7412_B[/TD]
[/TR]
[TR]
[TD]9632_D[/TD]
[/TR]
[TR]
[TD]1478_G,Dbr[/TD]
[/TR]
[TR]
[TD]2145_G[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]