ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Formula > VLOOKUP Multiple Criteria – Solution for Numeric or Non-Numeric Result

VLOOKUP Multiple Criteria – Solution for Numeric or Non-Numeric Result

This is box title
Table of contents :
  • The solution for Numeric Result
    • Solution #1, SUMIFS Function
    • Solution #2, SUMPRODUCT Function
    • Solution #3, SUM Function and Array Formula
  • The solution for Non-Numeric Result
    • Solution #A, VLOOKUP Function and Helper Column
    • Solution #B, VLOOKUP Function, CHOOSE Function, and Array Formula
    • Solution #C, INDEX Function, MATCH Function, and Array Formula
  • Which One is the Best Solution?
  • Practice File Download

VLOOKUP Multiple Criteria

The Solution for Numeric Result

For example, there is data like the picture below, how much is the price of an Apple iPhone XS?

VLOOKUP Multiple Matches

What is the formula to find the price, there are two criteria, manufacture=”Apple” and Model=”iPhone XS”. Is it possible to use the VLOOKUP function or is there another solution?

Solution #1, SUMIFS Function

If the lookup result is a number then forget the VLOOKUP function, you can use mathematical functions and produce a simpler formula, one of them is the SUMIFS function.

The Formula

=SUMIFS(C2:C14,A2:A14,F3,B2:B14,F4)

The Result

Excel VLOOKUP Multiple Criteria

The result is $1,340

For additional reference, please read

  • SUMIF Multiple Criteria
  • Excel SUMIFS Function
  • SUMIFS Limitation and Solution

Solution #2, SUMPRODUCT Function

Another mathematical function that you can use to look up a number with multiple criteria is the SUMPRODUCT function.

The Formula

=SUMPRODUCT(C2:C14,--(A2:A14=F3),--(B2:B14=F4))

The Result

Excel Lookup Multiple Criteria

For additional reference, please read

  • SUMPRODUCT Multiple Criteria
  • Excel SUMPRODUCT Function

Solution #3, SUM Function and Array Formula

The last solution is to use the SUM function, not the usual SUM function but the SUM function that processes an array formula.

Because it is an array formula, you can’t end the writing of the formula by pressing the ENTER button but by pressing the CTRL+SHIFT+ENTER button simultaneously.

The Formula

=SUM((C2:C14)*(A2:A14=F3)*(B2:B14=F4))

The Result

Lookup Multiple Criteria

For additional reference, please read

  • Excel SUM Function
  • Another Array Formula Example

The Solution for Non-Numeric Result

For example, there is data like the picture below, where does Evelyn Thao live?

How to VLOOKUP with Multiple Criteria

Solution #A, VLOOKUP Function and Helper Column

The limitation of the VLOOKUP function is only lookup for one condition, that is lookup_value. If there are two or more criteria the easiest way is to concatenate all the criteria in the lookup_value.

The next step is to create the helper column that contains a merge of two columns in table_array. The helper column will be the first column of table_array, where the VLOOKUP function will look for lookup_value that has been merged from two criteria.

The Formula for Helper Column

=B2&C2

The Formula to Lookup the State

=VLOOKUP(G3&G4,A2:D10,4,FALSE)

The Result

VLOOKUP Using Multiple Criteria

For additional reference, please read

  • How to Do a VLOOKUP
  • VLOOKUP Limitation and Solution
  • VLOOKUP Error – Frequently Error and Solution

Solution #B, VLOOKUP Function, CHOOSE Function, and Array Formula

The solution #B uses the helper column too. The difference is solution #A using a worksheet for the helper column location while solution #B using a formula for the helper column location.

The CHOOSE function will occupy the table_array argument of the VLOOKUP function; the role is to create a virtual helper column in the formula. The virtual helper column consists of two columns. The first column contains a combination of first name and last name. The second column contains the name of the state.

The Formula

=VLOOKUP(F3&F4,CHOOSE({1,2},A2:A10&B2:B10,C2:C10),2,FALSE)

Because it is an array formula, end the formula writing by pressing the CTRL+SHIFT+ENTER button simultaneously.

The Result

VLOOKUP Based on Multiple Criteria

No helper column in the worksheet but the VLOOKUP function can do vlookup with two criteria.

For additional reference, please read

  • Excel CHOOSE Function

Solution #C, INDEX Function, MATCH Function, and Array Formula

The solution #C is similar to solution #B, creating a virtual helper column in the formula. If the solution #B uses the CHOOSE function to form a virtual helper column. Solution #C uses the INDEX and MATCH functions where the MATCH function is assigned to create a virtual helper column.

The Formula

=INDEX(C2:C10,MATCH(F3&F4,A2:A10&B2:B10,0),1)

End the formula writing by pressing CTRL+SHIFT+ENTER simultaneously, because the formula above is an array formula

The Result

Excel Formula VLOOKUP Multiple Criteria

For additional reference, please read

  • INDEX MATCH – Excel VLOOKUP Alternative

Which One is the Best Solution?

For Numeric Result

The SUMIFS function is the best solution, simple and answers the questions. If the SUMIFS function is not available in your excel (seriously? you should upgrade your excel version 😊), then you can use the SUMPRODUCT function, or you can use SUMIF with multiple criteria.

For Non-Numeric Result

The easiest solution is to use the VLOOKUP function and the helper column. If you want no helper column in the worksheet, then you can use the virtual helper column in the formula.

There are two options, The VLOOKUP and CHOOSE function or INDEX and MATCH function, both is an array formula. Choose the most comfortable formula for you.

You can use all solutions for the non-numeric result to look up the numeric result with multiple criteria, but not otherwise. TRY IT AT HOME 😊

Practice File Download

Download File

 

Related Function

Function used in this article
  • Excel SUM Function
  • Excel SUMIF Function
  • Excel SUMIFS Function
  • Excel SUMPRODUCT Function
  • Excel VLOOKUP Function
  • Excel CHOOSE Function
  • Excel INDEX Function
  • Excel MATCH Function
Usefull links
  • Using multiple criteria in Excel Lookup formulas
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

Calculate Number of Days, Weeks, Months and Years between Two Dates
Calculate Number of Days Between Two Dates Excel has a …

Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel

SUMIF Multiple Criteria
For example, there are data such as the image below. …

SUMIF Multiple Criteria

SUMIFS Limitations and Solutions
“How to Use the Excel SUMIFS Function” article explains SUMIFS …

SUMIFS Limitations and Solutions

How to Do Division in Excel
How to divide in Excel? For example, there is data …

How to Do Division in Excel

How to Convert Time to Hours, Minutes and Seconds in Excel
Excel stores TIME values in decimal numbers, but in day …

How to Convert Time to Hours, Minutes and Seconds in Excel

Tags:Array Formula CHOOSE Function Excel Formula VLOOKUP Multiple Criteria Excel How to VLOOKUP With Multiple Criteria Excel Lookup Multiple Criteria Excel VLOOKUP Multiple Criteria HLOOKUP With Multiple Criteria How to VLOOKUP With Multiple Criteria INDEX Function Lookup Multiple Criteria MATCH Function SUM Function SUMIF Function SUMIFS Function SUMPRODUCT Function VLOOKUP Based on Multiple Criteria VLOOKUP Function VLOOKUP Multiple Criteria VLOOKUP Multiple Matches VLOOKUP Using Multiple Criteria

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2023 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh