+ Reply to Thread
Results 1 to 11 of 11

Cascading Validation Lists

  1. #1
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Cork, Ireland
    MS-Off Ver
    Excel 365
    Posts
    149

    Cascading Validation Lists

    Hi,

    I've attached a sample file which outlines roughly what I'm working with.

    I will have users filling out cells (e.g. on Input sheet) and want to cascade the drop-down lists based on selections made. The basis for these selections is on the LISTS sheet.

    So for Area, if they choose AREA1, then the Main Activity should only have 1,2,3,4,5 as available drop-down options and if they choose 1, then Secondary Task should only have A or B as options in that drop-down and finally Supervisor option should only be XX.

    My question is, is there any quick way to create these cascading drop-down lists from the structure I have currently in place on the LISTS sheet. Or am I going to have to rearrange the data on a separate sheet? I will have up to 40 'AREAS' with dependent selections.

    Any help greatly appreciated!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Cascading Validation Lists

    Take a look at the attached. It gives you what you want, and is based on having a range name for each "category", and then uses INDIRECT() inthe Dropdowns
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Cork, Ireland
    MS-Off Ver
    Excel 365
    Posts
    149

    Re: Cascading Validation Lists

    Hi Ford,

    Thanks for your reply.

    Yes, I'm aware of the method you've posted. However, it will mean a lot of work for me in arranging my data to work in that way. I guess I'm looking for a solution that won't require a lot of changes to my current LISTS sheet layout but I'm thinking it probably doesn't exist!

    Thanks Again.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Cascading Validation Lists

    If you want to use dependant data validation, thats thwe way you need to do it - some things have no shorgt cuts

    I did not look at your file until now, but using merged cells will cause problems for you later on with formulas

  5. #5
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Cork, Ireland
    MS-Off Ver
    Excel 365
    Posts
    149

    Re: Cascading Validation Lists

    Ford,

    Would you mind looking at the attached?

    I've started to lay out the 'plan' for how I'll approach the validation. I hope you can follow the logic! So on the LISTS sheet, I've set up the various Named Ranges and the INDIRECT formulae on the Input sheet.

    In this sample, I have 2 'Areas' but in reality there will be about 40 or 50. Really, I just want to make sure I'm on the right track before I go ahead with the bulk of the data.

    Thank You.

    CascadingListsEx.xlsx

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Cascading Validation Lists

    I have made a start as to how I would do this. Once you have all your data laid out as I have, a quick way to create the named ranges is to highlight the data, click Formula/Create for Selection/uncheck Left

    See the attached
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Cork, Ireland
    MS-Off Ver
    Excel 365
    Posts
    149

    Re: Cascading Validation Lists

    Wow, that's brilliant! So much more efficent. Brilliant trick Re quickly naming ranges, never knew it existed!

    Thank you so much.

    There's one more thing I'd like to ask.

    For the Supervisor, based on the sample data, the VLOOKUP works perfectly. However, there is one Area where there isn't one specific
    supervisor per Secondary Task. For this one area, the user has to be able to select from a list of possible supervisors. I've set up a
    new 'Area3' to simulate it. So for Area 3, if a user picks any Main Activity/Secondary Task combo, they will then select the Supervisor from the list of all available Supervisors in Area3.

    Is there any easy way to incorporate this?

    Thanks again for your help...
    Attached Files Attached Files

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Cascading Validation Lists

    I used the vlookup() to try and keep it simple, but I created new ranges on NewList for the supv, and added another DD in Input D7, see if this will help you?
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Cork, Ireland
    MS-Off Ver
    Excel 365
    Posts
    149

    Re: Cascading Validation Lists

    Ya, the VLOOKUP would have been perfect only for that one Area.

    I'm just going to have to go with the same approach for the Supervisor but it will be perfect.

    Thank you so much for your help. Your suggested approach will save so much in development and will be so much easier to update and explain to others!

    Many Thanks Again.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Cascading Validation Lists

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Cascading Validation Lists

    there is a way of creating the Data Validation lists by using a table if I can complete it, I will upload it. I thought that I was finished until I re-examined the supervisor.
    Attached Files Attached Files
    Last edited by newdoverman; 07-21-2014 at 03:00 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Replies: 2
    Last Post: 06-19-2014, 10:39 PM
  2. question about cascading drop down lists
    By teacher_rob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-13-2013, 01:39 PM
  3. Cascading down down lists
    By troygeri in forum Excel General
    Replies: 4
    Last Post: 06-07-2011, 10:46 PM
  4. Excel 2007 : Cascading Validation lists
    By ellsworth2000 in forum Excel General
    Replies: 7
    Last Post: 05-03-2011, 07:00 PM
  5. Cascading Dynamic Dropdown Lists
    By choop in forum Excel General
    Replies: 4
    Last Post: 06-14-2006, 12:30 PM

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