+ Reply to Thread
Results 1 to 5 of 5

Dependent data validation with dynamic named ranges

  1. #1
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Dependent data validation with dynamic named ranges

    This seems to be rather annoying.

    I am unable to use dependent data validation lists using the INDIRECT function when the initial named range is a dynamic one.

    See attached.

    The named ranges 'Men','Women','Children' are all dynamic based on number of entries in each column order to accommodate a growing list, whilst also not having blanks in the dropdown (hence I haven't used entire column ranges). The named range 'test' is a static one.

    Column H has a dependent data validation based on entry in Col G. This works for the static list, but not the dynamic one!

    Any workarounds? preferably no VBA
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Dependent data validation with dynamic named ranges

    Hi,

    There's an article on this at http://www.contextures.com/xlDataVal02.html under "Using Dynamic Lists"
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Dependent data validation with dynamic named ranges

    Hi Ace,

    Isn't this just Cascading Dropdowns? See
    http://www.bluepecantraining.com/por...ists-in-excel/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Dependent data validation with dynamic named ranges

    Don't use INDIRECT

    =CHOOSE(MATCH(G2,B1:D1,0),Men,Women,Children)

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Dependent data validation with dynamic named ranges

    @ sweep: thanks for the link. I've frequented this section of Debra Dalgleish's site and though it deals with the dynamic dependent lists it uses a roundabout approach and extra named ranges to achieve that

    @Marvin: yes, these are cascading drop downs, but with dynamic named ranges (not static ones)

    @ Bob: The CHOOSE option is handy and I'll explore the possibilities of using that, although with many dynamic ranges it'd be cumbersome. Does seem like the best option under the circumstances.

    Thanks all for responding

+ 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. Dependent List Validation from Dynamic Named Ranges
    By freeride in forum Excel General
    Replies: 11
    Last Post: 01-22-2020, 03:07 PM
  2. [SOLVED] Dynamic dependent data validation lists
    By gak67 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2014, 06:21 PM
  3. [SOLVED] Dynamic dependent data validation list
    By Masun in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-03-2014, 10:34 AM
  4. Dynamic Name ranges and data validation problems
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-19-2013, 01:29 PM
  5. Data Validation and Dynamic Named Ranges
    By freybe06 in forum Excel General
    Replies: 15
    Last Post: 07-20-2011, 01:18 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