Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with drop down menu

i am trying to create a worksheet where i am picking items out of
inventory

cell "A-1" has drop down menu which i select item (no problem, i can do
that)

Cell "B-1" is the corresponding price for the item selected in cell "A-1"

example: the drop down allows me to select widgets, modifed widgets,
budget widgets, or premium widgets. (up to about 30 choices)......the
price of widgets is 10.00, the price of modified widgets is 20.00 the
price of budget widgets is 5.00 while the price of premium widgets is
30.00 and so on.......

how do i get cell "B-1" to display the correct price according to the
selection from the drop down in cell "A-1"

thanks in advance for any help you may be able to provide

WC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Help with drop down menu

Hi

unless you need a code (vba) solution, you can achieve what you want using
the VLOOKUP function in the worksheet itself.

if you have a table somewhere (say Sheet2) of widget types in column A and
costs in column B then the VLOOKUP formula would be

=VLOOKUP(A1,Sheet2!$A$1:$B$35,2,0)
this says lookup the value of A1 in sheet 2 column A and return the
associated value from column B where there is an exact match.

you may want to embed this in an IF function to deal with the situation
where the selection in A1 is not found or is blank
=IF(ISNA(VLOOKUP(A1,Sheet2!$A$1:$B$35,2,0)),"",VLO OKUP(A1,Sheet2!$A$1:$B$35,2,0))

Cheers
JulieD


"wilecoyote" wrote in message
. 50...
i am trying to create a worksheet where i am picking items out of
inventory

cell "A-1" has drop down menu which i select item (no problem, i can do
that)

Cell "B-1" is the corresponding price for the item selected in cell "A-1"

example: the drop down allows me to select widgets, modifed widgets,
budget widgets, or premium widgets. (up to about 30 choices)......the
price of widgets is 10.00, the price of modified widgets is 20.00 the
price of budget widgets is 5.00 while the price of premium widgets is
30.00 and so on.......

how do i get cell "B-1" to display the correct price according to the
selection from the drop down in cell "A-1"

thanks in advance for any help you may be able to provide

WC



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help with drop down menu

Look in Excel Help at the Vlookup worksheet function.

You will need to create a table with Item names on the left and price next
to it in the next column.

--
Regards,
Tom Ogilvy

"wilecoyote" wrote in message
. 50...
i am trying to create a worksheet where i am picking items out of
inventory

cell "A-1" has drop down menu which i select item (no problem, i can do
that)

Cell "B-1" is the corresponding price for the item selected in cell "A-1"

example: the drop down allows me to select widgets, modifed widgets,
budget widgets, or premium widgets. (up to about 30 choices)......the
price of widgets is 10.00, the price of modified widgets is 20.00 the
price of budget widgets is 5.00 while the price of premium widgets is
30.00 and so on.......

how do i get cell "B-1" to display the correct price according to the
selection from the drop down in cell "A-1"

thanks in advance for any help you may be able to provide

WC



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
Drop Down choice needs to lead to another drop down menu Hudson Excel Discussion (Misc queries) 1 January 9th 09 12:36 AM
Drop dwn menu. Formula to count selection frm menu in anoth cell? ggoldber Excel Worksheet Functions 1 June 4th 08 02:21 PM
filter dropdown menu so 2nd drop menu is customized menugal Excel Worksheet Functions 1 September 4th 07 05:25 PM
drop down menu socaprice Setting up and Configuration of Excel 0 January 9th 06 02:20 AM
Cross-referenced drop-down menu (nested drop-downs?) creativeops Excel Worksheet Functions 4 November 22nd 05 05:41 PM


All times are GMT +1. The time now is 03:45 PM.

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

About Us

"It's about Microsoft Excel"