+ Reply to Thread
Results 1 to 12 of 12

Filtering and Dynamic Drop Down List

  1. #1
    Registered User
    Join Date
    09-16-2015
    Location
    Jacksonville, FL
    MS-Off Ver
    2010
    Posts
    12

    Filtering and Dynamic Drop Down List

    Hi,

    I am working on a project where I have a list of items that I would like to filter based on statistics of those item. Once filtered I would like to utilize a drop down on another sheet that would display just the filtered items from the original list. Additionally, if the list of items is not filtered I would like the drop down to list all items.

    I have attached a test file of what I am working on.

    Thanks in advance for your help guys.


    Sample.xlsx

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,934

    Re: Filtering and Dynamic Drop Down List

    Perhaps, something like this: http://blog.contextures.com/archives...-filter-macro/
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-16-2015
    Location
    Jacksonville, FL
    MS-Off Ver
    2010
    Posts
    12

    Re: Filtering and Dynamic Drop Down List

    I don't believe this will work as this requires me to use info from inside cells A3:A12 on the Position 1 sheet.
    Which prior to filtering I don't know what I want.

    The Position 1 sheet will have hundreds of items and approximately 100 stats, where you will chose a number of stats to filter by.
    The primary filter will be determining if a cell is blank or has a value.

    If you filter out blanks in column E and G on the Position 1 sheet you will generate a visible list of
    Item 3
    Item 5
    Item 6
    Item 8
    Item 10

    On the Testing sheet in the A6 drop down I would like to have just the filtered list visible
    Item 3
    Item 5
    Item 6
    Item 8
    Item 10

  4. #4
    Registered User
    Join Date
    09-16-2015
    Location
    Jacksonville, FL
    MS-Off Ver
    2010
    Posts
    12

    Re: Filtering and Dynamic Drop Down List

    If possible I am looking for a solution that does not use VBA or Macros.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Filtering and Dynamic Drop Down List

    See if this does what you envision.

    It was necessary to clean the Item #s list. There were repeating spaces. The COUNTIF in the self diminishing list won't work without that step.

    I worked this out in the Testing sheet. All the stuff is there.

    In Q3:Q12 I made a clean copy of the list in the Position 1 sheet of Item #s.

    In R3 I entered this array-entered formula and filled down to R12.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Then in Name Manager this Dynamic Named Range formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I named it Dyn_DropDown.

    Then select the cells you want drop downs in and enter that name in the Source: DV editor.

    I applied it to Testing A6:A17 and tested it. It shrinks and grows as I expected.

    Let us know if this does what you want.
    Attached Files Attached Files
    Dave

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Filtering and Dynamic Drop Down List

    NavyGator,

    RE: your PM. Try replacing that self-diminishing DV list formula with this array formula in R3 and filled down as far as needed.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will change the drop downs in Testing sheet by however Position 1 sheet is Autofiltered.

    WB is attached.
    Attached Files Attached Files

  7. #7
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Filtering and Dynamic Drop Down List


  8. #8
    Registered User
    Join Date
    09-16-2015
    Location
    Jacksonville, FL
    MS-Off Ver
    2010
    Posts
    12

    Re: Filtering and Dynamic Drop Down List

    Flame,

    That looks like what I am wanting. I am gonna see if I can get it incorporated in to my sheet tomorrow.

    Thanks for the assist.

    NG

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Filtering and Dynamic Drop Down List

    You bet. Thanks for the feedback.

    Please let us know how it does on live data.

  10. #10
    Registered User
    Join Date
    09-16-2015
    Location
    Jacksonville, FL
    MS-Off Ver
    2010
    Posts
    12

    Re: Filtering and Dynamic Drop Down List

    Fire,

    Seems to be working pretty good. I learned a bit with the array formulas. Thanks for the assist.

    I haven't looked at it yet but can i use variables instead of ranges of cells to make the formula easier to expand?

    NG

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Filtering and Dynamic Drop Down List

    can i use variables instead of ranges of cells to make the formula easier to expand?
    Certainly. I highly recommend using Name Manager for Dynamic Named Ranges and static ranges. Static ranges are much easier to edit than ranges in formulas.

    Thanks for the feedback.

  12. #12
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Filtering and Dynamic Drop Down List

    Here's some help on dynamic ranges http://www.utteraccess.com/wiki/inde...Dynamic_Ranges.

+ 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. Filtering pivot table on dynamic list
    By Nmarkit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2013, 11:11 AM
  2. Replies: 0
    Last Post: 04-15-2013, 09:22 AM
  3. [SOLVED] Dynamic Ranges as drop down lists based on another drop down list
    By Excel_Beginner_1 in forum Excel General
    Replies: 4
    Last Post: 05-15-2012, 03:31 PM
  4. Drop down list and filtering data
    By jcfz6r1 in forum Excel General
    Replies: 7
    Last Post: 01-16-2012, 02:25 PM
  5. Filtering Table from a drop-down list
    By qetuo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2011, 12:52 PM
  6. Filtering the drop down list
    By spiceant in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-23-2009, 04:12 PM
  7. drop down list + filtering
    By jermz in forum Excel General
    Replies: 7
    Last Post: 01-24-2009, 03:10 AM
  8. Filtering a Drop Down List
    By dch3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2006, 07:50 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