How do I insert a reference to lookup and insert a name

J

Jan K

How do I insert a reference code in one column which will then look up a
reference table and then insert the name in the next column. eg if I type the
letter b in column 1 then the word 'bank' will appear in column 2. If I type
the letter i in column 1 then the word 'insurance' will appear in column 2
etc etc
 
B

Bernard Liengme

Try this.
In G1:G5 type b, i, s, r
In G1 type bank, insurance, stockbroker, retailer
In A1 type b
In B1 enter this formula =VLOOKUP(A1,G1:G5,2,FALSE)
It should return <bank>
The other letters in A1
Read Help for VLOOKUP and HLOOKUP
best wishes
 
K

Kassie

Hi Bernard, except that bank, insurance, stockbroker, retailer should be in
H1:H5?
and the lookup formula should therefore check G1:H5
=VLOOKUP(A1,G1:H5,2,FALSE)
 

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