Consolidating columns plus lookup and return multiple values?

retboell

New Member
Joined
Dec 17, 2018
Messages
3
Hi all,

I'm looking to find a solution for joining (sorting and removing duplicates) multiple columns in one cell and then lookup all values in a separate table and return potential values in another cell. It would look something like this:

[TABLE="class: grid, width: 646"]
<colgroup><col span="4"><col><col></colgroup><tbody>[TR]
[TD]Column1[/TD]
[TD]Column2[/TD]
[TD]Column3[/TD]
[TD]Column4[/TD]
[TD]Consolidated[/TD]
[TD]Lookup values[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]Apple[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Banana,Apple[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]Apple,Banana[/TD]
[TD]A,C[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]Orange[/TD]
[TD]Orange[/TD]
[TD]Orange[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD] [/TD]
[TD]Orange[/TD]
[TD] [/TD]
[TD]Banana,Orange[/TD]
[TD]B,C[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]Banana[/TD]
[TD]Apple,Banana[/TD]
[TD]A,C[/TD]
[/TR]
</tbody>[/TABLE]

Note that Columns can contain multiple values.

The lookup table in this example would be:
[TABLE="class: grid, width: 206"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]Fruit[/TD]
[TD]Letter[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]C[/TD]
[/TR]
</tbody>[/TABLE]

I have found partial solutions out there, but often combining these slows down my spreadsheet.

Thanks!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

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