+ Reply to Thread
Results 1 to 5 of 5

Auto fill from data base drop down list

  1. #1
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Auto fill from data base drop down list

    Hi Does anyone know how to create a data base where products has got their own specifications so if I choose product A from drop down list it will auto fill cells with product specifications below I have been trying to resolve this issue for a while now and I think I need to use VBA to get it right.
    Thanks Dan

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Auto fill from data base drop down list

    Hello Dan,

    this can be done with lookup formulas, for example Vlookup or Index/Match.

    You will need a reference table that lists the product specifications for each product. The lookup formula will need to refer to that table.

    Attached, please find an example with two sheets. The Product sheet lists products and their properties. In the "Pick and choose" sheet, you can select a product and the properties will be populated by an Index/Match formula.

    Depending on how your data is laid out, a suitable solution for your situation may differ.

    If you need help with your specific data layout, you need to upload a file that represents that.

    cheers,
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Auto fill from data base drop down list

    Thanks a lot this is what I was looking for....

  4. #4
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Auto fill from data base drop down list

    Hi Looks like I need more help from you as I am the beginner in excel compare to other users and your self... I have attached an example of what I trying to achieve.

    PLEASE HELP ME!!
    Attached Files Attached Files

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Auto fill from data base drop down list

    Hello,

    I needed to take a few guesses, since the "prod specifications" sheet does not have any column headings to identify what column has what value.

    I created a data validation for the layout sheet, cell B4, with the list of products in column A of the "prod specifications" sheet.

    Then I used a VLookup formula to find the contents of the product that matches the value in B4 of the layout sheet:

    =VLOOKUP($B$4,'prod specifications'!$A$3:$Q$8,COLUMN(B1),FALSE)

    copied across.

    The parameter COLUMN(B1) will change to C1, D1, E1, etc, when copied across, to return the number 2, 3, 4 etc. to specify the column number of the lookup table to return for a match.

    Read up about Vlookup in the Excel help to understand how it works.

    cheers,
    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)

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