+ Reply to Thread
Results 1 to 7 of 7

Drop Down Lists - Depending on other cell values

  1. #1
    Registered User
    Join Date
    10-23-2008
    Location
    North Carolina
    Posts
    8

    Drop Down Lists - Depending on other cell values

    Hey guys, new to the forum and looking for some help!

    I have a workbook with several drop down boxes and formulas already set up and working. I want to improve it though. My question is.... is there a formula that will make the drop down list change based on a cell value....

    For example: If B6 equals vegetables then C6 equals list (potato, carrot, pea, etc.) If B6 equals fruit then C6 equals list (apple, banana, grape)

    Would love some advice and help!! thanks!
    Last edited by VBA Noob; 10-23-2008 at 03:16 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Try this link

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

    Is that what you want?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-23-2008
    Location
    North Carolina
    Posts
    8
    yes and no.... I've got that part... let me better explain my situation... I work for an a/c company and I'm making a spreadsheet that more or less looks like the following:

    Vendor:
    Air Conditioner:
    Furnace:
    Coil:

    I want to be able to say if the within the vendor cell "Carrier" is chosen then only Carrier model numbers show up in each of the following cells. I can do this with one... but it gets tricky when I try to distinguish between Air Conditioners and Furnaces and Coils. Perhaps I need to have two distinguishing factors... if it is a Carrier unit and a Furnace then here is your list... If it is Carrier and an Air Conditioner then this list.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Yes, you need separate lists for each of the cells. Namewise, for Airconditioning, I used Vender+AC (e.g. CarrierAC), Furnaces: Vender +Fur, Coils: Vender+Coils. Then for each dropdown in Validation (where B1 is my Vender choice), I concatenated them like so
    Please Login or Register  to view this content.
    I attached my example. Does that work for you?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-23-2008
    Location
    North Carolina
    Posts
    8
    YES! That is exactly what I need.... now let's see if I can make it work on my own!! I'll let you know how it turns out! Thanks!

  6. #6
    Registered User
    Join Date
    10-23-2008
    Location
    North Carolina
    Posts
    8

    ChemistB Rocks!!

    Thank you thank you thank you Chemist B!!! It works.... You are great.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Glad it worked.

+ 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