+ Reply to Thread
Results 1 to 5 of 5

Questions about Drop Downs and Tables

  1. #1
    Registered User
    Join Date
    01-04-2018
    Location
    West Midlands
    MS-Off Ver
    Microsoft Office Professional 2010
    Posts
    14

    Questions about Drop Downs and Tables

    Hi,

    I want to create a drop down table that pulls in information from a database on a different worksheet. It's been a LONG time since I last did it, so I have been looking online about how to do it. One thing the instructions mentioned was about making sure the data was in an Excel Table (article in question is here: https://support.office.com/en-gb/art...rs=en-GB&ad=GB). I'd not come across this before, so I was wondering if I should do this first. My database will hopefully be growing over time, and what I don't want to have to do is keep on changing the size of the range each time I add a new line to the table.

    I've attached a workbook showing the sort of thing I'd like to do. I want to be able to call up a name and automatically pull in their age and height. What would be brilliant is if there was a way to automatically expand the range of the cells called for whenever I add a new line. Can anyone help, please?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Questions about Drop Downs and Tables

    Convert your data to a Structured Table (by default, it will be Table1)

    Data Validation:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Lookup:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied across
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-04-2018
    Location
    West Midlands
    MS-Off Ver
    Microsoft Office Professional 2010
    Posts
    14

    Re: Questions about Drop Downs and Tables

    Thanks for that, but I am having trouble getting it to work. I have tried copying and pasting the formulas, but I'm not getting a drop down list out of it.

    I did try something else, and managed to use Data Validation to call up the list of names, and I think it is the command VLOOKUP I need to use to call up the rest of the table. However, I can't get that to work.

  4. #4
    Registered User
    Join Date
    01-04-2018
    Location
    West Midlands
    MS-Off Ver
    Microsoft Office Professional 2010
    Posts
    14

    Re: Questions about Drop Downs and Tables

    Got it!

    I use Data Validation to do call up the names. If I make the list far longer than the names, I can keep on adding to the database and the drop down box will keep on calling it up. In this instance, I did the range from A2:A30.

    For retrieving the data, I use VLOOKUP. For example, in Cell D4, I put:

    =VLOOKUP(C4;Database!A2:C30;2;FALSE)

    Yay!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Questions about Drop Downs and Tables

    That was why I suggested adding a Structured Table. You don't need to make it "longer".

    See the attached example.
    Attached Files Attached Files

+ 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. Initial default drop downs and dependent default drop downs
    By hudsone777 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-07-2016, 07:05 PM
  2. [SOLVED] Drop Downs conditional on drop downs
    By BillTD in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2015, 09:40 AM
  3. Macro to populate the tables from Pivots, when values are selected from drop downs.
    By pavan5183 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2013, 10:42 AM
  4. Drop Downs & Tables
    By mojobaabby in forum Excel General
    Replies: 2
    Last Post: 09-04-2010, 11:35 AM
  5. Use Drop Downs to Populate Other Drop Downs
    By fbombs in forum Excel General
    Replies: 2
    Last Post: 09-23-2009, 03:17 PM
  6. Using Pivot Tables and Drop downs
    By nayannilank in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-30-2009, 06:09 AM
  7. 3 questions: drop downs and comments
    By Wayne Knazek in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2006, 09:45 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