+ Reply to Thread
Results 1 to 5 of 5

Create drop down list only if another cell's value indicates so

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    Oakland, CA
    MS-Off Ver
    2013
    Posts
    16

    Create drop down list only if another cell's value indicates so

    Greetings,

    I am wondering if it is possible to include drop down lists if an earlier cell dictates so but override to a set value if not. For example, if cell A1 says "Yes", then cell B1 has a drop down menu giving an additional Yes/no option; if cell A1 says "no", then B1 will adjust to also saying "no."

    I know how to set up the lists such that the selection in A1 changes the available values in B1's drop down menu, however, if both A1 & B1 were at one point set to "yes", changing A1's value does not automatically change the value in B1, it simply changes the options for editing the cell. I want to avoid a situation where a user inadvertently adjusts some but not all values.

    Thanks in advance for your help.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,715

    Re: Create drop down list only if another cell's value indicates so

    You have to use VBA to do that. I can support that if you provide more details about what are the values you are working with and the rules for setting the related values. A sample file would be ideal.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-10-2015
    Location
    Oakland, CA
    MS-Off Ver
    2013
    Posts
    16

    Re: Create drop down list only if another cell's value indicates so

    Thanks for the help. I have attached a sample file here. The conditions and values are essentially the same as in my earlier post; only the cell addresses are different.

    If Option 1 (cell B2) is set to "Yes", the drop down values for Option 2 (cell B3) include both "Yes" & "No".
    If Option 1 is set to "No", the only option in the drop down list for Option 2 is "No."
    If both Options were set to "Yes" and then Option 1 is changed from "Yes" to "No", I want the value in Option 2 to change automatically to "No".

    Option 2's drop down values are listed in the table starting at cell H2.

    Thanks again!
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,715

    Re: Create drop down list only if another cell's value indicates so

    Here is an update that uses a macro to do this. However, if your example is greatly simplified compared to your actual problem the code will have to be revised to match.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-10-2015
    Location
    Oakland, CA
    MS-Off Ver
    2013
    Posts
    16

    Re: Create drop down list only if another cell's value indicates so

    That's all I needed. Thanks!

    I should be able to make any necessary revisions.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create a drop down list based on the value in a cell
    By vjboaz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-28-2013, 02:21 AM
  2. Create a Drop Down list if another cell meets certain criteria
    By rini11 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-18-2013, 03:21 AM
  3. How do I create a drop down list for every cell in a column?
    By jomol05 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2011, 05:22 PM
  4. Create drop list jump to reference cell
    By localhost in forum Excel General
    Replies: 5
    Last Post: 12-31-2007, 04:05 AM
  5. How do I create a cell drop down list
    By NewTooExcel in forum Excel General
    Replies: 2
    Last Post: 08-09-2007, 12:10 PM

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