+ Reply to Thread
Results 1 to 7 of 7

Conditional Drop Down Lists

  1. #1
    Registered User
    Join Date
    06-17-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Conditional Drop Down Lists

    Hi,

    I am using excel 2007 and have come across an issue.

    I have to columns. The first is called "Task" and the 2nd is called "Task Description". Both of these columns are currently drop down lists. Task Description drop down list is changed depending on the selection chosen from the "Task" cell. I am doing this by using data validation and setting the conditional list to be "=INDIRECT(Task)" and then the task has a pre-stored list of possible task descriptions.

    The issue I have is that only 2 of the possible 6 choices from the task have a set list for descriptions and the others are meant to be filled in manually. However since I used data validation it requires it to be from the list. Is there any way to have only certain values for "Task" have a list and the others be manually entered.

    Thanks in Advance
    Last edited by Reckonin; 10-04-2010 at 04:04 PM.

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

    Re: Conditional Drop Down Lists

    With the Data Validation window open, go to the "Error Alert" tab and uncheck "Show Error Alert after Invalid data is entered" Does that work for you?
    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
    06-17-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional Drop Down Lists

    Thanks,

    That will work currently, I am guessing there is no way to lock it such that if there is an associated drop down list to lock out people typing something in.

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

    Re: Conditional Drop Down Lists

    No, you either allow people to type values in or you don't (at least without VBA).

  5. #5
    Registered User
    Join Date
    06-17-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional Drop Down Lists

    What would be the solution using VBA... I am unsure on how to refer to drop down lists within cells using VBA.

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

    Re: Conditional Drop Down Lists

    Here you go (with some help from RomperStomper). Right click on the worksheet tab and "View code" Paste this code in. Modify E1 (cell where original dropdown is) and G1 (cell where secondary drop down is). This also clears G1 each time a new value is selected in E1
    Please Login or Register  to view this content.
    Does that work for you?

  7. #7
    Registered User
    Join Date
    06-17-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional Drop Down Lists

    Yup thanks alor for your help

+ 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