+ Reply to Thread
Results 1 to 4 of 4

Need Drop down selection that causes more than one cell to change

  1. #1
    Registered User
    Join Date
    07-26-2009
    Location
    egypt
    MS-Off Ver
    Excel 2003
    Posts
    2

    Need Drop down selection that causes more than one cell to change

    I need to edit a database file using an excel sheet. So I have for example 3 fields in the database. The first field is the primary key which is a unique number) and the other filed is called Name and third field is called Address .

    My drop down menu should contain the list of all primary keys that are in the database. When i select any number then I should be able to see the Number and Address in the cells next to this drop down menu. Is this possible? Can anyone please help. THANKS!!

    AMZ

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need Drop down selection that causes more than one cell to change

    In cell 1 (A1?) create a Data Validation drop box. If the data is on another sheet, create a named range of all the primary keys, then use that name in the validation list.

    To get the matching Name (B1?) to appear and the matching address (C1?), a simple VLOOKUP should work at that point.

    You can read up on

    1) Name Ranges
    2) Data Validation Drop Box
    3) VLOOKUP

    by pressing F1 in Excel.

    If it's too much, then post a sample workbook showing the sample data and your desired results, point out where the results came from if not obvious in your sample data.

    Then click GO ADVANCED and use the paperclip icon to post up your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-26-2009
    Location
    egypt
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re:SOLVED Need Drop down selection that causes more than one cell to change

    Thanks for your post. Data Validation and VLOOKUP did the trick!

    Thanks again.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Need Drop down selection that causes more than one cell to change

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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