+ Reply to Thread
Results 1 to 9 of 9

Help with Dynamic Dependent Validation lists

  1. #1
    Registered User
    Join Date
    12-21-2010
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    83

    Help with Dynamic Dependent Validation lists

    This one has been driving me mad!

    I am trying to create a multiple data validation list. The 1st list is Suppliers, and the 2nd dependent list is the products of these suppliers. The hard part is i need both these lists to be dynamic, so products and suppliers can be added easily from a seperate sheet. Also some of the manufactures and products have two part names.

    Thank you for any help
    Last edited by oo0tommyk0oo; 12-21-2010 at 05:18 PM.

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Help with Dynamic Dependent Validation lists

    Hi and welcome to the board. Below are list of the websites where you can find useful information regarding your issue. Hope it helps)))

    http://www.contextures.com/xldataval02.html
    http://www.contextures.com/xldataval13.html
    http://blog.contextures.com/archives...idation-lists/
    http://www.contextures.com/xldataval15.html
    http://www.ozgrid.com/Excel/dependent-lists.htm
    http://www.ozgrid.com/News/excel-dependent-lists.htm
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with Dynamic Dependent Validation lists

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    12-21-2010
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Help with Dynamic Dependent Validation lists

    Here is a brief .xlsx to help explain.

    Thanks for the help

    Tom
    Attached Files Attached Files

  5. #5
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Help with Dynamic Dependent Validation lists

    First type Subtrader labels anywhere in one column. Say this will be G2:G4, then name this area as "Subtrades" using
    =OFFSET('Raw Data'!$G$2,,,MATCH("*",'Raw Data'!$G$2:$G$50,-1))

    Go to Templates sheet, highlight A2:A30 and go to Data > Validation. In dialog box From "Allow" dropdown choose "List", then in "Source" field just type "Subtrades" (w/o quotes)

    Then highlight B2:B30 of Template sheet, o to Data > Validation. In dialog box From "Allow" dropdown choose "List", then in "Source" field just paste below formula
    =OFFSET('Raw Data'!$B$2,,MATCH(Template!$A2,Subtrades,0)-1,COUNTA('Raw Data'!$B$3:$B$50),)

    Sample is attached)))
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-21-2010
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Help with Dynamic Dependent Validation lists

    Thank you for the quick reply.

    I am getting an error saying you cannot reference other worksheets or workbooks for data validation criteria.

    Im guessing i may have to stick it all on one sheet and use hide function???

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with Dynamic Dependent Validation lists

    Another option:

    In Raw Data, go to Formulas|Define Name

    create Name Suppliers and use formula to define it:

    Please Login or Register  to view this content.
    then create a Name called All with formula:

    Please Login or Register  to view this content.
    (where 10000 represent the max number of rows you will ever need for this tab)

    then in Template sheet A2, go to Data|Validation, choose List and enter formula:

    Please Login or Register  to view this content.
    in B2, go to data|Validation, choose List and enter formula:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-21-2010
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Help with Dynamic Dependent Validation lists

    Thank you NBVC that works perfectly.

    Cheers for all your help

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with Dynamic Dependent Validation lists

    Great

    Please remember to mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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