macro help

G

Guest

please help
iwant to make a macro that consists of-
in Cell a1 my stock number
1541
in cell b1 my part name
crisps

when i enter my stock number i want my part name to appear.
is this possible??
 
R

Roger Govier

Hi

On Sheet2, set up a table of Stock numbers and Names starting in A2
A B
Stock No. Name
1541 Crisps
1843 Coca Cola etc.

Then on Sheet1 in cell B1
=VLOOKUP(A1,Sheet2!$A$2:$B$100,2,0)

Change the value of 100 in the above formula to include the last row of data
you have entered in your table on Sheet2.


Regards

Roger Govier
 

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

Similar Threads

Excel Formula to add stock 7
Help to create a macro 2
Macro Help 3
How to copy workbook and formulas to read to the present month 2
Lookup formula 6
Time Stamp 2
Number to Word 2
Macro - Code Missing 4

Top