two sets of variables to find result

A

Annette

I can't seem to find the right formula for this formula.

A2:A100 = product code
B2:B100 = price (level 3)
C2:C100 = price (level 2)
D2:D100 = price (level 1)

If I enter a product code in cell E1 and enter "Level 3" in cell F1, I want
the formula in cell G1 to tell me what the price of that product is in the
column B for that level.

I hope this makes sense and someone can help me as I know I have used this
before.

Thanks!

Annette
 
E

Elkar

You could try something like:

=VLOOKUP(E1,A2:D100,LOOKUP(F1,{"Level 1","Level 2","Level 3"},{4,3,2}),FALSE)

HTH
Elkar
 

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