Look up value in a table, Return corresponding header

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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