I have two separate Excel files that have a common ID between them. File one is considered the master and each ID appears one time only. The second file includes the same ID's and also includes a list of staff names. In the cell next to the ID in file one, I want to list all of the names from file two that have a match for the ID. Below is an example of what I am trying to achieve. Is it possible to use a vlookup to return multiple values or can a script be written that would loop through the files to compile the names? Also, the names don't have to appended in the same cell, they can be listed in adjacent cells as long as they are in the same row as the ID.
[TABLE="width: 500"]
<tbody>[TR]
[TD]FILE 1 (ID)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC1000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC1001[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC1002[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FILE 2 (NAME)[/TD]
[TD](ID)[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD]ABC1000[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD]ABC1001[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD]ABC1000[/TD]
[/TR]
[TR]
[TD]Name 3[/TD]
[TD]ABC1000[/TD]
[/TR]
[TR]
[TD]Name 4[/TD]
[TD]ABC1001[/TD]
[/TR]
[TR]
[TD]Name 4[/TD]
[TD]ABC1002[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DESIRED RESULT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FILE 1 (ID)[/TD]
[TD](NAME)[/TD]
[/TR]
[TR]
[TD]ABC1000[/TD]
[TD]Name 1, Name 2, Name 3[/TD]
[/TR]
[TR]
[TD]ABC1001[/TD]
[TD]Name 1, Name 4[/TD]
[/TR]
[TR]
[TD]ABC1002[/TD]
[TD]Name 4[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]FILE 1 (ID)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC1000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC1001[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC1002[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FILE 2 (NAME)[/TD]
[TD](ID)[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD]ABC1000[/TD]
[/TR]
[TR]
[TD]Name 1[/TD]
[TD]ABC1001[/TD]
[/TR]
[TR]
[TD]Name 2[/TD]
[TD]ABC1000[/TD]
[/TR]
[TR]
[TD]Name 3[/TD]
[TD]ABC1000[/TD]
[/TR]
[TR]
[TD]Name 4[/TD]
[TD]ABC1001[/TD]
[/TR]
[TR]
[TD]Name 4[/TD]
[TD]ABC1002[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DESIRED RESULT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FILE 1 (ID)[/TD]
[TD](NAME)[/TD]
[/TR]
[TR]
[TD]ABC1000[/TD]
[TD]Name 1, Name 2, Name 3[/TD]
[/TR]
[TR]
[TD]ABC1001[/TD]
[TD]Name 1, Name 4[/TD]
[/TR]
[TR]
[TD]ABC1002[/TD]
[TD]Name 4[/TD]
[/TR]
</tbody>[/TABLE]