+ Reply to Thread
Results 1 to 12 of 12

Dependant drop downs filtering in three stages, department, employment type and finally em

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    crewe, england
    MS-Off Ver
    2013
    Posts
    36

    Dependant drop downs filtering in three stages, department, employment type and finally em

    Dear all,

    I am trying to input data from a manual job card for a range of employee’s that will allow me to pivot the data and put out meaning full analysis. I attach a sample file to show what I'm trying to do.

    I have three departments GI, RP and FLT
    I have four employment types F/T, P/T, S-P/T and agency
    All employee’s sit within one department but there employment type varies.

    I was able to do a drop down for employment type and a dependant drop down for employees when the department wasn’t a factor; however I have tried to follow examples but to no avail when trying to filter the data in the sequence:

    By department, then by employment type and to select from only those employee’s dependant on the choices made previously.

    I thought using a table would make the solution dynamic when employees are either added or deleted?

    Can anyone help?
    Many thanks
    Mark
    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
    53,049

    Re: Dependant drop downs filtering in three stages, department, employment type and finall

    Where are you using these DD's and can you give a few sample answers?
    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
    Registered User
    Join Date
    07-04-2012
    Location
    crewe, england
    MS-Off Ver
    2013
    Posts
    36

    Re: Dependant drop downs filtering in three stages, department, employment type and finall

    Hi FDibbins

    I hope this is what you were looking for in your question

    A4 is where I want to filter the department, which I haven’t setup as all the playing around I have done has achieve zero

    Cell A9 is a dropdown for Employment type and has formula =HoursList
    The dependant drop down is in A13 = Indirect($A9$) which bring up the list of empoyees that have work the selected employment type e.g. Full Time

    On the worksheet Lists in N1:P45 I have list of department code, they the Hours and then the employee.

    An example of what I am trying to achieve as an output is

    Dropdown in A4 selects GI
    Drop down in A9 select S-PT as the employment type
    Which then shows in A13 Karen Hall

    Or A4 selects RP
    A9 selects S-PT
    A13 drop down shows either Lindsey Fitzpatrick or KirstyWales as options



    Mark

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,750

    Re: Dependant drop downs filtering in three stages, department, employment type and finall

    An example of what I am trying to achieve as an output is

    Dropdown in A4 selects GI
    Drop down in A9 select S-PT as the employment type
    Which then shows in A13 Karen Hall

    Or A4 selects RP
    A9 selects S-PT
    A13 drop down shows either Lindsey Fitzpatrick or KirstyWales as options
    I took a "stab" at this one. All I have are some observations I'll pass along.

    I thought I had this part solved (in the quote). I got the drop-down in A13 to behave as you described but when I selected

    Agency in A9 and GI in A4 the list populated with both Emmanuel Arseno and Tom Stone. It did the same thing

    when I selected RP in A4. They don't both work GI and RP. The part I thought I had solved stopped working, too.

    I investigated and observed that in Table1 Emmanuel Arseno is listed as both Agency and PartTime. However in

    Table4 Emmanuel Arseno is only listed as AGENCY and not PartTime. (Table4 looked like a good reference for building

    the selective list you described.) I observed some other anomalies as well but I didn't recognize their significance if any.

    I don't know exactly what to suggest. I am reluctant to make any "adjustments" in Name Manager or your Data Validation defs.

    There is too much in your Tables and definitions and how they interact that I don't understand.

    Sorry I couldn't help but perhaps this will give you a place to start.
    Last edited by FlameRetired; 02-05-2015 at 12:22 AM.

  5. #5
    Registered User
    Join Date
    07-16-2012
    Location
    Newcastle upon Tyne
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Dependant drop downs filtering in three stages, department, employment type and finall

    Hi Mark,

    I've created a new table (calculated), and changed a couple of your named formula. Results here:
    Attached Files Attached Files
    Steve D. a.k.a. Stephen Dunn

  6. #6
    Registered User
    Join Date
    07-04-2012
    Location
    crewe, england
    MS-Off Ver
    2013
    Posts
    36

    Re: Dependant drop downs filtering in three stages, department, employment type and finall

    Hi FlameRetired

    Apologises for leaving the defined names and Tables created in a mess, you are right I had moved to Table as the way to solve problem. Many thanks for trying to look at my issue and points raised are valuable in ensuring I prepare future requests and workbooks to make it clearer

    Many Thanks
    Mark

  7. #7
    Registered User
    Join Date
    07-04-2012
    Location
    crewe, england
    MS-Off Ver
    2013
    Posts
    36

    Re: Dependant drop downs filtering in three stages, department, employment type and finall

    Quote Originally Posted by stunn View Post
    Hi Mark,

    I've created a new table (calculated), and changed a couple of your named formula. Results here:
    Steve,

    Many thanks for wading through my clutter and understanding perfectly what I was trying to do. The formula for the new table (calculated) is brilliant and what I wanted but didn't know how to go about it, had spent hours trying to find a worked example that I could adapt in vain. I have cleared up the mess I made in the Name Manager. Just a cheeky ask; on the InputForm cell A13 is it possible show only the names available based on the choices in A4 & 9 and supress the "-" that appear from the calculated table?

    Once again many thanks for great solution.

    Regards
    Mark:)

  8. #8
    Registered User
    Join Date
    07-16-2012
    Location
    Newcastle upon Tyne
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Dependant drop downs filtering in three stages, department, employment type and finall

    Hi Mark,

    You're welcome, thanks for the feedback.
    To supress the '-' change the 'Operative' named formula to:

    =index(Table5[Operative],1):index(Table5[Operative],countif(Table5[Operative],"<>-"))

  9. #9
    Registered User
    Join Date
    07-04-2012
    Location
    crewe, england
    MS-Off Ver
    2013
    Posts
    36

    Re: Dependant drop downs filtering in three stages, department, employment type and finall

    Quote Originally Posted by stunn View Post
    Hi Mark,

    You're welcome, thanks for the feedback.
    To supress the '-' change the 'Operative' named formula to:

    =index(Table5[Operative],1):index(Table5[Operative],countif(Table5[Operative],"<>-"))
    Hi Steve,

    I couldn't get it to work, when replaced formula, is there something I am missing? I take it it worked for you?

    Cheers
    Mark

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,750

    Re: Dependant drop downs filtering in three stages, department, employment type and finall

    Quote Originally Posted by Hirad001 View Post
    Hi Steve,

    I couldn't get it to work, when replaced formula, is there something I am missing? I take it it worked for you?

    Cheers
    Mark
    Mark,

    I took a different approach. My drop-downs now work. I made a separate non-table list (columns R:T in 'Lists') to work out the drop down. The dynamic named range in Name Manager "PersonnelAvailable" will take care of the "-"s and it eliminates the large number of blank spaces in the drop downs when the lists are short. Like Steve I changed the P/T F/T etc to PartTime FullTime etc as they appear in A9 drop-down.

    The formula that generates the list is an array formula that does not have to be array entered. Just commit with Enter and fill down. In X1 of 'Lists'
    this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I filled down to row 52 to accommodate additions.

    The formula for the DNR "PersonnelAvailable" is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The file is attached. Let us know how it does.

  11. #11
    Registered User
    Join Date
    07-04-2012
    Location
    crewe, england
    MS-Off Ver
    2013
    Posts
    36

    Thumbs up Re: Dependant drop downs filtering in three stages, department, employment type and finall

    Hi FlameRetired,

    Sorry for the slow reply, just life getting in the way. What a fantastic solution and totally solves "-" from Steve's solution and elimination of blanks to keep drop downs clean. I did play around as I was hoping to keep using tables as additional personnel would be included automatically therefore modified your formula to this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Once again thank you for your assistance and coming back to my thread especially after the clutter in my uploaded file.

    Cheers Mark
    Last edited by Hirad001; 02-14-2015 at 11:16 AM.

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,750

    Re: Dependant drop downs filtering in three stages, department, employment type and finall

    You're welcome....glad it works and thanks for the rep.

+ 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] Dynamic dependant VBA drop downs
    By questionguy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-10-2012, 04:20 PM
  2. Multiple drop dependant drop downs in single cell
    By LittleJerry in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2012, 02:21 PM
  3. Replies: 2
    Last Post: 07-10-2012, 05:17 AM
  4. Multiple dependant drop downs
    By paconovellino in forum Excel General
    Replies: 11
    Last Post: 05-02-2012, 05:05 PM
  5. Help with dependant drop downs
    By shannonvhm in forum Excel General
    Replies: 4
    Last Post: 09-28-2010, 11:58 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