Schedule

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,
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[/TR]
[TR]
[TD]TEAM A
[/TD]
[TD]TEAM B
[/TD]
[TD]Williams
[/TD]
[TD]TEAM D
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]TEAM C
[/TD]
[TD]TEAM D
[/TD]
[TD]Brandt
[/TD]
[TD]TEAM C
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]TEAM E
[/TD]
[TD]TEAM F
[/TD]
[TD]Jayson
[/TD]
[TD]TEAM A
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Powers
[/TD]
[TD]TEAM F
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Hoyt
[/TD]
[TD]TEAM B
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,223,711
Messages
6,174,029
Members
452,542
Latest member
Bricklin

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