+ Reply to Thread
Results 1 to 2 of 2

Restrained Values

  1. #1
    Registered User
    Join Date
    05-17-2005
    Posts
    10

    Restrained Values

    Hi could any one help me out with this:
    There are two cells that have drop down menus. How do I retrain the 2nd drop down menu depending on the first? Example:
    1st drop down menu returns the values GLC and GL should someone choose GL the 2nd drop down menu will range from 0-2,5. How can I restrain the range of the 2nd dropdown to 0-1 if the choice is GLC?.

    PLease help

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Let's assume your first dropdown is in C1. Create two lists in G1:G6 with your values from 0 to 2.5 and a second in H1:H2 with values of 0 and 1 (of course, adjust ranges and values to meet your needs)

    Then in D1, Select List in the Validation box and enter this formula in the Source line:

    =IF(C1="GL",$G$1:$G$6,H1:H2)

    A choice of GL in C1 will give the choices in column G, anything else will give the choices in col. H

    To not offer choices if C1 is blank (or any other value), try this:

    =IF(C1="GL",$G$1:$G$6,IF(C1="GLC",H1:H2,""))

    HTH

    Bruce
    Last edited by swatsp0p; 05-17-2005 at 12:15 PM.
    Bruce
    The older I get, the better I used to be.
    USA

+ 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