+ Reply to Thread
Results 1 to 7 of 7

Dynamic Dependent "Data Validation -List"

  1. #1
    Registered User
    Join Date
    01-20-2017
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    8

    Dynamic Dependent "Data Validation -List"

    Hi All,

    Please help me to create a Data Validation list to Auto refresh from Master List.

    I have Master sheet in which 2 Columns like 1. Category and 2. Field Name. ("Master "data) - attached the excel sheet.

    I have another tab ("Client to Fill") which has more columns and the requirement is listed below:


    It has Category, Field Name, Data
    1. The Category has DEP-ACCT, TIME-DEP and DEP-TXN (i can use Data Validation - List and restrict to use these 3 values)
    2. Field Name, we need to bring it from Master Data and we need to use Data Validation - List again.
    But Limit the Fields Names to be shown in drop down with associated Category.
    Similarly, The client will keep adding Field Names randomly against the 3 categories.
    So this Field Name drop down list should show the category and respective Field Names to them "automatically" by including new / additional fields.

    Like this: ("Client to Fill "sheet looks) -- attached the excel.

    I can not ask my client to use PQ or VBA. Please share any formula as of Excel 2010 version. thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Dynamic Dependent "Data Validation -List"

    AFAIK - You can't make it truly dynamic without use of VBA or other tools.

    Having said that. You can set up "Lists" sheet with enough ranges with formula to make it semi-dynamic.

    First, set up dynamic named range in "Master Data" sheet.

    mstCategory ='Master Data'!$B$3:INDEX('Master Data'!$B:$B,COUNTA('Master Data'!$B:$B)+1)
    mstField ='Master Data'!$C$3:INDEX('Master Data'!$C:$C,COUNTA('Master Data'!$C:$C)+1)

    Then in "Lists" sheet
    In B1: Copy across as much as needed
    =IFERROR(INDEX(mstCategory,MATCH(0,INDEX(COUNTIF($A$1:A$1,mstCategory),,),0)),"")

    In B2: Copy across to match above and down as much as needed
    =IFERROR(INDEX(mstField,MATCH(0,COUNTIF(B$1:B1,mstField)+NOT((mstCategory=B$1)),0)),"")
    Confirmed as array (CTRL + SHIFT + ENTER)

    Set up dynamic named range for unique Category list.
    lstCategory =Lists!$B$1:INDEX(Lists!$1:$1,COUNTIF(Lists!$1:$1,"*?"))

    For data validation formula (Allow List)
    Category Column Formula:
    =lstCategory

    Field Name Column Formula:
    =OFFSET(Lists!$A$1,1,MATCH($F3,lstCategory,0),COUNTIF(OFFSET(INDEX(Lists!$A:$A,,),,MATCH($F3,lstCategory,0)),"*?"))

    See attached sample.
    Attached Files Attached Files
    Last edited by CK76; 01-20-2017 at 12:42 PM.

  3. #3
    Registered User
    Join Date
    01-20-2017
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Dynamic Dependent "Data Validation -List"

    Thank you sir. The above is what I am looking for.

    but I am facing issue while recreate the above steps in my excel. I am struggling with creating "Confirmed as array" step to List down field names.

    1.Put the formula in List tab: B2, i.e. ==IFERROR(INDEX(mstField,MATCH(0,COUNTIF(B$1:B1,mstField)+NOT((mstCategory=B$1)),0)),"")
    2.Select the range B2:D10
    3.Press F2 key
    4.hold down CTRL and SHIFT keys and press ENTER
    I am getting the data i.e field name "D1" copied into all B2: D10 range where the formula holds to refer $B$1 cell everywhere.
    Array is not considered , which means braces are not coming {}. Kindly help. Thank you

  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,152

    Re: Dynamic Dependent "Data Validation -List"

    Put the formula in B2 only i.e only select B2

    Enter with Ctrl+Shift+Enter

    THEN drag the formula across columns and down rows.
    Last edited by JohnTopley; 01-22-2017 at 03:39 PM.

  5. #5
    Registered User
    Join Date
    01-20-2017
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Dynamic Dependent "Data Validation -List"

    Thank you all. the below steps worked fine for me.

    1. Copy the formula and put in one cell B2 (my sheet)
    2. Press F2.
    3.Press CTRL SHIFT ENTER
    4. drag the formula everywhere the range you need.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Dynamic Dependent "Data Validation -List"

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    01-20-2017
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Dynamic Dependent "Data Validation -List"

    My sincere thanks to the forum members user "CK76". I prepared my client worksheet based his formula and guidance. Its amazing and works perfectly. Thank you very much.

+ 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. [SOLVED] Dynamic Dependent "Data Validation"
    By ManiThani in forum Office 365
    Replies: 6
    Last Post: 01-27-2017, 02:01 AM
  2. VBA to Clear "Upstream" Data Validation Dependent Dropdowns
    By ali_178 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2015, 11:34 AM
  3. [SOLVED] Data validation "list" - "source" has too many characters
    By bee88 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-21-2015, 04:28 PM
  4. [SOLVED] Dynamic dependent data validation list
    By Masun in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-03-2014, 10:34 AM
  5. List Data Validation + option of "INC"+12 digit number"
    By penfolda in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2013, 02:53 AM
  6. [SOLVED] Data Validation: Allow "List" or "Whole number"
    By monir in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2006, 11:40 AM

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