+ Reply to Thread
Results 1 to 3 of 3

Varying validation drop-downs based on varying cell values

  1. #1
    Registered User
    Join Date
    07-21-2012
    Location
    Fayetteville, NC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Varying validation drop-downs based on varying cell values

    I am attempting to have cells in Column “U” deliver different drop-down menus based on the corresponding value in column “D”. I have created 7 named lists:
    List_117G
    List_152
    List_JMET
    List_XBAND
    List_PACWIND
    List_VORTEX
    List_ROVER

    Those lists will be called up based on 7 values in column “D”:
    “G”
    “152”
    “J”
    “X”
    “D/E”
    “V”
    “R”

    So far I have only been able to get this to work for the first category “G”. When I change the value of column “D” from “G” to “152” I no longer get a drop-down. Here is the formula I am using in the List function of validation.

    =IF(D6="G",List_117G,IF(D6="152",List_152,IF(D6="J",List_JMET,IF(D6="X",List_XBAND,IF(D6="D/E",List_PACWIND,IF(D6="V",List_VORTEX,IF(D6="R",List_ROVER,)))))))

    What am I doing wrong?
    Last edited by navarreman1; 08-08-2013 at 08:19 AM.

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

    Re: Varying validation drop-downs based on varying cell values

    Welcome to the Forum navarreman1!

    I can't get your solution to work at all. I get an error message when I try to use that formula in List Validation. Are you sure this is the exact same formula you are using? I believe the error is because you left the last ELSE case blank. I added another list and explicitly used it for the last ELSE case and I do not get the error.

    Now, there is still something wrong. You are looking for the number 152 in quotes, so it won't match. Remove the quotes and it works. See attached example.
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    07-21-2012
    Location
    Fayetteville, NC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Varying validation drop-downs based on varying cell values

    Ok 6StringJazzer - you steered me in the right direction! The final "," was a mistake. Once I pulled that out things started going a little more smoothly. The big problem I found was that I was populating Column "D" using a validated list and the value "152" was numeric. I changed the validation to " '152 " to input in text format and PRESTO! it works like a champ. It's those minute things that drive me up the wall. Your solution got me started and I thank you for your help.
    Last edited by navarreman1; 08-08-2013 at 08:20 AM.

+ 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. [SOLVED] Data Validation varying lists based on character
    By danny06m in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-06-2013, 07:56 PM
  2. Validtion list varying based on data on another cell
    By skilaru in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-02-2012, 09:14 AM
  3. Loop through 2 drop downs and then delete rows based on their values
    By thedon_1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2011, 09:20 AM
  4. Populate cells with values based on varying criteria
    By bsweet0us in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2010, 03:56 PM
  5. Fill cell based on values entered from two drop downs
    By foo.mac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2009, 02:40 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