How do I Vlookup with multiple results in the same cell

Bassie

Board Regular
Joined
Jan 13, 2022
Messages
66
Office Version
  1. 2019
Platform
  1. Windows
Hey everyone,

I have a sheet with 500 values that I need to vlookup against 50k products. Normally that woudnt be a problem with vlookup but in this dataset one value can have multiple results and vlookup only takes the first one.

So my question is is there an easy way to get multiple vlookup results in the same cell without any duplicates if that is also possible. This can either be a complex formula or a VBA code.

Thanks a ton in advance
Bart
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Can you post some sample data along with expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Thanks!

I made a small sample of it down below

Book2
ABCDEF
1Sheet 1formula goes down here Sheet 2
2Value XVlookup column X with YValue XValue Y
310Green, Yellow10Green
411Purple10Green
512Blue10Green
613Lightblue10Yellow
714Pink, Red11Purple
812Blue
913Lightblue
1014Pink
1114Red
Sheet1
 
Upvote 0
Thanks for that.
How about
+Fluff 1.xlsm
AB
1Value XValue Y
210Green
310Green
410Green
510Yellow
611Purple
712Blue
813Lightblue
914Pink
1014Red
Sheet2


+Fluff 1.xlsm
AB
1Value XVlookup column X with Y
210Green, Yellow
311Purple
412Blue
513Lightblue
614Pink, Red
Sheet1
Cell Formulas
RangeFormula
B2:B6B2=TEXTJOIN(", ",,UNIQUE(FILTER(Sheet2!$B$2:$B$10,Sheet2!$A$2:$A$10=A2)))
 
Upvote 0
Solution
I like Fluff's formula,
here is what I personally would use

1648303921110.png
1648303939995.png
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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