SB lightning

New Member
Joined
Nov 1, 2017
Messages
4
Hello

I have a list of teams playing each other with away teams in A1:A13 and home teams in B1:B13. I then have a list of players (column C) with the corresponding teams with their team listed in column D. How can I have excel automatically populate the opposing team name by referencing back to the original schedule into column E?

For example,
A
B
C
D
E
TEAM A
TEAM B
Williams
TEAM D
TEAM C
TEAM D
Brandt
TEAM C
TEAM E
TEAM F
Jayson
TEAM A
Powers
TEAM F
Hoyt
TEAM B

<tbody>
</tbody>
What formula do I have to put in column E for excel to read TEAM B in column D and automatically put TEAM A into E? I don't know why this is so hard for me to explain. Let me know if you need better clarification. Thanks!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try this and copy down:

Code:
[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=IFERROR(INDEX($A$2:$D$10,MATCH(D2,$B$2:$B$10,0),1),"")[/TD]
[/TR]
</tbody>[/TABLE]

Note that there's no match for second and third row. Is that ok?
 
Last edited:
Upvote 0
That can be taken care of with this one that looks up the other way around when the first one is no match:

Code:
[TABLE="width: 64"]
<tbody>[TR]
  [TD="width: 64"]=IFERROR(IFERROR(INDEX($A$2:$D$10,MATCH(D2,$B$2:$B$10,0),1),INDEX($A$2:$D$10,MATCH(D2,$A$2:$A$10,0),2)),"")[/TD]
[/TR]
</tbody>[/TABLE]

Godspeed!
 
Upvote 0
That can be taken care of with this one that looks up the other way around when the first one is no match:

Code:
[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=IFERROR(IFERROR(INDEX($A$2:$D$10,MATCH(D2,$B$2:$B$10,0),1),INDEX($A$2:$D$10,MATCH(D2,$A$2:$A$10,0),2)),"")[/TD]
[/TR]
</tbody>[/TABLE]

Godspeed!


Awesome this worked perfectly! Thank you!
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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