Look up value in a table, Return corresponding header

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
It should not be that difficult to create a scaled-down sample and post it here along with the desired results.

Sheet1

Row\Col
A​
B​
C​
D​
1​
Business ServicesFinancial ServicesInformation TechnologyInternational Business
2​
Eventbrite.comPaypal.comZdnet.comAlibaba.com
3​
Webex.comHttps://www.chase.com/Dice.comBbs.fobshanghai.com
4​
Freelancer.comBankofamerica.comGartner.comWeforum.org
5​
Gettyimages.comWellsfargo.comFujitsu.comKompass.com
6​
Accenture.comCapitalone.comCognizant.comTradeindia.com
7​
Cvent.comAmericanexpress.comCapgemini.comIso.org
8​
Copart.comHdfcbank.comIt.toolbox.comExportersindia.com

Results

A1 houses a value of interes.

In B1 control+shift+enter, not just enter:

=INDEX(Sheet1!$A$1:$D$1,MIN(IF(Sheet1!$A$2:$D$11=A1,COLUMN(Sheet1!$A$1:$D$1)-COLUMN(Sheet1!$A$1)+1)))

Adjust to suit.
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,660
Members
449,114
Latest member
aides

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