Product Code

  • Thread starter Thread starter esmail
  • Start date Start date
E

esmail

Hi,
I have the product list in two Colum; A1..A5,
101,102,103,104,105 where as in B1.B5
is 'KeyBoard','Monitor','Mouse','Hdd','Printer'
Whenever I use any product code e.g. 103 the product name
should appear in the next column. and if i enter 106 it
should say 'No product' or error.
Please help me to solve.
with thanks..
 
assuming you typed the number in F5, in G5 the formula is

=IF(ISNA(VLOOKUP(F5,$A$1:$B$5,2,0)),"No product",VLOOKUP(F5,$A$1:$B$5,2,0))
 
-----Original Message-----
assuming you typed the number in F5, in G5 the formula is

=IF(ISNA(VLOOKUP(F5,$A$1:$B$5,2,0)),"No product",VLOOKUP (F5,$A$1:$B$5,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