Vlookup in multiple columns with combined result

adrienne0914

Board Regular
Joined
Mar 22, 2018
Messages
73
Office Version
  1. 365
Platform
  1. Windows
This is a sample of a worksheet that has hundreds of countries and thousands of charges listed. Rather than having to scroll across and see each country that has charges, I need a formula that returns only the countries that have charges:

[TABLE="width: 600"]
<tbody>[TR]
[TD]Charge[/TD]
[TD]Countries[/TD]
[TD]Argentina[/TD]
[TD]China[/TD]
[TD]France[/TD]
[TD]USA[/TD]
[TD]Totals[/TD]
[/TR]
[TR]
[TD]Forklift[/TD]
[TD]Argentina, France, USA[/TD]
[TD="align: right"]323[/TD]
[TD="align: right"]-[/TD]
[TD="align: right"]210[/TD]
[TD="align: right"]280[/TD]
[TD="align: right"]813[/TD]
[/TR]
[TR]
[TD]Imo Handling[/TD]
[TD]Argentina, France, USA[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]-[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]75[/TD]
[/TR]
[TR]
[TD]Import Fee[/TD]
[TD]China, USA[/TD]
[TD="align: right"]-[/TD]
[TD="align: right"]120[/TD]
[TD="align: right"]-[/TD]
[TD="align: right"]190[/TD]
[TD="align: right"]310[/TD]
[/TR]
[TR]
[TD]Logistics Fee[/TD]
[TD]Argentina, France[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]-[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]-[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Seal Fee[/TD]
[TD]China, USA[/TD]
[TD="align: right"]-[/TD]
[TD="align: right"]130[/TD]
[TD="align: right"]-[/TD]
[TD="align: right"]240[/TD]
[TD="align: right"]370[/TD]
[/TR]
[TR]
[TD]TOTALS[/TD]
[TD][/TD]
[TD="align: right"]368[/TD]
[TD="align: right"]250[/TD]
[TD="align: right"]255[/TD]
[TD="align: right"]735[/TD]
[TD="align: right"]1608[/TD]
[/TR]
</tbody>[/TABLE]

The "Countries" column has the desired result. Any help would be appreciated. :rolleyes:
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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