+ Reply to Thread
Results 1 to 4 of 4

Return specific numbers from a chart depending on drop down box selection

  1. #1
    Registered User
    Join Date
    01-10-2011
    Location
    California
    MS-Off Ver
    Excel XP
    Posts
    2

    Return specific numbers from a chart depending on drop down box selection

    I am trying to create a "recipe" for stains. I have a drop down box for the major colors and i have a chart of the minor colors needed to create those colors. I need a formula that will take the drop down selection and lookup the necessary amounts of minor colors needed to create the major colors.
    Last edited by JasonTV; 01-12-2011 at 12:59 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Return specific numbers from a chart depending on drop down box selection

    Assuming you have a matrix (table) where:

    Column-1 = list of major colors
    All columns to the right contain associated minor colors

    And if this table is in the range of, say, M1:Pxx (for major and three minor colors)

    If cell A1 contains the drop down list, then in say, A3, we could use this formula

    =VLOOKUP($A$1,$M$1:$P$10,COLUMN(),FALSE)

    Drag the formula across the B and C columns.

    Obviously, if you have more than three minor colors, adjust the formula as required.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    01-10-2011
    Location
    California
    MS-Off Ver
    Excel XP
    Posts
    2

    Re: Return specific numbers from a chart depending on drop down box selection

    Worked great though I'm not sure how. Thanks

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Return specific numbers from a chart depending on drop down box selection

    It's not too hard to understand. Start by reviewing the Excel Help on the VLOOKUP and COLUMN functions.

    VLOOKUP(A,B,C,D)

    A = value to look up
    B = range of cells to look in ( must be left-most column in the table)
    C = which column in the table to return a value if a match is found
    D = look up type (exact match or approximate)

    COLUMN() - simply returns the column number of the active cell and in the formula I gave this is used as a variable for "C". If the formula is in cell A3 and we drag the formula from A3 to C3, column would return 1,2,3 respectively for columns A, B, C

+ 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