Results 1 to 11 of 11

4 Levels of Dependent Drop Down Boxes

Threaded View

  1. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: 4 Levels of Dependent Drop Down Boxes

    Okay, you will need to alphabetize your list for this to work.
    Select A1:D26 > Custom Sort
    by Business, then Add a level, by Division, Add a level, by Department

    In F2 copied down, this ARRAYED Formula

    =IFERROR(INDEX($A$2:$A$26,SMALL(IF(COUNTIF($F$1:F1,$A$2:$A$26)=0, ROW($A$2:$A$26)-1), ROWS($A$1:$A1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Then in Name Manager (Formula tab),

    DivA =INDEX(Sheet1!$B$2:$B$26, MATCH(Test!$A$2, Sheet1!$A$2:$A$26,0)): INDEX(Sheet1!$B$2:$B$26, MATCH(Test!$A$2, Sheet1!$A$2:$A$26))=INDEX(Sheet1!$B$2:$B$26, MATCH(Test!$A$2, Sheet1!$A$2:$A$26,0)): INDEX(Sheet1!$B$2:$B$26, MATCH(Test!$A$2, Sheet1!$A$2:$A$26)

    This formula pulls the range of cells relevant to the business chosen in sheet "Test"

    Then in G2 copied down, this Arrayed formula

    =IFERROR(INDEX(DivA,SMALL(IF(COUNTIF($G$1:G1,DivA)=0, ROW(DivA)-INDEX(ROW(DivA),1)+1), 1)),"")

    Then back in Name Manager,

    DepartA =INDEX(Sheet1!$C$2:$C$26, MATCH(Test!$A$4, DivA,0)+INDEX(ROW(DivA),1)-2):INDEX(Sheet1!$C$2:$C$26, MATCH(Test!$A$4, DivA)+INDEX(ROW(DivA),1)-2)

    this pulls the range dependent on what Division was picked in sheet "Test"

    Then H2 copied down, this ARRAYED Formula

    =IFERROR(INDEX(DepartA,SMALL(IF(COUNTIF($H$1:H1,DepartA)=0, ROW(DepartA)-INDEX(ROW(DepartA),1)+1), 1)),"")

    Then in Name Manager

    Group =INDEX(Sheet1!$D$2:$D$26, MATCH(Test!$A$6, DepartA,0)+INDEX(ROW(DepartA),1)-2):INDEX(Sheet1!$D$2:$D$26, MATCH(Test!$A$6, DepartA)+INDEX(ROW(DepartA),1)-2)

    Then in I2 copied down, this (not arrayed) formula

    =IFERROR(INDEX(Group,ROWS($A$1:$A1)),"")

    Lastly, for purposes of using data validation and dropdown menus, in the name manager

    Business = Sheet1!$F$2:INDEX(Sheet1!$F$2:$F$21, SUMPRODUCT(--(LEN(Sheet1!$F$2:$F$21)>0)))
    Division =Sheet1!$G$2:INDEX(Sheet1!$G$2:$G$21, SUMPRODUCT(--(LEN(Sheet1!$G$2:$G$21)>0)))
    Department =Sheet1!$H$2:INDEX(Sheet1!$H$2:$H$21, SUMPRODUCT(--(LEN(Sheet1!$H$2:$H$21)>0)))

    See attachment
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 8
    Last Post: 02-12-2014, 05:16 PM
  2. Replies: 3
    Last Post: 07-21-2013, 07:20 PM
  3. 3-Tier Dependent Drop Boxes
    By bradweiss in forum Excel General
    Replies: 0
    Last Post: 01-21-2013, 01:41 PM
  4. Need help with Dependent drop down boxes
    By legalsec0331 in forum Excel General
    Replies: 12
    Last Post: 05-26-2012, 03:45 AM
  5. Dependent Drop Down Boxes
    By XL challenged in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2009, 05:32 PM
  6. Multiple dependent drop down boxes
    By Don in forum Excel General
    Replies: 1
    Last Post: 06-22-2006, 02:40 PM
  7. [SOLVED] dependent drop down boxes and dynamic ranges
    By philcud in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  8. [SOLVED] dependent drop down boxes and dynamic ranges
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 08:05 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