Two way lookup for column title

ATSJ

Board Regular
Joined
Dec 7, 2010
Messages
58
I have a table that looks like the following

ABCD
John
Mary16215532
Alex
Lisa

<tbody>
</tbody>

What I need to be able to do is look for the letter (column title) that corresponds to a score of 55 for Mary.

In other words, search for Mary's scores, find her score of 55 and which letter corresponds to that.

I've tried combinations of index-match and vlookup without any luck so far. Obviously, the most common situation is finding the 55 using the name and column location so I understand that this is a slightly difference use case.

Any help is appreciated.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
How about

Book1
ABCDEFGH
1ABCDMary
2John55C
3Mary16215532
4Alex
5Lisa
End
Cell Formulas
RangeFormula
H2=INDEX(B1:E1,MATCH(G2,INDEX(B2:E5,MATCH(G1,A2:A5,0),0),0))
 
Upvote 0
Assumptions - "Mary" is in cell A3, and her "55" is in cell D3.

The selection of Mary is an input in cell G1, and the selection of 55 is an input in cell G2.

=INDEX(B1:E1,MATCH(G2,OFFSET(A1,MATCH(G1,A2:A5,0),1,1,4),0))
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,806
Members
449,048
Latest member
greyangel23

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