vlookup to see if 2 teams have played each other in different columns

LAexcel1

New Member
Joined
Nov 19, 2018
Messages
2
How can I make a formula to find what team has played Los Angeles Rams in week 1 and 2 and other weeks.
I know you can use the vlookup formula in week 1 and use the vlookup choose in week 2 to see what team Los Angeles Rams played.
I want to be able to make a formula that when I place it in any week it will find who the Los Angeles Rams played.
Much appreciated if anyone can help. Because the Los Angeles Rams will be sometimes in column 1 and sometimes in Column 2 depending on if they are at home or away.



team playedteam playedWeek 1
listweek 1week 2TeamScoreTeamScore
Los Angeles Rams
_____
_____
Atlanta Falcons1Philadelphia Eagles1
Kansas City Chiefs
Cincinnati Bengals2Indianapolis Colts2
New Orleans Saints Pittsburgh Steelers3Cleveland Browns3
Los Angeles Chargers Buffalo Bills4Baltimore Ravens4
New England Patriots Jacksonville Jaguars5New York Giants5
Carolina Panthers Houston Texans6New England Patriots6
Houston Texans Tampa Bay Buccaneers7New Orleans Saints7
Washington Redskins San Francisco 49ers8Minnesota Vikings8
Chicago Bears Tennessee Titans9
Miami Dolphins9
Pittsburgh Steelers Kansas City Chiefs10Los Angeles Chargers10
Cincinnati Bengals Seattle Seahawks11Denver Broncos11
Minnesota Vikings Washington Redskins12Arizona Cardinals12
Tennessee Titans Dallas Cowboys13Carolina Panthers13
Miami Dolphins Chicago Bears14Green Bay Packers14
Atlanta Falcons New York Jets15Detroit Lions15
Seattle Seahawks Los Angeles Rams
16Oakland Raiders16
Philadelphia Eagles
Baltimore Ravens Week 2
Dallas Cowboys TeamScoreTeamScore
Green Bay Packers Baltimore Ravens1Cincinnati Bengals1
Indianapolis Colts Carolina Panthers2Atlanta Falcons2
Detroit Lions Indianapolis Colts3Washington Redskins3
Tampa Bay Buccaneers Houston Texans4Tennessee Titans4
Jacksonville Jaguars Philadelphia Eagles5Tampa Bay Buccaneers5
Denver Broncos Kansas City Chiefs6Pittsburgh Steelers6
New York Jets Miami Dolphins7New York Jets7
Buffalo Bills Los Angeles Chargers8Buffalo Bills8
Cleveland Browns Minnesota Vikings9Green Bay Packers9
Arizona Cardinals Cleveland Browns10New Orleans Saints
10
New York Giants Detroit Lions11San Francisco 49ers11
San Francisco 49ers Arizona Cardinals12Los Angeles Rams
12
Oakland Raiders New England Patriots13Jacksonville Jaguars13
Oakland Raiders14Denver Broncos14
New York Giants15Dallas Cowboys15
Seattle Seahawks16Chicago Bears16

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Some thing like that ???

=IFERROR(VLOOKUP($A$3,$E$2:$E$45,1,0),VLOOKUP($A$3,$G$2:$H$45,1,0))
 
Upvote 0
Thank you ali zaib.

I did this formula =IFERROR(VLOOKUP(B3,$F$3:$H$18,3,0),VLOOKUP(B3,CHOOSE({1,2,3},$H$3:$H$18,G3:$G$18,$F$3:$F$18),3,0))
I got it to work. I just needed someone to push me a little.
my question how do I finish the IFERROR if I don't want it to say anything. like
when I type this
=IFERROR(VLOOKUP(B3,$F$3:$H$18,3,0),VLOOKUP(B3,CHOOSE({1,2,3},$H$3:$H$18,G3:$G$18,$F$3:$F$18),3,0)),"")))
I get a error message.
 
Upvote 0

Forum statistics

Threads
1,215,030
Messages
6,122,762
Members
449,095
Latest member
m_smith_solihull

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