2 column lookup or match

G

Gromit

Hi folks,

I have two sheets, each with LastName and FirstName columns. The secon
sheet has a State column.

What I want to do is create some kind of lookup formula in the firs
sheet that returns the State when both the LastName and FirstName matc
on both sheets.

I guess the answer looks something like:

=OFFSET(AND(MATCH(A1, Sheet2!A1), MATCH(B1, Sheet2!B1)), 0, 3)

But I can't quite find the right combination.

Any ideas?

Thanks,

Graha
 
J

jeff

Hi,

Try this
=IF(AND(MATCH(A10, Sheet2!A10), MATCH(B10, Sheet2!
B10)),OFFSET(Sheet2!A10, 0, 2),"")

hth
jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top