#1   Report Post  
Posted to microsoft.public.excel.misc
mantha09
 
Posts: n/a
Default 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??
  #2   Report Post  
Posted to microsoft.public.excel.misc
Norman Jones
 
Posts: n/a
Default 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??



  #3   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default 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??

  #4   Report Post  
Posted to microsoft.public.excel.misc
mantha09
 
Posts: n/a
Default 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??




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing a simple macro Connie Martin Excel Worksheet Functions 5 November 29th 05 09:19 PM
Can T Get Macro To Run! Nipper New Users to Excel 2 November 4th 05 04:48 AM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM


All times are GMT +1. The time now is 02:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"