+ Reply to Thread
Results 1 to 7 of 7

Using drop down lists to retrieve group of cells

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    4

    Using drop down lists to retrieve group of cells

    I am not sure if this is the proper place to ask or if I will be able to explain it enough. I am trying to use 2 different criteria both from a separate drop down list and return a specific group of cells. For instance the first drop down would be a list of counties then the second would be a list of cities within that county. I have another tab listing all the counties and within that group of cells the cities then 5 or 6 numbers for each city. I would like the user to be able to choose a county from the first drop down then choose an appropriate city from the second drop down and have it return only the line of numbers for that city displaying it just underneath the user input instead of them having to scroll thru the entire list on the second tab. I can make the drop down lists and feel there should be some way to do this but don't know what function to turn to.

    Thanks
    Randy
    Attached Files Attached Files
    Last edited by randyg1999; 10-01-2014 at 01:16 PM.

  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
    52,938

    Re: Using drop down lists to retrieve group of cells

    Hi, welcome to the forum

    There are a few different ways of doing this, but it would help if you could upload a small (clean) sample of what you are working with, and what your expected outcome would look like.
    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
    03-26-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Using drop down lists to retrieve group of cells

    Ok, I believe I was able to upload a very small example. If the user picks a county and then a city from the drop downs he would in theory get the colored line with numbers to populate below his choices from the list on the left.

  4. #4
    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
    52,938

    Re: Using drop down lists to retrieve group of cells

    Yup, got the file thanks.

    I understand that this is a dummy file, but this will give youy what you want...
    =INDEX(C$1:C$15,MATCH($K$13,$A$1:$A$15,0)+MATCH($K$14,$B$1:$B$5,0)-1)

    However, it is based on all counties having the same number of Cities

  5. #5
    Registered User
    Join Date
    03-26-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Using drop down lists to retrieve group of cells

    I do think this is exactly what I was looking for! Thanks so much.

    Randy

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using drop down lists to retrieve group of cells

    Here is a possibility (amongst many) that might satisfy you. If you require more countries, add a column to the countries table. Cities for added countries would be added following the example of how the cities are arranged for each country in the example.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Registered User
    Join Date
    03-26-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Using drop down lists to retrieve group of cells

    Thank you, its always good to know different ways to do things. I will try both solutions.

    Thanks
    Randy

+ 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. Replies: 3
    Last Post: 01-31-2013, 06:22 PM
  2. drop down lists referencing tables creating other drop down lists!!
    By Stumped- in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-07-2009, 11:29 AM
  3. Drop Down Lists Within Specific Cells?
    By IanD in forum Excel General
    Replies: 3
    Last Post: 05-16-2008, 12:25 PM
  4. [SOLVED] Copying Cells with Drop Down Lists
    By Debby Bunce in forum Excel General
    Replies: 2
    Last Post: 08-20-2006, 07:25 PM
  5. [SOLVED] Copying Cells with Drop Down Lists
    By Debby Bunce in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2006, 07:20 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