+ Reply to Thread
Results 1 to 2 of 2

Data validation and an entry displayed

  1. #1
    Registered User
    Join Date
    06-10-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    1

    Data validation and an entry displayed

    Hi all,

    Ok I'm pretty new to VB in Excel. I currently have Excel 2003 (I know thats well old).

    Right my question is how can I get an value to be automatically inserted into a coloumn after I select an entry froma data validation drop down options?

    Let me clarify it further. Suppose I have created a data validation menu for a range of cells, say the menu consists of the following:

    Apple
    Banana
    Pear
    Orange

    ...and say that each fruit has a specific quantity, for example:

    Apple 100
    Banana 50
    Pear 300
    Orange 400

    What I'd like to do is, when I select a fruit from the data validation menu the, ie Pear, than the relevant quantity (ie 300) is automaticaly inserted/diaplayed in the 'next' coloumn.

    Hope this is clearer.

    Thanks.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data validation and an entry displayed

    If you create a table of values somewhere that looks like your above second table, then you can use VLOOKUP

    e.g.

    =IF(A2="","",VLOOKUP(A2,$X$1:$Y$10,2,FALSE))

    where A2 contains your drop down and X1:Y10 contains your table of fruits and associated values.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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