Return column header after xlookup or index match

Agent Carmichael

New Member
Joined
Feb 13, 2010
Messages
6
Not sure what the most direct route for this is. This is a simplified version of a file a coworker maintains. There are hundreds of more names, and I'm trying to find their birthday. I have a list of names kept on a separate sheet, sorted differently. Name will be a unique identifier and an exact match (no duplicates). The yellow highlighted cells are the location where the formula/date should be inserted. I can get the location of the "Birthday" text, but the nested formulas always give me trouble.
1739997542611.png
 
Try:

DANTE AMOR
ABCDEFGHI
1NameColorStateW01/01/199202/01/199203/01/199204/01/1992
2JohnBirthday
3DavidBirthday
4MarkBirthday
5
6
7Name
8David01/01/1992
9Mark04/01/1992
10John03/01/1992
11
Hoja8
Cell Formulas
RangeFormula
B8:B10B8=SUMPRODUCT(($E$2:$H$4="Birthday")*($A$2:$A$4=A8)*($E$1:$H$1))
 
Upvote 0
Please try this

Book3
ABCDEFGHI
1NameFav ColorStateWeight1/1/19921/2/19921/3/19921/4/19921/5/1992
2JohnBirthday
3DavidBirthday
4MarkBirthday
5
6
7NameBirthday
8David1/1/1992
9Mark1/4/1992
10John1/3/1992
Sheet1
Cell Formulas
RangeFormula
B8:B10B8=INDEX($E$1:$I$1,,MATCH("Birthday",INDEX($E$2:$I$4,MATCH(A8,$A$2:$A$4,0),),0))
 
Upvote 0

Forum statistics

Threads
1,226,858
Messages
6,193,383
Members
453,792
Latest member
Vic001

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