+ Reply to Thread
Results 1 to 6 of 6

Multiple data validation

  1. #1
    Registered User
    Join Date
    10-14-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Multiple data validation

    Hello all,

    I am trying to create a drop down menu in order to be able to select multiple countries in one cell.

    For example, I want cell C3 to have a drop down menu with one country then a selection of many countries.

    e.g. Brazil, Australia, France

    Attached the file.

    Is it possible ?
    Attached Files Attached Files

  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: Multiple data validation

    That would require the use of VBA programming. Is that ok to use in your projects?
    _________________
    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
    10-14-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Multiple data validation

    Quote Originally Posted by JBeaucaire View Post
    That would require the use of VBA programming. Is that ok to use in your projects?
    yes please go ahead, thank you

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

    Re: Multiple data validation

    Then the technique published here will do the trick.
    https://sites.google.com/a/madrocket...ulti-choice-dv

    You want to use version #2.

    1) Right-click the sheet tab and select VIEW CODE to open the sheet module in the VBA editor

    2) Paste in the vba code found on that sheetm version #2

    Be sure to edit the code to watch the range of cells you want. The code as written is watching cells A1:A10, you might change that to C2:C100 or something like that.

    3) Close the VBA editor and save your workbook as a macro-enabled workbook (CountryList.xlsm)

    Now as you make selections in your column C you can make multiple selections.

    To start over in a cell, press DELETE to clear the cell completely.
    Last edited by JBeaucaire; 12-26-2019 at 03:51 PM.

  5. #5
    Registered User
    Join Date
    10-14-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Multiple data validation

    I just did but I only have one country selection.

    See Attachment.
    Attached Files Attached Files
    Last edited by JBeaucaire; 12-26-2019 at 03:51 PM.

  6. #6
    Registered User
    Join Date
    10-14-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Multiple data validation

    Thank you JBeaucaire.

+ 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 - Multiple selections in multiple columns
    By 1953CAG in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2016, 11:23 AM
  2. Data Validation Combo Box with Multiple Independent Validation Lists
    By firstofnine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2016, 04:38 PM
  3. omit menu items via data validation for multiple selections and multiple menus when select
    By themattyp503 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2014, 12:16 AM
  4. Filter multiple columns based on multiple data validation fields
    By Jhunnieboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2014, 03:41 PM
  5. Replies: 1
    Last Post: 03-19-2013, 07:03 PM
  6. Excel Data Validation - Select Multiple Items - Need to Apply Macro to Multiple Rows
    By kristynroll in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2012, 07:44 PM
  7. Replies: 0
    Last Post: 12-12-2011, 07:27 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