+ Reply to Thread
Results 1 to 10 of 10

Dynamic Data Validation with Multiple Criteria

  1. #1
    Registered User
    Join Date
    04-15-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    5

    Dynamic Data Validation with Multiple Criteria

    Hi all,

    I'm a new member so please bare with!

    Please see attached.

    I am looking to create Dynamic Data Validation on the sheet 'RAD Selector' in Columns K, L and M.

    I want the selections to automatically update when any data is added to the RAD data table on the 'RAD Data' Sheet.

    I currently have manually set this up with named ranges, but would like to automate if possible.

    The difficulty I am having is reducing down the data to the unique entries for each Range, Type and Height.

    They very for each Range and Type, hence the need for it to filter out those that aren't relevant.

    I can figure out how to do this for one cell, using spill ranges.

    However, I need this process to occur on each row.

    I have tried a range of things but have been unable to get this to work.

    I hope this make sense, along with the attached.

    Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,829

    Re: Dynamic Data Validation with Multiple Criteria

    Maybe this:
    I'll show an example for 1 and if that works for you, you can expand it to the rest. Let's look at RAD Range = LST

    For your dynamic drop-down, in a cell L5, say, enter this:

    =UNIQUE(FILTER(RADData[RAD Type],RADData[RAD Range]=L$4))

    Change your named range so it references the dynamic list like this:

    ='RAD Data'!$L$5#

    (See attached). Is this what you're trying to do?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-15-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    5

    Re: Dynamic Data Validation with Multiple Criteria

    Hi Greg,

    Thanks for your response and help so far.

    That is along the right lines, but I am trying to put the Data Validation in column L on the RAD Selector Sheet.

    The RAD Data sheet is just where the Data that the formulas are looking at is - nothing will be changed here.

    I had already tried the Unique Filter formula (=UNIQUE(FILTER(RADData[RAD Type],RADData[RAD Range]=K9))), and it works - creating a spill range. However, when putting this into the Data Validation (Allow: List, Source: (Above formula)), it gives me an error - below:

    "Not trying to type a formula?
    When the first character is an equal ("=") or minus ("-") sign, Excel thinks it's a formula:

    • you type: =1+1, cell shows: 2

    To get around this, type an apostrophe ( ' ) first:

    • you type: '=1+1, cell shows: =1+1"


    I believe this could be because I am using the Table Name, rather than Named Ranges. However, I have created Named ranges and that gives me the following error:

    The Source currently evaluates to an error. Do you want to continue?

    On the RAD Selector sheet, I basically need column L to depend on what is entered in column K, returning the unique RAD Types for the RAD Range. I then need column N to depend on both entries (Column K & L), returning the unique RAD Heights for the selected Range and Type.

    Hope that makes more sense!

  4. #4
    Registered User
    Join Date
    04-15-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    5

    Re: Dynamic Data Validation with Multiple Criteria

    For some reason, the DATA validation entry does not like the formulas.

    I have it working, creating spill ranges, but when putting into the data validation, it just gives me an error.

    These are the formulas:

    1 - =UNIQUE(FILTER(RAD_Type,RAD_Range=K9))

    2 - =UNIQUE(FILTER(RAD_Height,(RAD_Range=K9)*(RAD_Type=L9)))

    I cannot get the data validation to look at a cell/spill range for the options because I need to be able to make different selections on each row.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Dynamic Data Validation with Multiple Criteria

    For data validation in K and L columns I have given in file. Pl see. It is difficult to explain. If you want any clarification pl feel free to come back.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    04-15-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    5

    Re: Dynamic Data Validation with Multiple Criteria

    Hi,

    Thank you for your help.

    Unfortunately this isn't quite what I am looking for.

    I need the Data Validation to be dynamic and automatically update/add new entries when new data is input to the RAD Data table!

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Dynamic Data Validation with Multiple Criteria

    You are having formula for in all ranges.

    Eg:For LST.
    Formula With Unique and filter can be used in M4:M8.I don't have 365 to demonstrate.
    For LST there are three entries.LSt_K1,LST_k2, LST_P_Plus. If one more is added in the list in F column It will be added to M8 then the formula in M3 will change .
    List will be M4:M8. No changes are required in formula and Validation. More blank cells are required between each range for future changes.

  8. #8
    Registered User
    Join Date
    04-15-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    5
    The small tables that you are talking about currently being used for data validation is what I am wanting to remove.

    The data validation needs to be dynamic, so that when more data is input to the RAD Data table, it pulls through.

    With what is currently there and what you have put, there is still a manual element which I need to avoid.

    Thank you for your help though.
    Last edited by AliGW; 04-17-2021 at 08:23 AM. Reason: PLEASE don't quote unnecessarily!

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Dynamic Data Validation with Multiple Criteria

    Worksheet event with VBA code will help. Is it ok for you.

  10. #10
    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,189

    Re: Dynamic Data Validation with Multiple Criteria

    See attached as "proof of concept" (non-MS365) but I am sure can be easily converted

    in W5

    =IFERROR(INDEX(RAD_Range,MATCH(0,COUNTIF($W$3:W4,RAD_Range),0)),"")

    in X5

    =IFERROR(LOOKUP(2, 1/((COUNTIF(X$4:$X4, $F$5:$F$400)=0)*SEARCH($K$5& " ", $E$5:$E$400 & " ")), $F$5:$F$400),"")

    in Y5

    =IFERROR(LOOKUP(2, 1/((COUNTIF($Y$4:Y4, $G$5:$G$400)=0)*SEARCH($L$5& " ", $F$5:$F$400 & " ")), $G$5:$G$400),"")

    in Z5

    =IFERROR(LOOKUP(2, 1/((COUNTIF($Y$4:Z4, $H$5:$H$400)=0)*SEARCH($L$5& " ", $F$5:$F$400& " ")), $H$5:$H$400),"")

    ALL above entered with Ctrl+Shift+Enter

    Columns W:Z are named ranges which are used in the DV for L:N

    Based on the formulae in W:Z you should be able to create the individual ranges required.
    Attached Files Attached Files
    Last edited by JohnTopley; 04-18-2021 at 01:59 AM.

+ 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 Data Validation List - 2 criteria
    By smartbuyer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2018, 05:14 AM
  2. Replies: 9
    Last Post: 11-26-2012, 12:46 AM
  3. [SOLVED] Create Dynamic Data Validation List based upon Criteria
    By stubbsj in forum Excel General
    Replies: 6
    Last Post: 06-04-2012, 08:33 AM
  4. Replies: 0
    Last Post: 02-13-2012, 07:18 AM
  5. Replies: 3
    Last Post: 08-21-2011, 08:22 PM
  6. Dynamic data validation using multiple lists
    By Danbot007 in forum Excel General
    Replies: 1
    Last Post: 02-01-2011, 08:30 AM
  7. Dynamic Data Validation multiple lists
    By m1066189 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-09-2010, 03:42 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