+ Reply to Thread
Results 1 to 5 of 5

Lookup from a table with multiple criteria

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    3

    Smile Lookup from a table with multiple criteria

    hi guys i need some help with VLOOKUP, actually i am not sure if VLOOKUP can achieve what i am trying to do, so I hope some1 can help me out!

    vlookup2.png

    see picture above. basically what i am trying to do is:

    When I select a quantity and object on the dropbownlists i get a value back from the brown marked area. Is this possible?

    thank you for your time and help!
    Last edited by JBeaucaire; 08-02-2012 at 10:28 PM. Reason: Corrected thread title to topic only, as per forum rules

  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: need help with advanced Vlookup

    Welcome to the forum, Londoner. Take a moment to read the Forum Rules, link is above in the menu bar. You've managed to tweak several things in your first post.

    1) Title should reflect the issue only, not guess at an answer
    2) post workbooks to aid helpers, not pictures forcing them to recreate it

    Click GO ADVANCED on your next post and use the paperclip icon to post up a copy of your workbook.

    I've changed your title, this time.
    _________________
    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
    08-02-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Lookup from a table with multiple criteria

    I am so sorry for been so careless, thank you for the help and information

    added the workbook!

    Vlookup-data.xlsx

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

    Re: Lookup from a table with multiple criteria

    I've adjusted your layout to provide two simple to use lookup tables. The second table gives the added benefit of serving as the Drop Down source (Data Validation) for the "Item" in the form section off to the right.

    The magic is in the M column. A standard INDEX/MATCH/MATCH formula, but a VLOOKUP uses the second table to determine which category the item goes in and feeds that to the second MATCH function.

    =INDEX($B$3:$E$10, MATCH(K4, $A$3:$A$10, 1), MATCH(VLOOKUP(L4,$G:$H, 2, 0), $B$2:$E$2, 0))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-02-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Lookup from a table with multiple criteria

    thank you soo mush JBeaucaire, that did the trick, never thought of doing it that way :D

+ 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