+ Reply to Thread
Results 1 to 7 of 7

Need to auto populate cells based on dropdown list choices

  1. #1
    Registered User
    Join Date
    07-24-2017
    Location
    Michigan
    MS-Off Ver
    2016
    Posts
    6

    Need to auto populate cells based on dropdown list choices

    I am working on a project where I'm looking at four cities and collecting data on 10 different traits within each city's area codes. On the attached doc, I'm trying to build a tool in Sheet 1 where I can select the city from a dropdown list (which I've done), select the accompanying area code in that city I'm interested in (which I've done), and then have Excel auto populate the traits associated with that city and area code. I know I need to use vlookup but am having trouble figuring out how to do so. Would appreciate any help!
    Attached Files Attached Files

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

    Re: Need to auto populate cells based on dropdown list choices

    kpritc welcome to the forum.

    Try this in C2 and fill across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit The range references for B, Cl, D aren't valid. So the area codes data validation only works for A.
    Last edited by FlameRetired; 07-25-2017 at 12:34 AM.
    Dave

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Need to auto populate cells based on dropdown list choices

    Perhaps something like this?
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Need to auto populate cells based on dropdown list choices

    Azumi is right, use "Name Manager".
    Assume you have a list of 4 cities and related Area codes.
    When you select a particular city, you want the next cell to show the area codes of that particular city.

    To get this.
    1. Name the list of Cities as "Cities"- Select the range and change the name in Name Box (where the cell reference shows-i.e.A1, B1, C6 etc.) or use Name manager.
    2. Do the data validation- List, in the source field, enter = and press F3, it will show you "Cities" - Enter.
    3. In the next cell - use data validation list and in the source field enter the formula =Indirect(A1) here A1 is the list of cities.
    Last edited by Shareez Saleem; 07-25-2017 at 03:38 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,600

    Re: Need to auto populate cells based on dropdown list choices

    Azumi - a reminder:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    07-24-2017
    Location
    Michigan
    MS-Off Ver
    2016
    Posts
    6

    Re: Need to auto populate cells based on dropdown list choices

    Thanks Shareez. I had the dropdown figured out already --- was just looking for advice on how to get data to autopopulate once I had chosen from my two dropdown lists!

  7. #7
    Registered User
    Join Date
    07-24-2017
    Location
    Michigan
    MS-Off Ver
    2016
    Posts
    6

    Re: Need to auto populate cells based on dropdown list choices

    Quote Originally Posted by azumi View Post
    Perhaps something like this?
    Thanks Azumi - this is super helpful! Didn't think to use INDEX. Maybe I'm missing something but when I plug it into my (very slightly) more complex master worksheet, I can't get the values to autopopulate - just keep getting N/A in the cell. It's probably a simple mistake but would you be able to see how the formula I'm using in the attached differs from the one that you provided above that worked?
    Attached Files Attached Files
    Last edited by kpritc; 07-27-2017 at 06:18 PM. Reason: More questions

+ 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: 8
    Last Post: 05-24-2017, 06:35 AM
  2. [SOLVED] Display a dropdown list or populate a cell with single value based on other cells' values
    By filla_dilla in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2014, 09:47 AM
  3. [SOLVED] Auto data entry based on dropdown choices
    By dkatorza in forum Excel General
    Replies: 3
    Last Post: 08-03-2014, 10:20 AM
  4. [SOLVED] Auto populate adjacent cells based on specific dropdown selection
    By ahtigers10 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-02-2014, 08:11 PM
  5. Trying to auto populate cells from drop down list choices
    By textexpress in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2013, 12:47 PM
  6. How to auto populate cells linked to drop down choices
    By camz1313 in forum Excel General
    Replies: 0
    Last Post: 11-06-2012, 06:43 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