+ Reply to Thread
Results 1 to 4 of 4

Need help to make a dynamic drop down list, that extracts the values with criteria.

  1. #1
    Registered User
    Join Date
    05-20-2017
    Location
    athens
    MS-Off Ver
    2010
    Posts
    5

    Need help to make a dynamic drop down list, that extracts the values with criteria.

    I have a range of thousands of data with many attributes(columns). I use a single row per item. Now what i wanna do, is to allow the user to pick one of those items(choosing by name) in another sheet. But because they are too many i want to let him "filter" them first by choosing a category from a drop down list.

    I cant convert that range into a table, and i tried sorting all that data into some other columns and defining those columns-names and with INDIRECT make the second list show the defined name that the first has chosen. But because there are about 10.000 items with more than 45 attributes this gets my excel sheet extremely slow.

    So i want to extract those items directly from the range if able. Or to use another less "heavy" way.


    Heres a small example of what i am trying to do. I have an array with data :
    Screenshot_2.png

    Now i will extract the "categories"(DOG,CAT, HORSE) into some other sheet. i will define them dynamically into a name. (i want from the user to add any category he likes later into the hidden data-sheet with a VBA that inserts a row )

    And then in another sheet i will make a drop-down list with the categories and i want from the cell next to that to show a drop down list with the pets name from the category that i just chose. In fact in that sheet there will be several of those double drop down lists one directly below the other.

    Thank you all !
    Last edited by feronimus; 06-29-2017 at 12:20 PM.

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

    Re: Need help to make a dynamic drop down list, that extracts the values with criteria.

    What you want is known as a cascading drop down list. You can do a web search on the term and get plenty of examples.

    If the data is such that an item is unique to a category, that is, dog only shows up in category animal and not in category plant, then there is a non-vba method.

    If not there is a VB method that works for all category-items parings.

    Here are the articles that describe each method.
    http://www.utteraccess.com/wiki/Casc..._%28Non-VBA%29
    http://www.utteraccess.com/wiki/Casc...ists_%28VBA%29
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    05-20-2017
    Location
    athens
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help to make a dynamic drop down list, that extracts the values with criteria.

    Quote Originally Posted by dflak View Post
    What you want is known as a cascading drop down list. You can do a web search on the term and get plenty of examples.

    If the data is such that an item is unique to a category, that is, dog only shows up in category animal and not in category plant, then there is a non-vba method.

    If not there is a VB method that works for all category-items parings.

    Here are the articles that describe each method.
    http://www.utteraccess.com/wiki/Casc..._%28Non-VBA%29
    http://www.utteraccess.com/wiki/Casc...ists_%28VBA%29


    Thank you very much for answering! But unfortunately neither of those solutions can work. You see in order to use a cascading drop down list you need to have the defined names of the items that the category has. AND thats exacly what i am looking for. I want to make a dynamic way of defining a name for the categorys. I cant use neither of the pivot table ones becouse they cant be dynamic. I cant add items and i cant add categorys at will.

    I have to table , just a bunch of data about foods. Every food name is unique . And every food name has only 1 category. I ad foods with a macro that fills the last (empty) row of the matrix. I wanna know if i can define the range (what it contains) of a name dynamically, so that i can use a cascade list.

    heres a pic hope it helps
    Screenshot_3.png

  4. #4
    Registered User
    Join Date
    05-20-2017
    Location
    athens
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help to make a dynamic drop down list, that extracts the values with criteria.

    I actually found another way ! THank you !
    Last edited by feronimus; 06-29-2017 at 04:23 PM.

+ 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] listing array values in a dynamic list based on 2 criteria from ranges
    By lkeltner in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-14-2016, 01:45 PM
  2. Dynamic drop down list, based on a criteria
    By marcinpec in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2014, 11:00 AM
  3. [SOLVED] Show data with month criteria drop list (dynamic)
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-16-2014, 12:54 PM
  4. Can I make a drop down list to choose formats not values?
    By AhmedIsmail759 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 04:35 AM
  5. [SOLVED] Trying to make multiple dependent drop down list with dynamic ranges
    By Gwen@YouWantWhat? in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-01-2012, 12:55 AM
  6. create a dynamic drop down list based on specific criteria
    By stevegrobertson in forum Excel General
    Replies: 4
    Last Post: 02-21-2012, 08:07 PM
  7. Dynamic Drop Down List...with Criteria
    By TimE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2008, 11:43 AM

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