+ Reply to Thread
Results 1 to 4 of 4

Conditional Cell-Validation

  1. #1
    Registered User
    Join Date
    03-07-2008
    Posts
    8

    Conditional Cell-Validation

    Using Excel 2002, I've been trying to create a drop down menu that displays several options from a list, which should be simple, however, I ran into a problem when I decided that I needed the oprions in one drop down menu to be conditional based on the option selected from another drop menu.

    Example:

    A3 - drops down to show 3 options

    Red
    Blue
    Green

    If Red is selected, then A4 will display drop down options:

    1
    2
    3

    If Blue is selected, A4 should show:

    4
    5
    6

    If Green is selected, A4 should allow the user to select:

    7
    8
    9

    This posed a problem when I found out that Validation won't allow me to input a formula. Does anybody know if what I'm trying to do here is even possible with Excel 2002?

  2. #2
    Forum Contributor snasui's Avatar
    Join Date
    07-15-2007
    Location
    Songkhla, Thailand
    MS-Off Ver
    2010, 365
    Posts
    167
    Try this,

    1. F1:F3
    Red
    Blue
    Green

    2. G1:G4
    Red
    1
    2
    3

    3. H1:H4
    Blue
    4
    5
    6

    4. I1:I4
    Green
    7
    8
    9

    5. Select A3 > Data > Validation > Allow:List > Source :=OFFSET($F$1,0,0,COUNTA($F:$F),1)

    6. Select A4 > Data > Validation > Allow: List > Source: =OFFSET($G$1,1,MATCH($A$3,$G$1:$I$1,0)-1,COUNTA(INDEX($G:$I,0,MATCH($A$3,$G$1:$I$1,0)))-1,1)

    Adjust range for your suit.

    Hope this helps.
    ------
    snasui

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    If you have 3 blank cells you can play with, in the first, put =IF($A$3="Red",1,IF($A$3="Blue",4,7)) and do the same in the next two cells with 2, 5, and 8 and 3, 6, and 9. Then in the validation formula, just refer to these three cells.

  4. #4
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Check out this site which has all the information you could want on dependant drop down

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

    Ed

+ 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