Look up value in a table, Return corresponding header

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
It should not be that difficult to create a scaled-down sample and post it here along with the desired results.

Sheet1

[Table="width:, class:grid"][tr][td]Row\Col[/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][td]
D​
[/td][/tr][tr][td]
1​
[/td][td]Business Services[/td][td]Financial Services[/td][td]Information Technology[/td][td]International Business[/td][/tr]
[tr][td]
2​
[/td][td]Eventbrite.com[/td][td]Paypal.com[/td][td]Zdnet.com[/td][td]Alibaba.com[/td][/tr]
[tr][td]
3​
[/td][td]Webex.com[/td][td]Https://www.chase.com/[/td][td]Dice.com[/td][td]Bbs.fobshanghai.com[/td][/tr]
[tr][td]
4​
[/td][td]Freelancer.com[/td][td]Bankofamerica.com[/td][td]Gartner.com[/td][td]Weforum.org[/td][/tr]
[tr][td]
5​
[/td][td]Gettyimages.com[/td][td]Wellsfargo.com[/td][td]Fujitsu.com[/td][td]Kompass.com[/td][/tr]
[tr][td]
6​
[/td][td]Accenture.com[/td][td]Capitalone.com[/td][td]Cognizant.com[/td][td]Tradeindia.com[/td][/tr]
[tr][td]
7​
[/td][td]Cvent.com[/td][td]Americanexpress.com[/td][td]Capgemini.com[/td][td]Iso.org[/td][/tr]
[tr][td]
8​
[/td][td]Copart.com[/td][td]Hdfcbank.com[/td][td]It.toolbox.com[/td][td]Exportersindia.com[/td][/tr]
[/table]


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,225,757
Messages
6,186,850
Members
453,379
Latest member
gabriellegonzalez

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