Two way lookup for column title

ATSJ

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

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]16[/TD]
[TD]21[/TD]
[TD]55[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD]Alex[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Lisa[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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