+ Reply to Thread
Results 1 to 3 of 3

Value for text entries from dependant drop down list

  1. #1
    Registered User
    Join Date
    02-17-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Value for text entries from dependant drop down list

    Hi,

    Not sure if this is the right section for this query, but I hope someone can help.

    I am trying to assign values for texts from dependant drop down lists, and muliply that by another cell ref.

    List A List B Quantity Cost
    Fruit Apple 4 200
    Vegetable Carrot 3 60
    Fruit Pear 5 180


    Corresponding lists

    Fruit List Vegetable List
    Apple = 50 Carrot = 20
    Pear = 30 Sprout = 12


    So I am using data validation for the lists, the lists are contained in the same worksheet.

    I have thought about using an =if( , , ) command, but due to the large number of choices contained in the lists, I was hoping there is a smarter way of working this?

    Please help...

    Cheers,
    Dave

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

    Re: Value for text entries from dependant drop down list

    It's hard to tell from your description, but probably VLOOKUP could be used.
    Hope that helps.

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

    Free DataBaseForm example

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

    Re: Value for text entries from dependant drop down list

    From your second example you need to think of the names and the "values" separately. They need to be side by side in adjacent cells in a table that can be matched.

    Please Login or Register  to view this content.
    Now a VLOOKUP formula will work against that data. You know, it seems like more work than is needed to keep the lists in separate columns. If you put all the "items" in one set of columns then the same formula works whether the item is a fruit or a veggie.

    Please Login or Register  to view this content.
    _________________
    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!)

+ 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