Vlook up question again I think or some look up thing

andy009

New Member
Joined
Mar 12, 2009
Messages
2
I have 2 cloumns of data and I need to find a name in a column and then report the name at the top of that column. A simple Example.
____A__________________B
1. Als' team________Jo's team
2. Fred 66____________ Julie 98
3. George 69__________ Jenny 99
4. Brad 80____________ Eddie 54






George * _____Here I need it to look up in the top section find the name (eg.George) and Repot either Al's Team or Jo's Team which ever the agent belongs to.

Don't worry about the scores I can remove them I just it need to search the name to find the team name.

Thanks for any help

Andreas
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Assuming that A1:B4 contains the table, and D2 contains the name of interest, such as George, try the following...

If each column within the table contains both the name and score...

Code:
Confirmed with CONTROL+SHIFT+ENTER:

=INDEX($A$1:$B$1,SMALL(IF(LEFT($A$2:$B$4,LEN(D2))=D2,COLUMN($A$2:$B$4)-COLUMN($A$2)+1),1))

If each column within the table contains the name only...

Code:
Confirmed with CONTROL+SHIFT+ENTER

=INDEX($A$1:$B$1,SMALL(IF($A$2:$B$4=D2,COLUMN($A$2:$B$4)-COLUMN($A$2)+1),1))

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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