+ Reply to Thread
Results 1 to 3 of 3

Setting up a dependent data validation

  1. #1
    Registered User
    Join Date
    03-20-2013
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    37

    Setting up a dependent data validation

    I'm trying to set up my spreadsheet so that it will display a drop down list of the U.S. states if "United States" is selected in a specific cell, the Canadian states/provinces if "Canada" is selected, and the word "Other" if any other country is selected.

    I have named the appropriate range of cells, USA and Canada. Now I'm trying to figure out what formula to use to make the data validation work. It works for everything except the value of "Other" if anything besides "United States" or "Canada" is chosen.

    Any ideas on how to make it work?

    Thanks!
    Doug
    Attached Files Attached Files

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

    Re: Setting up a dependent data validation

    Create a defined name "Other" = "Other" and change your Data Val formula to

    =IF(C3="","",IF(C3="United States",USA,IF(C3="Canada",Canada,Other)))
    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
    03-20-2013
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Setting up a dependent data validation

    Simple resolution. Thank you!

    I'm not sure why I didn't think of that.

  4. #4
    Registered User
    Join Date
    03-20-2013
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Setting up a dependent data validation

    Simple resolution. Thank you!

    I'm not sure why I didn't think of that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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