VLOOKUP only accepts one lookup value, so the standard fix is a helper column that joins your criteria. Add a column with =A2&"|"&B2 to combine the name and class into one unique key, then look it up the same way: =VLOOKUP(F1&"|"&G1,C2:D100,2,0), where F1 and G1 hold the two criteria.
Use a delimiter like | rather than joining directly, so “John” + “IX” can’t collide with “Joh” + “NIX”. If you can’t add a column, use INDEX and MATCH with a concatenated array: =INDEX(D2:D100,MATCH(F1&"|"&G1,A2:A100&"|"&B2:B100,0)) — in Excel 2019 or earlier that needs Ctrl+Shift+Enter.
In Excel 365 or 2021, XLOOKUP handles it without any helper column: =XLOOKUP(F1&"|"&G1,A2:A100&"|"&B2:B100,D2:D100). The helper column is still the fastest option on large datasets and the easiest to debug when a lookup returns #N/A.
VLOOKUP is one of the most popular Excel functions. But, it’s one of the most limited functions as well.
Advanced Excel users know that there are so many things that we can’t do with VLOOKUP, or we need to put in some extra effort to make it work.
For example, using VLOOKUP with multiple criteria. By default, VLOOKUP allows you to look up a single value.
But in the real world, there are some situations where we need to use two or more criteria.
Let’s say you have a list of students for an entire school and from that list, you want to look up a student whose name is “John” and who is in class IX.

There is a huge possibility that there could be more than one student whose name is “John”. The best solution here is to combine two different criteria (name and class) to get the right value in return.

Today, in this post, we will explore the method for using multiple criteria with VLOOKUP.
So, let’s get started and make sure to download this sample file from here to follow along.
Now, according to the above problem I have mentioned, we need to use two criteria as a lookup value in VLOOKUP. For this, we need to make two adjustments, which are easy and simple.
Create a New Helper Column
Here are the steps to insert a new column by joining two criteria.
- First of all, we need to add a new column.

- After that, in the new column, enter a formula to join the name and class, just like below (formula below this list).
With the names in column A and the classes in column B, the formula in the helper column (C) is:
=A2&B2

- Now, drag the formula up to the last cell of the column.
- Now, we have a single column in which we have combined two different criteria (name & class).

Combine Two Criteria in the Lookup Value
Now, the next thing is to combine two criteria in the lookup_value argument of VLOOKUP.
Here we want to use “John” and “Class-IX”, and for this, we need to combine both using an ampersand in the lookup_value argument.

After that, we need to select columns C and D as the table_array, 2 as the col_index_num, and 0 as [range_lookup].

In the end, press Enter. And now, we have the score of the John who is in Class-IX.
Here’s the formula with the name in cell F2 and the class in cell G2, so you can change the criteria without editing the formula:
=VLOOKUP(F2&G2,C:D,2,0)
Just make sure the helper column is the first column of the table_array, as VLOOKUP always searches the first column.

How it Works
The method of using combined criteria in VLOOKUP is simple. When we combine two columns into one it gives us unique values.
Just think about it this way: we have the name John three times in our data. But when we join the names with their classes, we get a unique value for each name.
For example, JohnClass-IX, JohnClass-VI, and JohnClass-II. Now, no value is duplicated.
In the same way, while specifying the lookup_value in VLOOKUP, we have combined both of the criteria (name and class) so that it returns the score for the right student i.e. John who is in class IX.

Use a Separator in the Helper Column
Joining values without anything in between can create the same text from different pairs. For example, “Ann” and “a1” gives “Anna1”, and so does “Anna” and “1”, so VLOOKUP can return the wrong row. Add a character that doesn’t appear in your data, like a pipe:
=A2&"|"&B2
Then use the same separator in the lookup value:
=VLOOKUP(F2&"|"&G2,C:D,2,0)
VLOOKUP with Multiple Criteria without a Helper Column
If you can’t add a column to your data, use CHOOSE to build the joined column inside the formula. In Excel 2019 and earlier, enter it with Ctrl + Shift + Enter:
=VLOOKUP(F2&G2,CHOOSE({1,2},A2:A20&B2:B20,D2:D20),2,0)
Or use INDEX and MATCH, where the two conditions are multiplied, and MATCH looks for the row where both are TRUE (1):
=INDEX(D2:D20,MATCH(1,(A2:A20=F2)*(B2:B20=G2),0))
XLOOKUP with Multiple Criteria
If you are using Microsoft 365 or Excel 2021 and later, XLOOKUP does the same with a much simpler formula and no helper column:
=XLOOKUP(1,(A2:A20=F2)*(B2:B20=G2),D2:D20,"Not found")
The fourth argument is the text to show when there’s no match. And if you want all the matching rows instead of the first one, use FILTER:
=FILTER(D2:D20,(A2:A20=F2)*(B2:B20=G2))
Conclusion
Using multiple criteria with VLOOKUP helps you look up a value with more accuracy and ease, just like we have done in the above example.
And, the best part is that combining two different criteria is no big deal, it’s simple and easy. I hope you found this formula tip helpful and that it will help you in your work.
Now tell me one thing. Have you ever tried to add more than one criterion in VLOOKUP? Or, do you have any other method for this? Please share with me in the comment section, I would love to hear from you. And please don’t forget to share this tip with your friends.
Frequently Asked Questions
Why does VLOOKUP with multiple criteria return #N/A?
The joined lookup value doesn’t exactly match any value in the helper column. Check for extra spaces, a different order of the criteria (name then class in both places), and numbers stored as text. To show a message instead of the error, wrap the formula in IFERROR:
=IFERROR(VLOOKUP(F2&G2,C:D,2,0),"Not found")
Can I use more than two criteria?
Yes. Join all of them with the ampersand in the helper column and in the lookup value, in the same order, or add one more condition in brackets to the XLOOKUP or INDEX MATCH formula.
What if there are two rows with the same criteria?
VLOOKUP returns the value from the first matching row only. Use FILTER in Microsoft 365 to get all of them, or SUMIFS if you want the total of all matching rows.
Very good format of exel practice here.