+ Reply to Thread
Results 1 to 3 of 3

Sub lists within data validation

Hybrid View

  1. #1
    Registered User
    Join Date
    01-11-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003
    Posts
    30

    Sub lists within data validation

    I am wandering if it is posible to create a secondary list within a data validation dropdown box.

    For example. I want to be able to open the drop down box and then see a list of departments (Sales, Admin, HR etc.) then from here if I hover over sales I would like a list of all the Sales team or the admin staff. Does anybody know if this is posible.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sub lists within data validation

    In the same cell, not without some fancy VBA programming. But this is done pretty regularly with successive drop down lists next to each other.

    'DEPENDENT DROP BOXES
    These are called Dependent Drop Down lists and they use named ranges and INDIRECT() references in the proceeding drop boxes.

    Here's a sample sheet I've posted showing how it's done. The sheet "CHOICES" has the dependent drop lists (and shows one of the dangers of using them) and the sheet "LISTS" shows the lists and named ranges in use.

    Have a look.

    Sample Files
    http://www.excelforum.com/attachment...dentlists3.xls 3 levels
    http://www.excelforum.com/attachment...dentlists2.xls 2 levels
    http://www.excelforum.com/attachment...elfsorting.xls Self-Sorting lists of fruits by color choices

    More reading:
    http://www.contextures.com/xlDataval02.html
    http://www.contextures.com/xlDataVal13.html
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sub lists within data validation

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].

+ 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