How can I look up two seperate values/cells and return the value .

B

Barbara

I would like to do two VLOOKUP type functions and have it return the value in
the third column. For instance, if I have an array something like this:

Purple Grape 5
Green Grape 9
Orange Lemon 2

In the spreadsheet I have:

A B C
Purple Grape ?

I would like to say if A and B match then give me C.

Thanks
 
P

Peo Sjoblom

One way


=INDEX(C2:C2000,MATCH(1,(A2:A2000="Purple")*(B2:B2000="Grape"),0))


entered with ctrl + shift & enter

you should replace the criteria with cells (replace Grape and Purple woith 2
cells where you type the criteria, that way you don't have to edit the
formula when you want to change lookup values)


Regards,

Peo Sjoblom
 

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