+ Reply to Thread
Results 1 to 4 of 4

Data Validation List (Subset)

  1. #1
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Data Validation List (Subset)

    This is driving me mad, please can somebody help me as I have not been able to find any answers to this problem.

    I have created a duty sheet which tells me which employees are working at any given hour of the day.

    The sheet makes use of an employee list and a vlookup to populate their names. This employee list contains both workers and supervisors.

    I am trying to find a way of using this employee list, but the supervisors only in a data validation list, for when leave, etc is authorised.

    I know that a simple way is to put the supervisors in another column and name it, but this means that I have to maintain both lists and I’m lazy. So using the simple table below as an example, I want to create a validation list containing employees B and C only.


    Employee Role
    A worker
    B supervisor
    C supervisor
    D worker

    Thank you.
    Last edited by AlexRoberts; 11-15-2010 at 04:44 AM.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Data Validation List (Subset)

    AlexRoberts,

    Try:

    Dependent validation lists. Debra has a neat little tutorial here.
    http://www.contextures.com/xlDataVal02.html

    Data Validation > Drop-Down Lists - Dependent
    http://www.bettersolutions.com/excel...E229212022.htm

    Cascading queries
    http://www.tushar-mehta.com/excel/ne...ing_dropdowns/

    http://www.contextures.com/xlDataVal05.html

    Excel Data Validation - Add New Items
    http://www.contextures.com/excel-dat...ation-add.html
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  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: Data Validation List (Subset)

    Here's a workbook showing how i do the very thing you're trying to do.

    Two-column data base of supervisors and employees. Be sure to sort by the supervisor so it puts all the rows together by supervisor, sorted ascending. This allows the dynamic "range" formula to see where the range of employees for each supervisor starts and ends.

    Then a dynamic DV formula grabs all the employees and displays them based on the supervisor already selected.
    Attached Files Attached Files
    _________________
    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!)

  4. #4
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Data Validation List (Subset)

    Jerry,

    Thank you for your response and the Dynamic Data Validation example.

    I must not have explained myself properly because what I wanted to achieve was actually eliminating blank cells from list and have found the answer at the following site http://www.cpearson.com/excel/noblanks.htm.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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