Avatar of Matt Pinkston
Matt Pinkston
 asked on

vlookup assistance

I have a workbook with two tabs (worksheets) team & regs

tab teams has multiple columns and I want to have a column pull email from tab regs when the fname and lastname columns match in each table.

tab teams
A=fname
B=lname
H=pull from email

tab regs
A=lname
B=fname
G=email

so in teams I want column h to be a lookup that pulls column G from regs when the fname & lname matches
Microsoft OfficeMicrosoft ExcelMicrosoft Applications

Avatar of undefined
Last Comment
Ingeborg Hawighorst (Microsoft MVP / EE MVE)

8/22/2022 - Mon
Brian Harrington

According to http://www.mrexcel.com/forum/showthread.php?t=306615, you can use the index function for a multiple criteria function. Structure is thus:

=INDEX(D1:D100,MATCH(1,(A1:A100="x")*(B1:B100="y")*(C1:C100="z"),0))

Open in new window

Brian Harrington

Also, you could use vbscript to help with it, here's a link to a guide on it:

http://excelspreadsheetshelp.blogspot.com/search/label/LOOKUP
Matt Pinkston

ASKER
not vlookup?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Brian Harrington

Vlookup only considers one conditional.  You look up by the left most column of your array.  If you'd like to use vlookup and are okay with adding a column, you could do this.

Add Column A to both sheets, set to =Concantenate(B2," ",C2) in both A Columns

Then do your vlookup off that.
ASKER CERTIFIED SOLUTION
Ingeborg Hawighorst (Microsoft MVP / EE MVE)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.