vlookup

S

sako 338

I am using vlookup to populate a cell with a stock code depending on what the
stock name is in the adjacent cell. it works fine when i type the stock name
in the cell, but when i use a formula to put the stock name in the cell
vlookup returns #N/A

any help appreciated
 
T

Teethless mama

Assuming stock name A2:A100, and stock code B2:B100

=VLOOKUP("mama",A2:B100,2,0)

Adjust to suit
 
M

msmischief

Try reformatting your source cells (e.g. text as text or number as number).
Often if the vlookup is trying to read a number that is formatted as text it
will return the result #N/A
 
Top