Find Value in Colomn, return all corresponding values above 0 and corresponding row header

JackoExcel

New Member
Joined
Feb 3, 2015
Messages
1
For example, pls see the table at the bottom of this post.

I would like to be able to input the start country into cell A1 and have excel return all values in the column above 0% and the corresponding headers.

I've tried with index but can only get the percentages, and not the corresponding headers.. any help would be appreciated! VBA or Otherwise.

so If I input Netherland, I would see:


Start
Finish
Percent
Netherland
ALGERIA
20.00%
ANGOLA
20.00%
BAHAMAS
40.00%
BRAZIL
20.00%

<tbody>
</tbody>



And If I input Egpyt I would see:

Start
Finish
Percent
Egypt
Bahamas
100.00%

<tbody>
</tbody>

Finish
ALGERIA
ANGOLA
BAHAMAS
BRAZIL
Start
CHINA
0.00%
100.00%
0.00%
0.00%
EGYPT
0.00%
0.00%
100.00%
0.00%
Greece
0.00%
0.00%
51.00%
49.00%
INDIA
0.00%
50.00%
0.00%
50.00%
Netherland
20.00%
20.00%
40.00%
20.00%

<tbody>
</tbody>
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,215,390
Messages
6,124,670
Members
449,178
Latest member
Emilou

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