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.

Initial TableLookup Results
ClassNameClassName
Class1BobClass1Bob, Lily, Alice
Class2JaneClass2Jane, David, Sara
Class3JohnClass3John, Lucy
Class2DavidClass4Sally, James
Class4Sally
Class1Lily
Class1Alice
Class2Sara
Class4James
Class3Lucy

<tbody>
</tbody>
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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