+ Reply to Thread
Results 1 to 7 of 7

auto populate cell when selected drop down item chosen

  1. #1
    Registered User
    Join Date
    06-12-2010
    Location
    hull
    MS-Off Ver
    Excel 2003
    Posts
    8

    auto populate cell when selected drop down item chosen

    ive got setup, an excel spreadsheet using a few sheets in the first sheet i have a list of products and prices, and in the sheet 2 i have the product in a drop down from sheet1. i was wondering if there was a way i could auto populate the cell near the item for when a product is chosen the cell beside would bring up price of the item.

    Thanks For your help

    Josh
    Last edited by palmer19; 06-13-2010 at 10:49 AM.

  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: auto populate cell when selected drop down item chosen

    I use INDEX/MATCH for this, but you can also use VLOOKUP() or LOOKUP() based on some other restrictions about the layout of the table you're searching. INDEX/MATCH has none of those restrictions.

    Here's some sample sheets showing what I think you're looking to do.

    INDEX/MATCH Examples

    Check the first file in that listing, the OneRow sheet.
    Check the second file in that listing, the Main sheet.

    INDEX/MATCH explanation
    http://www.excelforum.com/excel-gene...ame-row.html#3
    _________________
    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
    06-12-2010
    Location
    hull
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: auto populate cell when selected drop down item chosen

    that i don't think is what im after or if it is it don't work.

    in sheet one i have a list of products (food items with prices)
    in sheet two there is going to be a recipe thing to work out prices to make each item. and in sheet two to make it easier i have entered all the products into a drop down list that reads from sheet one and displays in the drop down on sheet two. And what i am after is say they choose cheese it would look at sheet one automatically and populate the cell near the drop down box with the given price if some one could possibly help by writing me out the data that would be great i have

    the product list in colum A on sheet 1 with the prices on F
    on sheet 2 i have the drop down box on a1 and would like the price to appear in b1 when the item is selected

    thanks

  4. #4
    Registered User
    Join Date
    06-12-2010
    Location
    hull
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: auto populate cell when selected drop down item chosen

    heres the file for some help if it makes it easier
    Attached Files Attached Files

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

    Re: auto populate cell when selected drop down item chosen

    This is exactly what I showed. The Main sheet in the second file from the list I gave you demonstrates this exactly.

    I added another named range called FoodTable covering your entire database and then used a standard VLOOKUP() formula. Read up on VLOOKUP() so you can fully understand each of the settings.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-12-2010
    Location
    hull
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: auto populate cell when selected drop down item chosen

    Quote Originally Posted by JBeaucaire View Post
    This is exactly what I showed. The Main sheet in the second file from the list I gave you demonstrates this exactly.

    I added another named range called FoodTable covering your entire database and then used a standard VLOOKUP() formula. Read up on VLOOKUP() so you can fully understand each of the settings.
    Thanks For That JBeaucaire Worked Perfectly

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

    Re: auto populate cell when selected drop down item chosen

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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