+ Reply to Thread
Results 1 to 6 of 6

Dynamic Dropdowns

  1. #1
    Registered User
    Join Date
    04-15-2014
    Location
    Tirana, Albania
    MS-Off Ver
    Excel 2007
    Posts
    12

    Dynamic Dropdowns

    Can anyone help.

    I need to create a dynamic drop-down list


    I have a sheet with codes for every project:
    Code.PNG

    And the main table that have to be populated, so I have created a list with all projects with Data-validation and based on the project I have created another list with unique codes for every project
    so I first select the project from a DropDown and based on the project code a can select only the codes of that project.DataEntry.PNG

    I know how to do that with indirect function but if a want to ad a new project with new codes, this is where I don't know what to do.

    DropDownsample.xlsx

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Dynamic Dropdowns

    See the attached: row 2 of Data Entry.

    Unfortunately the Project Names/Project codes are "reserved" names so you cannot have a named range called "A01" for example. I added a suffix of "_x" in the name manager and as a consequence the INIRECT in the corresponding data validation also was modified.

    Hope this sufficient to get you started.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-15-2014
    Location
    Tirana, Albania
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Dynamic Dropdowns

    Thanks John,

    i Have use the indirect and the substitute function, but when i enter a new project with its codes, i have to redo the data validation from the beginning and some times it doesn't work
    i have read this article about dynamic drop down http://chandoo.org/wp/2014/02/13/dyn...ns-that-reset/ , but It does't work in my case.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Dynamic Dropdowns

    You need a dynamic ranges in your named ranges.

    For "Project" set the "Refers to" in Data Validation to

    =OFFSET(Code!$A$2,0,0,COUNTA(Code!$A:$A)-1,1)

    If now add other projects they will show in the list.

  5. #5
    Registered User
    Join Date
    04-15-2014
    Location
    Tirana, Albania
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Dynamic Dropdowns

    yes, this is true for every new project but it will not affect the code that refers to the new project, the drop down on the column F, want work

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Dynamic Dropdowns

    Yes it will. I renamed the projects XXA0 .... so that the INDIRECT references were to A2 (etc) and added a new project XXD05 with a new corresponding list project codes. That worked fine. I just need the dynamic list to ensure that XXD05 appeared in Column A. When selected in had the right project codes in F.

+ 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. Dynamic Dependent Dropdowns possible without naming ranges?
    By elmorekevin in forum Excel General
    Replies: 1
    Last Post: 10-15-2014, 03:23 AM
  2. Data Validation - Dynamic Dropdowns
    By Pourradass in forum Excel General
    Replies: 2
    Last Post: 08-13-2014, 06:22 AM
  3. LINKED LISTS - Dynamic Dropdowns [!PLEASE HELP!]
    By MrWines in forum Excel General
    Replies: 3
    Last Post: 08-29-2013, 04:53 AM
  4. Dynamic Dropdowns
    By dyrflr21 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-31-2013, 08:44 PM
  5. Dynamic Indirect Validation Dropdowns
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-04-2008, 11:02 AM
  6. [SOLVED] 3+ Dynamic Dependent dropdowns?
    By KD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2006, 01:15 PM
  7. How do I create Dynamic Dropdowns
    By Baapi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2006, 07:40 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