+ Reply to Thread
Results 1 to 6 of 6

Vlookup to access data based on a drop-down list

  1. #1
    Registered User
    Join Date
    07-29-2007
    Posts
    8

    Vlookup to access data based on a drop-down list

    ok, i have been looking around here and it seems like my problem is similar to many's regarding the vlookup function.

    to me, what i'm trying to do sounds simple enough, but it can't get it to work.

    i have a table that has three columns,
    Item Number, Item Description, and Amount.

    Each item has it's own number, a corresponding item description, and ammount (obviously), but there are some repeats.

    What I want to do it input the Item Description, and have one field automatically pull up the Item number, and the next field, pull up the price.

    I am using a drop-down list for the Item Descriptions utilizing data validation. here is formula that i have been trying to use that is not working:

    =VLOOKUP(B2,Sheet1!$A$2:$C$18,1,FALSE)


    i have attached a trial worksheet that i am using to work things out on. Any ideas?
    Attached Files Attached Files
    Last edited by Fuzzdawg; 11-14-2008 at 06:56 PM. Reason: SOLVED!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Please take a few minutes to read the Forum Rules about thread titles, and then edit yours to make it descriptive of your problem.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324
    When using the Vlookup function, the value being looked up has to be in the first column of the table. I have made some changes to your table and put the correct formulas in sheet 2 to help you out.

    Hope this helps!
    Clayton
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-29-2007
    Posts
    8
    Is that all!?!?! i mean, holy moly, i worked on that for hours!!!!

    thanks it works great.


    can i ask one more simple question?

    when i have a drop-down list, is it possible to have the option of allowing a user to either chose from the drop-down list or input their own data?

    i currently use data> validation> allow> List (with in-cell drop-down) for my drop-down lists.

    if someone can help me wrap this up then i will mark this thread solved.

  5. #5
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324
    Yep that is all it took. To allow users to type in their entries, un-check the box that turns on an error message if invalid data is entered on the "Error Alert" tab of the Data Validation dialog box.

  6. #6
    Registered User
    Join Date
    07-29-2007
    Posts
    8
    thanks again!

+ 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