+ Reply to Thread
Results 1 to 7 of 7

Drop Down Lists: change neighboring cell

  1. #1
    Registered User
    Join Date
    03-13-2007
    Posts
    3

    Question Drop Down Lists: change neighboring cell

    Im trying to implement a drop down list where the list contains a bunch of different products. each product has a different price.

    when i select product A the price is $1, product B is $2, product C is $3 etc.

    the list contains
    A
    B
    C

    i want the cell imediately to the right of the drop down list to change to the correct price when i make my selection in the drop down list. any idea how i would implement this.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello MetalDwarf,

    Where is the price list saved?

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    03-13-2007
    Posts
    3
    not saved anywhere right now. its a new project.
    im totally flexible on how to set it up. Suggestions?


    i was hoping it would be something as simple as column A is product description column B is price.

    when i choose row N in column A the neighboring cell displays the value in column B row N

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello MetalDwarf,

    If you don't want the user to see or change the pricing, I would place the prices on a separate worksheet, protect it, and hide it. You will be able to access it from code, but the user won't be able to change it easily (Excel passwords can be defeated). I have attached a workbook as an example.

    Sincerely,
    Leith Ross
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    While Leith Ross provided a great example of one way to do it, it can also be done without using a Macro. Similarly, I'd set up a separate page with "Inventory" (products and prices). Then on the main entry sheet, I'd use a validation to select products, and a vlookup to lookup the prices.

    I think both methods would do what you want; in the end, it's a matter of preference.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-13-2007
    Posts
    3
    BigBas

    that was EXACTLY what i was looking for
    Thanks a million

  7. #7
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    No problem. I'm glad it worked.

    If you need help expanding it, just let me know.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1