nested if or vlookup help

Emac

New Member
Joined
Oct 14, 2003
Messages
12
I am not too swift with database functions so I am trying to do this problem with nested if, match or vlookups.

For example, I am trying to create a NHL schedule for fantasy teams.

on the vertical column (A) I have teams...horizontally across row 1 I have dates and for my table I have teams and dates and opponents.

My goal is to either start with the date and then look up the teams that play on that date....run a match with the players team and then determine the opponent if any.

I just need a little help with nested statements...I will continue to use the search function here, but if anyone can give me a leg up, I would appreciate it.

Thanks!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Andrew Fergus

MrExcel MVP
Joined
Sep 9, 2004
Messages
5,450
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Hi

Is this what you want?
NHL.xls
ABCDEFG
1Draw1/01/20062/02/20063/03/20064/04/20065/05/2006
2Team1ByeTeam5Team4Team3Team2
3Team2Team5Team3ByeTeam4Team1
4Team3Team4Team2Team5Team1Bye
5Team4Team3ByeTeam1Team2Team5
6Team5Team2Team1Team3ByeTeam4
7
8
9OpponentsWeek
10PlayerTeam1/01/20062/02/20063/03/20064/04/20065/05/2006
11AndyTeam3Team4Team2Team5Team1Bye
12BiffTeam5Team2Team1Team3ByeTeam4
13JoTeam1ByeTeam5Team4Team3Team2
Sheet1


Andrew
 

Emac

New Member
Joined
Oct 14, 2003
Messages
12
Dang, looks reasonable...I will try that out...thank you Andrew!!!!
 

Andrew Fergus

MrExcel MVP
Joined
Sep 9, 2004
Messages
5,450
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
You're welcome. FYI the formula in cell C11 is designed to be copied and pasted either down or across.
Cheers, Andrew
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
You're welcome. FYI the formula in cell C11 is designed to be copied and pasted either down or across.
Cheers, Andrew

Why

INDEX(MATCH(C$10,$B$1:$F$1),1)

in

=VLOOKUP($B11,$A$2:$F$6,1+INDEX(MATCH(C$10,$B$1:$F$1),1)) ?
 

Andrew Fergus

MrExcel MVP
Joined
Sep 9, 2004
Messages
5,450
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Hi Aladin
My bad. That should be :
=VLOOKUP($B11,$A$2:$F$6,1+MATCH(C$10,$B$1:$F$1))
Andrew :oops:
 

Forum statistics

Threads
1,171,686
Messages
5,876,893
Members
433,217
Latest member
Muhammad Tanzeel Ur Rehma

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
Top