getting data from a table

  • Thread starter Thread starter david
  • Start date Start date
D

david

if i have the following table:

column 1 column 2

row 1 F 2
row 2 G 6
row 3 L 8

i want to write an if/then statement in a cell (call it
cell Z, not a cell as shown above) that will look at a
certain cell (also a different cell, call it Y) and if it
finds an F in cell Y, will look at the above table and
put a 2 (the corresponding number to the letter F as
indicated above) in cell Z, if it sees a G, put a 6 in
cell Z, etc.

does anyone know how to do this or know the name of the
function that can do this?

thank you in advance.

david
 
Hi David
you may use VLOOKUP in your cell Z1
=VLOOKUP(Y1,A1:B3,2,0)
 

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

Back
Top