+ Reply to Thread
Results 1 to 6 of 6

Vlookup with 2 criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    12-14-2009
    Location
    Nottingham
    MS-Off Ver
    Microsoft D365
    Posts
    93

    Vlookup with 2 criteria

    Hi,

    Im trying to do a Vlookup using 2 lookup criteria. I assume this is some kind of SUMPRODUCT formula but i can not get it to work.

    Please see the attached example. I need to populate in G4 the number of cars Tim has ordered based on the information in the table in Cols A to C.

    I need to then copy it down to get the other order quatities per product. and across to hets Jaynes details.

    many thanks
    Attached Files Attached Files
    Last edited by Notters; 12-09-2011 at 08:58 AM. Reason: Resolved.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup with 2 criteria

    Hi Notters,

    Use the following formula in G4 and copy it down :-

    
    =SUMPRODUCT(($A$4:$A$45=$F$3)*($B$4:$B$45=$F4),$C$4:$C$45)
    Apply the same formula for jayne as well.

    Regards,
    DILIPandey
    < Click on below star if this helps >
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup with 2 criteria

    Hi Notters

    In g13, put the formula:

    =INDEX($C$4:$C$45;MATCH(1;($F$12=$A$4:$A$45)*(F13=$B$4:$B$45);0))
    cfe formula

    Hope to helps you.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    12-14-2009
    Location
    Nottingham
    MS-Off Ver
    Microsoft D365
    Posts
    93

    Re: Vlookup with 2 criteria

    Thanks Guys, this is great.

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup with 2 criteria

    You are welcome Notters.

    Cheers


    Regards,
    DILIPandey

  6. #6
    Forum Contributor
    Join Date
    02-22-2011
    Location
    Rhône Alpes, France
    MS-Off Ver
    Excel 2007
    Posts
    201

    Re: Vlookup with 2 criteria

    Hi,
    Another solution with pivot table
    Basic data in a table and pivot table with multiple filter
    Best regards
    Attached Files Attached Files

+ 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