Results 1 to 10 of 15

Thread: VLOOKUP on Matching Multiple Criteria

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    I took a quick look in the internet. A quick Google with a search of “VLOOKUP on Matching Multiple Criteria“ brings you a lot of infomation and examples…
    To solve the problem with a single formula would be very difficult.
    There are many similar problems solved on the internet which use a helper column.
    A search of the internet will give you many examples. Here just a few
    https://trumpexcel.com/vlookup-with-multiple-criteria/
    https://exceljet.net/formula/vlookup...tiple-criteria


    Example in uploaded file, VLookUpMultipleCriteria.xlsx
    Your formula in row 2 to be copied down would be:
    _____ Workbook: VLookUpMultipleCriteria.xlsx ( Using Excel 2007 32 bit )
    Row\Col
    D
    E
    2
    =IF(ISERROR(VLOOKUP(A2&"|"&B2&"|"&C2,Export!$D$2:$F$8,2,FALSE)),"",VLOOKUP(A2&"|"&B2&"|"&C2,Export!$D$2:$F$8,2,FALSE))
    =IF(ISERROR(VLOOKUP(A2&"|"&B2&"|"&C2,Export!$D$2:$F$8,3,FALSE)),"",VLOOKUP(A2&"|"&B2&"|"&C2,Export!$D$2:$F$8,3,FALSE))
    Worksheet: Result




    There is also some information on the internet to solve the problem without a helper column. But the solution does not use VLookUp.
    It ends up to be a fucking long formula when applied to your data: ( It is a CSE formula! ) In row 2 to be copied down:
    _____ Workbook: FuckingLongFormulaMultipleCriteria.xlsx ( Using Excel 2007 32 bit )
    Row\Col
    D
    E
    2
    =IF(ISERROR(INDEX(Export!$E$2:$E$8,MATCH(1,(ResultIndex!A2=Export!$A$2:$A$8)*(ResultIndex!B2=Export!$B$2:$B$8)*(ResultIndex!C2=Export!$C$2:$C$8),0),1)),"",INDEX(Export!$E$2:$E$8,MATCH(1,(ResultIndex!A2=Export!$A$2:$A$8)*(ResultIndex!B2=Export!$B$2:$B$8)*(ResultIndex!C2=Export!$C$2:$C$8),0),1))
    =IF(ISERROR(INDEX(Export!$F$2:$F$8,MATCH(1,(ResultIndex!A2=Export!$A$2:$A$8)*(ResultIndex!B2=Export!$B$2:$B$8)*(ResultIndex!C2=Export!$C$2:$C$8),0),1)),"",INDEX(Export!$F$2:$F$8,MATCH(1,(ResultIndex!A2=Export!$A$2:$A$8)*(ResultIndex!B2=Export!$B$2:$B$8)*(ResultIndex!C2=Export!$C$2:$C$8),0),1))
    Worksheet: ResultIndex

    Example in uploaded File, FuckingLongFormulaMultipleCriteria.xlsx

    If you have a lot of real data, then such a fucking long formula is probably a bad idea.
    A better solutions is probably Sandy666’s , or possibly a VBA solution


    Alan
    Attached Files Attached Files
    Last edited by DocAElstein; 10-23-2020 at 11:23 AM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    KILL A MODERATOR!!

Similar Threads

  1. HELP - Vlookup based on 2 criteria.
    By amar.kshirsagar in forum Excel Help
    Replies: 7
    Last Post: 01-24-2014, 04:16 PM
  2. VLookup Any Matching Word From A Sentence
    By Vivienjohn in forum Excel Help
    Replies: 0
    Last Post: 12-30-2012, 11:55 AM
  3. VLookup Any Matching Word From A Sentence
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 12-30-2012, 11:55 AM
  4. Vlookup with multiple criteria
    By patsir in forum Excel Help
    Replies: 7
    Last Post: 08-27-2012, 11:15 AM
  5. Extract multiple data matching with input
    By excel_learner in forum Excel Help
    Replies: 1
    Last Post: 02-13-2012, 06:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •