ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   macro help (https://www.excelbanter.com/excel-discussion-misc-queries/60126-macro-help.html)

mantha09

macro help
 
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??

Norman Jones

macro help
 
Hi Mantha,

Look at vLookup in Excel help.

Even better, see debra Dalgleish's tutorial at:

http://www.contextures.com/xlFunctions02.html


---
Regards,
Norman


"mantha09" wrote in message
...
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??




Roger Govier

macro help
 
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


mantha09 wrote:
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??


mantha09

macro help
 
thank you, ill give it a go

"Norman Jones" wrote:

Hi Mantha,

Look at vLookup in Excel help.

Even better, see debra Dalgleish's tutorial at:

http://www.contextures.com/xlFunctions02.html


---
Regards,
Norman


"mantha09" wrote in message
...
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??






All times are GMT +1. The time now is 11:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com