Concatenate vlookup results

jdgel817

New Member
Joined
Sep 25, 2014
Messages
7
How do I accomplish this with a formula? I need the vlookup results to be concatenated into a single cell. Thanks.

[TABLE="width: 387"]
<tbody>[TR]
[TD="colspan: 2"]Initial Table[/TD]
[TD][/TD]
[TD="colspan: 2"]Lookup Results[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Class[/TD]
[TD]Name[/TD]
[TD][/TD]
[TD]Class[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]Class1[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD]Class1[/TD]
[TD]Bob, Lily, Alice[/TD]
[/TR]
[TR]
[TD]Class2[/TD]
[TD]Jane[/TD]
[TD][/TD]
[TD]Class2[/TD]
[TD]Jane, David, Sara[/TD]
[/TR]
[TR]
[TD]Class3[/TD]
[TD]John[/TD]
[TD][/TD]
[TD]Class3[/TD]
[TD]John, Lucy[/TD]
[/TR]
[TR]
[TD]Class2[/TD]
[TD]David[/TD]
[TD][/TD]
[TD]Class4[/TD]
[TD]Sally, James[/TD]
[/TR]
[TR]
[TD]Class4[/TD]
[TD]Sally[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Class1[/TD]
[TD]Lily[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Class1[/TD]
[TD]Alice[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Class2[/TD]
[TD]Sara[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Class4[/TD]
[TD]James[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Class3[/TD]
[TD]Lucy[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
You will need Excel2016 for this formula to work with the new function TEXTJOIN.


Book1
ABCDE
1Initial TableLookup Results
2ClassNameClassName
3Class1BobClass1Bob, Lily, Alice
4Class2JaneClass2Jane, David, Sara
5Class3JohnClass3John, Lucy
6Class2DavidClass4Sally, James
7Class4Sally
8Class1Lily
9Class1Alice
10Class2Sara
11Class4James
12Class3Lucy
Sheet57
Cell Formulas
RangeFormula
E3{=TEXTJOIN(", ",,IF($A$3:$A$12=D3,$B$3:$B$12,""))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top