+ Reply to Thread
Results 1 to 5 of 5

Conditional Drop Box

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    5

    Conditional Drop Box

    I am currently working on a spreadsheet and would like to make a cell that can auto-input a value (like an IF or VLOOKUP formula) but also has a conditional drop down list. Both of these would be based upon the same previous cell with its own drop down function. My main issue is that I do not need the drop down list for every condition selected.

    For example: say the first cell reads "AAA". AAA would have an automatic input of "1". However, if "BBB" were selected I would need the box to create a drop down with options "2", "3", "4", and "5".

    I was able to come close by utilizing an offset formula in the drop down source and an IF function in the cell. However, once a value was selected from the drop down menu it did not clear out to the original formula but rather replaced it with the value permanently. I would like for it to change with each selection while maintaining the original formula.

    I realize I am probably explaining this terribly so I have attached a simple sample. Any help would be greatly appreciated!
    Attached Files Attached Files
    Last edited by hbmoto; 07-30-2011 at 02:32 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,081

    Re: Conditional Drop Box

    Try look here: http://www.contextures.com/xldataval02.html
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    07-06-2011
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional Drop Box

    Thank you for the response. My main problem is that once a value is selected from the second drop down it stays in the cell. So if I were to go back and change the value in the first condition, the cell does not automatically change with it. Is there a way to do this?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Drop Box

    I use CONDITIONAL FORMATTING to highlight the second cell if the first cell is changed and the second cell still holds a value that is no longer a valid choice.

    Here's a sample sheet I've posted showing how it's done. The sheet "CHOICES" has the dependent drop lists (and shows one of the dangers of using them) and the sheet "LISTS" shows the lists and named ranges in use.

    Have a look.

    Sample Files[INDENT]Dependent Drop Down Lists

    --DependentLists3.xls - 3 levels


    That sheet also demonstrates a VBA option that actually clears the second cell.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    07-06-2011
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional Drop Box

    Thanks! Got it.

+ 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