multiple matches in the lookup

mayaa_mmm

Board Regular
Joined
Jul 30, 2014
Messages
54
Office Version
  1. 2010
Platform
  1. Windows
I have in the excel below table in the work sheet 1
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]Fruits[/TD]
[TD="class: xl65, width: 64"]Cost[/TD]
[TD="class: xl65, width: 64"]Shipment[/TD]
[/TR]
[TR]
[TD="class: xl65"]Apple[/TD]
[TD="class: xl65, align: right"]10[/TD]
[TD="class: xl65"] Sweden[/TD]
[/TR]
[TR]
[TD="class: xl65"]Orange[/TD]
[TD="class: xl65, align: right"]100[/TD]
[TD="class: xl65"] London[/TD]
[/TR]
[TR]
[TD="class: xl65"]Potato[/TD]
[TD="class: xl65, align: right"]5[/TD]
[TD="class: xl65"] Germany[/TD]
[/TR]
[TR]
[TD="class: xl65"]Pomergrante[/TD]
[TD="class: xl65, align: right"]20[/TD]
[TD="class: xl65"] Germany[/TD]
[/TR]
[TR]
[TD="class: xl65"]Orange[/TD]
[TD="class: xl65, align: right"]100[/TD]
[TD="class: xl65"] Sweden[/TD]
[/TR]
[TR]
[TD="class: xl65"]Apple[/TD]
[TD="class: xl65, align: right"]10 [/TD]
[TD="class: xl65"]London[/TD]
[/TR]
[TR]
[TD="class: xl65"]Apple[/TD]
[TD="class: xl65, align: right"]10[/TD]
[TD="class: xl65, align: center"]Germany[/TD]
[/TR]
</tbody>[/TABLE]

I have want to output like in the another sheet 2 as
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Fruits[/TD]
[TD="width: 64"]Shipment[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Sweden,London,Germany[/TD]
[/TR]
[TR]
[TD]Orange [/TD]
[TD]London,Sweden[/TD]
[/TR]
[TR]
[TD]Potato[/TD]
[TD] Germany[/TD]
[/TR]
[TR]
[TD]Pomergrante[/TD]
[TD] Germany

[/TD]
[/TR]
</tbody>[/TABLE]


How to the lookup using formula to get the shipment output
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,226,729
Messages
6,192,696
Members
453,747
Latest member
tylerhyatt04

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