Preacherman771
New Member
- Joined
- Jun 15, 2021
- Messages
- 46
- Office Version
- 365
- Platform
- Windows
I have a table which contains the weekly opponent for the header team. (BU34:BX51). I want to in column BY34:BY51 list all of the common teams.
NFL 2023 Standing.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
BT | BU | BV | BW | BX | BY | |||
32 | BUF | MIA | NE | NYJ | ||||
33 | Com 1-4 | |||||||
34 | Week 1 | NYJ | LAC | PHI | BUF | |||
35 | Week 2 | LV | NE | MIA | DAL | |||
36 | Week 3 | WAS | DEN | NYJ | NE | |||
37 | Week 4 | MIA | BUF | DAL | KC | |||
38 | Week 5 | JAX | NYG | NO | DEN | |||
39 | Week 6 | NYG | CAR | LV | PHI | |||
40 | Week 7 | NE | PHI | BUF | ||||
41 | Week 8 | TB | NE | MIA | NYG | |||
42 | Week 9 | CIN | KC | WAS | LAC | |||
43 | Week 10 | DEN | IND | LV | ||||
44 | Week 11 | NYJ | LV | BUF | ||||
45 | Week 12 | PHI | NYJ | NYG | MIA | |||
46 | Week 13 | WAS | LAC | ATL | ||||
47 | Week 14 | KC | TEN | PIT | HOU | |||
48 | Week 15 | DAL | NYJ | KC | MIA | |||
49 | Week 16 | LAC | DAL | DEN | WAS | |||
50 | Week 17 | NE | BAL | BUF | CLE | |||
51 | Week 18 | MIA | BUF | NYJ | NE | |||
Calc_Div |
Cell Formulas | ||
---|---|---|
Range | Formula | |
BU32 | BU32 | =IF(W32="@",X32&"@",IFERROR(INDEX(X32:X35,SMALL(IF(X32:X35<>"",ROW(X32:X35)-ROW(INDEX(X32:X35,1,1))+1),1)),"")) |
BV32 | BV32 | =IF(W33="@",X33&"@",IFERROR(INDEX(X32:X35,SMALL(IF(X32:X35<>"",ROW(X32:X35)-ROW(INDEX(X32:X35,1,1))+1),2)),"")) |
BW32 | BW32 | =IF(W34="@",X34&"@",IFERROR(INDEX(X32:X35,SMALL(IF(X32:X35<>"",ROW(X32:X35)-ROW(INDEX(X32:X35,1,1))+1),3)),"")) |
BX32 | BX32 | =IF(W35="@",X35&"@",IFERROR(INDEX(X32:X35,SMALL(IF(X32:X35<>"",ROW(X32:X35)-ROW(INDEX(X32:X35,1,1))+1),4)),"")) |
BT34 | BT34 | =Data!CU$6 |
BU34:BX34 | BU34 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT34=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT34=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT34=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT34=SchedData[Wk'#]),0))),""))) |
BT35 | BT35 | =Data!CU$7 |
BU35:BX35 | BU35 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT35=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT35=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT35=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT35=SchedData[Wk'#]),0))),""))) |
BT36 | BT36 | =Data!CU$8 |
BU36:BX36 | BU36 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT36=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT36=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT36=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT36=SchedData[Wk'#]),0))),""))) |
BT37 | BT37 | =Data!CU$9 |
BU37:BX37 | BU37 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT37=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT37=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT37=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT37=SchedData[Wk'#]),0))),""))) |
BT38 | BT38 | =Data!CU$10 |
BU38:BX38 | BU38 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT38=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT38=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT38=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT38=SchedData[Wk'#]),0))),""))) |
BT39 | BT39 | =Data!CU$11 |
BU39:BX39 | BU39 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT39=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT39=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT39=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT39=SchedData[Wk'#]),0))),""))) |
BT40 | BT40 | =Data!CU$12 |
BU40:BX40 | BU40 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT40=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT40=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT40=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT40=SchedData[Wk'#]),0))),""))) |
BT41 | BT41 | =Data!CU$13 |
BU41:BX41 | BU41 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT41=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT41=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT41=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT41=SchedData[Wk'#]),0))),""))) |
BT42 | BT42 | =Data!CU$14 |
BU42:BX42 | BU42 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT42=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT42=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT42=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT42=SchedData[Wk'#]),0))),""))) |
BT43 | BT43 | =Data!CU$15 |
BU43:BX43 | BU43 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT43=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT43=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT43=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT43=SchedData[Wk'#]),0))),""))) |
BT44 | BT44 | =Data!CU$16 |
BU44:BX44 | BU44 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT44=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT44=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT44=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT44=SchedData[Wk'#]),0))),""))) |
BT45 | BT45 | =Data!CU$17 |
BU45:BX45 | BU45 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT45=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT45=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT45=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT45=SchedData[Wk'#]),0))),""))) |
BT46 | BT46 | =Data!CU$18 |
BU46:BX46 | BU46 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT46=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT46=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT46=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT46=SchedData[Wk'#]),0))),""))) |
BT47 | BT47 | =Data!CU$19 |
BU47:BX47 | BU47 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT47=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT47=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT47=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT47=SchedData[Wk'#]),0))),""))) |
BT48 | BT48 | =Data!CU$20 |
BU48:BX48 | BU48 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT48=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT48=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT48=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT48=SchedData[Wk'#]),0))),""))) |
BT49 | BT49 | =Data!CU$21 |
BU49:BX49 | BU49 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT49=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT49=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT49=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT49=SchedData[Wk'#]),0))),""))) |
BT50 | BT50 | =Data!CU$22 |
BU50:BX50 | BU50 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT50=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT50=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT50=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT50=SchedData[Wk'#]),0))),""))) |
BT51 | BT51 | =Data!CU$23 |
BU51:BX51 | BU51 | =IF(BU32="","", IF(RIGHT(BU32,1)<>"@",IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(BU32=SchedData[Away])*($BT51=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(BU32=SchedData[Home])*($BT51=SchedData[Wk'#]),0))),""), IFERROR(IFERROR(INDEX(SchedData[Home],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Away])*($BT51=SchedData[Wk'#]),0)),INDEX(SchedData[Away],MATCH(1,(TEXTBEFORE(BU32,"@")=SchedData[Home])*($BT51=SchedData[Wk'#]),0))),""))) |
Press CTRL+SHIFT+ENTER to enter array formulas. |