Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Price look-up

Is it possible to automatically enter a numeric value (eg
a price) in a column by entering a code in an adjacent
column, referencing a list, in the same way as invoicing
software does?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Price look-up

Check out VLOOKUP in help.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Grenville" wrote in message
...
Is it possible to automatically enter a numeric value (eg
a price) in a column by entering a code in an adjacent
column, referencing a list, in the same way as invoicing
software does?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Price look-up

Hi

You Could use the VLOOKUP Function

Something Like this

=VLOOKUP(A1,'Orders'!$A$2:$C$10,2,FALSE)

where A1 is the value you are looking up
'Orders'!$A$2:$C$10 is the table you are refrencing
2 is the number of columns along the data is that you Want to lookup
FALSE is so the Exact Value

HTH

Davi

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Price look-up

Thanks Kevin,
Excuse my ignorance but where do I put the code in
relation to cells A1 & B1? Does all the text
(from "Private..." to "$4.00" go into one cell?
Gren

-----Original Message-----
The following code placed in Worksheet will change the

value of cell B1 to $4.00 when cell A1 = A.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Range("$A$1") = "A" Then Range("$B$1") = "$4.00"
End Sub

Kevin
.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Price look-up

David

That worked, many thanks

Gren

-----Original Message-----
Hi

You Could use the VLOOKUP Function

Something Like this

=VLOOKUP(A1,'Orders'!$A$2:$C$10,2,FALSE)

where A1 is the value you are looking up
'Orders'!$A$2:$C$10 is the table you are refrencing
2 is the number of columns along the data is that you

Want to lookup
FALSE is so the Exact Value

HTH

David


---
Message posted from http://www.ExcelForum.com/

.

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
Max Price and Min Price paid for an item - Rephrsed F. GOMEZ Excel Worksheet Functions 4 May 29th 09 04:05 PM
Help: Need Excel formula to return correct price from price history table Ian_W-at-GMail Excel Discussion (Misc queries) 5 March 21st 07 06:45 PM
Price List overall price increase Sean Lambertz Excel Discussion (Misc queries) 4 May 22nd 06 01:39 PM
calculate/convert volume price to monthly average price Bultgren Excel Worksheet Functions 2 February 14th 06 09:36 AM
create a formula for price * discount* tax =final price anton Excel Discussion (Misc queries) 6 October 12th 05 07:51 PM


All times are GMT +1. The time now is 08:12 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"