+ Reply to Thread
Results 1 to 3 of 3

How To Create Multi-Select Bounded Picklist

  1. #1
    Registered User
    Join Date
    07-06-2019
    Location
    Philadelphia, PA, USA
    MS-Off Ver
    2016
    Posts
    1

    How To Create Multi-Select Bounded Picklist

    I know that using a combination of the Indirect function and data validation I can essentially create a bounded picklist whereby the selection in cell A1 defines my options for selecting from a list of values in B1. This way if for instance you had a list of cities in every state with INDIRECT function used to link to a data validation list in Cell B1 and in Cell A1 you selected from the list of values "California", in B1 you would get a LOV displaying only cities in California.

    I also found a neat little Macro to allow for selecting multiple values in a single cell while still using the data validation tool, see below:

    #
    Please Login or Register  to view this content.
    #

    My question is how do I combine these two efforts to essentially allow me to do a multi-select from a data validation LOV, which then dynamically impacts the subsequent cells? So, if I have selected in A1 "California, Arizona" I would want to show cities in B1 from both states but no others.

    I have attached my sample worksheet as well.
    Attached Files Attached Files
    Last edited by alansidman; 07-07-2019 at 01:37 AM.

  2. #2
    Registered User
    Join Date
    04-21-2007
    Location
    Where your mind is
    MS-Off Ver
    OS 2010, 2013, 365.
    Posts
    42

    Re: How To Create Multi-Select Bounded Picklist

    Sintax8,

    The below is what I would do (with assumption you have a combined State dropdown list in A1)

    1. create a new sheet using setup like the attached picture
    2. Run a code like this to pick out city names from the combined cities in Cell A1 and wtite them underneath Range E1
    Please Login or Register  to view this content.
    3. Now you have a list of State, write anothe piece of code to put cities whithin those state under Range F1 and using data under column B & C
    4. Using dynamic name range technique to assign to data in Column F
    5. This would be a range you assign in the LOV from the data validation window.

    Hope this helps

    Cheers

    CEO76

    2019-07-07_095302.jpg

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: How To Create Multi-Select Bounded Picklist

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Copy Multi Rows From Multi Sheets Based On Column Value And Create New Workbooks
    By Huskersippi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2017, 04:51 PM
  2. [SOLVED] Multi-select picklist using Data Validation
    By prgates in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-16-2013, 01:24 PM
  3. Average of a set of Bounded Values
    By ham1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2012, 03:44 AM
  4. How to create a multi imput multi directional calculator with vba
    By walterst in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2012, 05:35 PM
  5. Copying data bounded buy particular values
    By Alexander_Golinsky in forum Excel General
    Replies: 2
    Last Post: 07-25-2012, 07:19 AM
  6. Replies: 2
    Last Post: 03-23-2012, 07:20 AM
  7. [SOLVED] find a selection bounded by the color gray
    By Janis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2006, 05:35 PM

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