+ Reply to Thread
Results 1 to 8 of 8

Use or not use a dropdown list depending on another cell value

  1. #1
    Registered User
    Join Date
    02-15-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    9

    Use or not use a dropdown list depending on another cell value

    I would like to use or not use a dropdown list in data validation depending on the value of another cell. The application is to be able to choose a state from the dropdown list only if the country selected in another cell is "US". If the country is not US then I want the user to be able to fill in free text and there be no dropdown list. I know it's possible to have a dropdown list and allow entries without it being on the list but I need the dropdown list not to appear at all if the value is not US. Can someone help please?

    Thanks,
    Joe M

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Use or not use a dropdown list depending on another cell value

    What is the current settings for that data validation drop down? Specifically the SOURCE: ?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-13-2010
    Location
    Mumbai, India
    MS-Off Ver
    2007 & 2013
    Posts
    28

    Re: Use or not use a dropdown list depending on another cell value

    Hi JCMus,

    Type a list of US States in a column and save the range as a Name say "US States".

    Let's say you enter "US" in cell A1. You need a drop down in B1.

    Select cell B1, click on Data tab, select "Data Validation" option & use the below given formula in "Source" filed
    =if(A1="US","US States."")
    Remember to select "List" in "Allow" filed of "Settings" tab and clear the check box in "Error Alert" tab of "Data Validation"

    You will see a dropdown list when cell A1 value is "US"
    You will not get any list when cell A1 value is other than "US". You can manually enter any data in B1 now.

    Hope that works for you.

    Regards,
    xlsman

  4. #4
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Use or not use a dropdown list depending on another cell value

    xlman, did you try to do your operations by yourself?

  5. #5
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Use or not use a dropdown list depending on another cell value

    JCMus, check this
    list.xlsm

  6. #6
    Registered User
    Join Date
    03-13-2010
    Location
    Mumbai, India
    MS-Off Ver
    2007 & 2013
    Posts
    28

    Re: Use or not use a dropdown list depending on another cell value

    Yes. I did.

    Check the attachment.
    Attached Files Attached Files

  7. #7
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Use or not use a dropdown list depending on another cell value

    xlman, OK, but did you read TS topic?
    Quote Originally Posted by JCMus
    ...I know it's possible to have a dropdown list and allow entries without it being on the list but I need the dropdown list not to appear at all if the value is not US.

  8. #8
    Registered User
    Join Date
    03-13-2010
    Location
    Mumbai, India
    MS-Off Ver
    2007 & 2013
    Posts
    28
    Yes. You may see drop down arrow, but won't get any list of states and still you can type data in that cell.

    I presumed that drop down is in a particular cell.
    That's what i understood.

    But, may be your assumption is correct, if the result cells are different.

    Thanks for communicating.

    Regards,
    xlman

+ 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] Create different graphs depending on dropdown list
    By Candbapt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-31-2013, 10:00 AM
  2. Replies: 3
    Last Post: 01-22-2013, 01:13 AM
  3. Return data depending on dropdown list choice
    By GenericPat in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-05-2012, 02:42 PM
  4. Return Data depending on dropdown list
    By GenericPat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2012, 04:21 PM
  5. Return Data depending on dropdown list
    By GenericPat in forum Excel General
    Replies: 2
    Last Post: 11-02-2012, 04:20 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