+ Reply to Thread
Results 1 to 5 of 5

Dependent Data Validation Drop Down Boxes linked to Dynamic Pivot Table

  1. #1
    Forum Contributor
    Join Date
    04-07-2020
    Location
    New Zealand
    MS-Off Ver
    365
    Posts
    219

    Dependent Data Validation Drop Down Boxes linked to Dynamic Pivot Table

    Hi There ,
    I have a work book sample attached and hope someone can provide some advice, I have been looking through many dynamic array's, dependent drop down boxes and also a few dynamic drop down boxes linked to pivot tables. The reason I went onto pivot tables is because it removes the duplicates and sorts the data easily.

    I created a table of Site names, regions and districts. Because there are various managers linked to several districts when the table is complete it created duplicated in a specific columns (as can be seen in column B and C) - therefore a created a pivot table

    On the Data_Validation_Sheet - I created a a pivot table with both the District and Site name in the Rows Filed area of the pivot table - this splits the information nicely and removes duplicated. I came across a formula to use (which i will not even mention here) because the formula works well if there was only one column rage to the pivot table.

    As can be seen in column B of the Data_Validation_Sheet the site names are sorted nicely grouped with the district it falls in.

    The problem is, when i point the data validation, lets say to range B5:B12 and i add site names, the data validation is not updated as the pivot table is refreshed

    is there a different way to approach this or is there a specific dynamic formula I can apply to expand and even decrease as i make changes to the Table and refresh the pivot tables

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Dependent Data Validation Drop Down Boxes linked to Dynamic Pivot Table

    Plant_List
    F3
    =SORT(UNIQUE(Central_PL[District]))

    Data Validation List
    D4
    =Plant_List!$E$3#

    E4
    =OFFSET(Plant_List!$A$2,MATCH(D4,Plant_List!$C$3:$C$31,),,COUNTIFS(Plant_List!$C$3:$C$31,D4))

  3. #3
    Forum Contributor
    Join Date
    04-07-2020
    Location
    New Zealand
    MS-Off Ver
    365
    Posts
    219

    Re: Dependent Data Validation Drop Down Boxes linked to Dynamic Pivot Table

    Thank you Bo Ry

    Just a question - I will have many of these ( about 4) of these different pivots -

    is it not possible to link the formula with the pivot table,

    also is the range you included in the formula dynamic, will it update auto if i add to the table - lets say more plants or more districts ?

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Dependent Data Validation Drop Down Boxes linked to Dynamic Pivot Table

    D4 is adjust by Table

    E4
    =OFFSET(Plant_List!$A$2,MATCH(D4,Plant_List!$C$3:$C$999,),,COUNTIFS(Plant_List!$C$3:$C$999,D4))

    For Pivot
    Adjust design to Tabular and repeat all items

    Create another Pivot for Unique District at J3

    DV for
    G4
    =OFFSET($J$4,,,COUNTA($J$4:$J$999))

    H4
    =OFFSET($B$3,MATCH(G4,$A$4:$A$999,),,COUNTIFS($A$4:$A$999,G4))

  5. #5
    Forum Contributor
    Join Date
    04-07-2020
    Location
    New Zealand
    MS-Off Ver
    365
    Posts
    219

    Re: Dependent Data Validation Drop Down Boxes linked to Dynamic Pivot Table

    Hi Bo Ry

    thank you for the info on post #4 I was playing around with that but also completed the entire table with pivot tables that filter through to explain the dependent drop down process flow

    I have set up the pivot table in such a way that it breaks up everything - I tried setting the formulas that you have provided up so that it works dynamically with the pivot table but I am unable to achieve that, would appreciate if you could could have a look at it My depended drop downs should work as below

    Select a Region
    Regional Heads linked to Region Selected
    Districts that fall under regional heads
    Sites that fall under districts
    Area manger mails that fall under districts
    Plant manager that fall under area mangers mail
    Plant manager mail that fall under Plant managers
    Attached Files Attached Files
    Last edited by Chris1976; 09-16-2020 at 09:21 AM.

+ 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. VBA for Dynamic Dependent Drop Down Data Validation Lists
    By benjhardie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2019, 03:32 AM
  2. [SOLVED] Multiple Dependent Data Validation drop down boxes
    By dawondr in forum Excel General
    Replies: 4
    Last Post: 01-23-2013, 10:00 AM
  3. Check boxes linked to Dynamic Pivot Table
    By cymon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-28-2007, 04:01 AM
  4. [SOLVED] dependent drop down boxes and dynamic ranges
    By philcud in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2005, 12:05 AM
  5. dependent drop down boxes and dynamic ranges
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 08:05 PM
  6. [SOLVED] dependent drop down boxes and dynamic ranges
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 11:05 AM
  7. dependent drop down boxes and dynamic ranges
    By philcud in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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