Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 vlookups

Status
Not open for further replies.

nqueen

MIS
Sep 21, 2005
46
0
0
CA
Hi,

I have two sheets. I want to do 2 vlookups or anything similar from 1 sheet to the other.

ex:

if sheet1.colA and sheet1.colE = sheet2.colA and sheet2.colD
do something (both need to be true in order to do something)
else
don t do anything

I know I could add a column in both sheets and do a concatenation and then make a vlookup on that column but I was wondering if there was a way to do it in 2 different cells without having to add a column?
 
Hi nqueen,

You could try a combination of the MATCH and AND functions. If you wanted to look up the data on sheet 1 to see if it was on sheet 2, =IF(AND(MATCH(A1,Sheet2!A:A,1),MATCH(E1,Sheet2!D:D,1)),"YES","NO"), then copy this formula into all the rows on Sheet 1.

Hope this if of use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top