Lookup header based on name

luna023

New Member
Joined
Dec 29, 2018
Messages
2
Hello, Please help me find a formula for this problem I couldn't think straight.

I need to get the header title/the levels using the names. I hope you guys could help me thanks.

Please see image below.
help_zps00usnfao.jpg
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
This should work....modified from Aladin Akyurek
Code:
=INDEX($A$1:$E$1,SUMPRODUCT(MAX(($A$2:$E$5=A14)*(COLUMN($A$2:$E$5))))-COLUMN($A$1)+1)
 
Upvote 0
Or,

In B15, copied down :

=INDEX($A$1:$E$1,SUMPRODUCT(($A$2:$E$9=A15)*COLUMN($A$1:$E$1)))

Regards
Bosco
 
Upvote 0

Forum statistics

Threads
1,223,702
Messages
6,173,967
Members
452,539
Latest member
delvey

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