LOOKUP & COMBINE

ekhawaja

Board Regular
Joined
Dec 16, 2018
Messages
68
Office Version
  1. 365
So I am looking for a formula for column"result" that looks up the value from LOOKUP in DATA1, and if the value is repeated in DATA1, the result should show both values of DATA2 "concatenated" (separated by comma ",".).....see table below:

I have data in the range of 1000s that I will be running this against. If no value is found, result should show blank. Thanks in advance!

DATA1DATA2LOOKUPRESULT
54-PX-142JAY51-PX-370AFZ
71-PX-614BALI41-PX-156
71-PX-132BRIA54-PX-142JAY,JAY,KAY
42-SV-280MIA30-PX-140
54-PX-142JAY42-SV-280MIA
71-PX-132BRIO
51-PX-370AFZ
54-PX-142KAY
 
IT WORKED! There was one #N/A in columns C which failed the formula....wow such a minor thing that troubled the formula....thank you so much @Peter_SSs
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,226,453
Messages
6,191,134
Members
453,642
Latest member
jefals

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