+ Reply to Thread
Results 1 to 3 of 3

Double, conditional data validation. Related to each other.

  1. #1
    Registered User
    Join Date
    03-02-2016
    Location
    Netherlands
    MS-Off Ver
    2013
    Posts
    15

    Double, conditional data validation. Related to each other.

    Hello all,

    I have this problem, which seems really simple and obvious to me, but i can't find a way to make it to work, so last help is to use the great online knowledge you all have.

    Ok, situation is as follows:
    Imagine someone who builds cabinets, and calls them according to citynames.

    While they all have a different way of producing the door, some can only made out of solid wood, where others only can be made out of plywood/sheet. Then at last, some can be made using both methods/materials (solid wood as well as plywood/sheet).

    Now, i would like to use two ranges of data validation, where the user first selects the style(=city), and then, gets the option to chose the material, but only for the possible building methods.

    So, for example, when someone choses Amsterdam as style, they can only select Solid woods as materials (so options would be Birch, Oak, Cherry), the plywood materials won't appear in the list

    But, when someone choses New York as city, all options, should be available to chose from (Solid wood materieals as well as plywood materials).

    So, concluding this whole story; the actual problem is to get the desired list in cell C11...

    How can i possibly achieve to get this as wished?

    I added a dummy file as attachment.


    Thanks for your help!
    Best regards,
    Arno
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Double, conditional data validation. Related to each other.

    I Tried to do this using dynamic ranges but kept getting errors.

    So I created this macro which works.

    Right click on your sheet name at the bottom of excel and select view code.

    Paste this code there and close the macro module.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 05-06-2016 at 12:34 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Double, conditional data validation. Related to each other.

    You can also build it mechanically by lists and assigning named ranges to them then using indirect in the data validation but maintaining it would be a pain if you have a LOT of Doorstyles AND wood types.

    Alternatively you could use a slicer driving a pivot table in the background OR you can use a form control to filter a pivot table in the background as well but you would likely use VBA with that.

    You will need to restructure your data from the table135 as it does not allow for a clean cut of what material is available for the door style.


    I created a quick example of the most simple way and post it and you can tell us if it would work for you.
    Note that I made a sheet called references and I made a named range for EACH of the lists. If you wanted you could make the named ranges automatically adjust if they get longer using offset and Counta and such but I didnt want to layer on too many neat things at once for you to potentially get confused.
    Attached Files Attached Files
    Last edited by mikeTRON; 05-06-2016 at 11:13 AM.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ 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] Data validation problem (double drop down list)
    By bilenberg in forum Excel General
    Replies: 13
    Last Post: 04-03-2016, 10:37 AM
  2. [SOLVED] Create Dynamic Validation List & Then Pull Related Data into Sheet
    By AlyKat in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-10-2015, 09:22 AM
  3. Duplicate, Dependent/Related/Interconnected Data Validation (Drop Down Lists)
    By dilbert1865 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2014, 10:51 AM
  4. [SOLVED] Dynamic data validation to determine the SUM related output?
    By SChalaev in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-11-2013, 02:15 AM
  5. Double data validation--same cell
    By brianjones00 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2013, 07:53 PM
  6. Double data Validation
    By dmanatee in forum Excel General
    Replies: 1
    Last Post: 04-20-2011, 09:26 PM
  7. Data Validation thru Double Input into Field
    By bitswit in forum Excel General
    Replies: 10
    Last Post: 01-09-2009, 08:20 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