Find a second value in a table with VLOOKUP
Does that mean the team code appears twice?
A1:A20 = team codes
B1:B20 = team members
D1 = team code to lookup
First team member:
=VLOOKUP(D1,A1:B20,2,0)
Second team member:
=LOOKUP(2,1/(A1:A20=D1),B1:B20)
Biff
"vsoler" wrote in message
ups.com...
My table (range) contains, among other information, the code for a
team and the name of the person. Each team is made of 2 people.
I need to find the second person belonging to a team, which will not
be necessarily just below the first person.
Is there a way to find this second person. I do not mind using VLOOKUP
or any other function.
Thank you
|