+ Reply to Thread
Results 1 to 7 of 7

Dependent Drop-down with Dynamic Named Ranges

  1. #1
    Forum Contributor
    Join Date
    11-08-2017
    Location
    Murfreesboro, TN
    MS-Off Ver
    MS 365
    Posts
    168

    Dependent Drop-down with Dynamic Named Ranges

    Hi.

    I am attaching a sample spreadsheet with code that I used from Contextures.com (https://www.contextures.com/xldataval11.html).

    I added my named ranges, data validation, and combo boxes.

    On my named ranges, I purposely only made one of them a dynamic range using INDEX, ROWS, and COUNTBLANK. This is the only range that does not show up in the combo box drop-down.

    I need to know what I need to change in the code for the sheet or in the named range to make it show up. I do not want all of the blank rows at the end of the list to appear in the combo box.

    Any help is appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,004

    Re: Dependent Drop-down with Dynamic Named Ranges

    I can't answer your question but maybe you're interested in a different method to set up dependent data validation.
    This method will make it easier to maintain the data set because you only need 1 table.

    Here's 2 examples:

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Dependent Drop-down with Dynamic Named Ranges

    Change range name typelist to

    =OFFSET(Lists!$B$4,1,MATCH(A2&"s",Lists!$C$4:$I$4,),COUNTIF(INDEX(Lists!$C$5:$I$105,,MATCH(A2&"s",Lists!$C$4:$I$4,)),"*?"))
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-08-2017
    Location
    Murfreesboro, TN
    MS-Off Ver
    MS 365
    Posts
    168

    Re: Dependent Drop-down with Dynamic Named Ranges

    Thank you Akuini . I will check this out. I appreciate your help.

  5. #5
    Forum Contributor
    Join Date
    11-08-2017
    Location
    Murfreesboro, TN
    MS-Off Ver
    MS 365
    Posts
    168

    Re: Dependent Drop-down with Dynamic Named Ranges

    Quote Originally Posted by Bo_Ry View Post
    Change range name typelist to

    =OFFSET(Lists!$B$4,1,MATCH(A2&"s",Lists!$C$4:$I$4,),COUNTIF(INDEX(Lists!$C$5:$I$105,,MATCH(A2&"s",Lists!$C$4:$I$4,)),"*?"))
    Thank you.

    I downloaded the revised spreadsheet and it works, of course. When I try to make my original upload look the same, it does not work.

    How do you get the list to show up in Entry!D2? And is it necessary for it to show up, or is that just for my benefit?

    If it is necessary, my actual spreadsheet would have to have it somewhere else, hidden. Is that ok?

    I am using this same Data Validation in several places on the same sheet, would I have to have a hidden list for each of them?

    Sorry for all the questions. This stuff is a little out of my depth.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Dependent Drop-down with Dynamic Named Ranges

    As to the necessity of the list in D2:D6, no it isn't.
    If you delete the formula in those cells and then move the combo box that is covering cell B2, the data validation drop down in cell B2 works.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Forum Contributor
    Join Date
    11-08-2017
    Location
    Murfreesboro, TN
    MS-Off Ver
    MS 365
    Posts
    168

    Re: Dependent Drop-down with Dynamic Named Ranges

    Thank you for your help. I will give it a try.
    Last edited by AliGW; 12-20-2020 at 12:43 PM. Reason: PLEASE don't quote unnecessarily!

+ 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. Dependent Drop-down menu without named ranges
    By olga6542 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2019, 12:02 AM
  3. Dependent drop down lists -- without named ranges?
    By vicken_a in forum Excel General
    Replies: 3
    Last Post: 03-30-2018, 12:52 PM
  4. [SOLVED] Dependent data validation with dynamic named ranges
    By Ace_XL in forum Excel General
    Replies: 4
    Last Post: 08-07-2014, 10:02 AM
  5. [SOLVED] dependent drop down boxes and dynamic ranges
    By philcud in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 PM
  6. dependent drop down boxes and dynamic ranges
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 09:05 AM
  7. dependent drop down boxes and dynamic ranges
    By philcud in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM

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