Pinterest Pixel

VLOOKUP with Multiple Criteria in Excel

Bryan
‘VLOOKUP’ is now so common that everyone who has ever been working with Excel has heard of it.

VLOOKUP’ is now so common that everyone who has ever been working with Excel has heard of it.

Not necessarily because they know how to use it, but because some savvy Excel-user always talks about it at the office.

Advanced users have seen the use of Excel VLOOKUP multiple criteria to what the function is looking for. So if they would be searching for a ‘Nate Harris’ in an employee database, they would not want to search the entire database.

Instead, they would want to search for ‘Nate Harris’ but only in the ‘Sales-department’ of the company. This means that they would have two criteria for the search (‘Nate Harris’ and ‘Sales-department’).

VLOOKUP with Multiple Criteria in Excel

By default, ‘VLOOKUP’ cannot help with a two-criteria (or more) lookup. It is customary to change to the more flexible combination of functions, ‘INDEX’ and ‘MATCH’ and turning the formula into an array formula. However, this is not as easy and intuitive as using a simple ‘VLOOKUP’.

In this article, I will guide you to how you can actually create an Excel VLOOKUP multiple criteria. It is an alteration of the typical way of using ‘VLOOKUP’ and is as intuitive as it is easy to use. But before you read on you should really know how to use ‘VLOOKUP’ the “normal” way.

 

Want to know how to use Excel VLOOKUP Multiple Criteria?

*** Watch our video and step by step guide below with a free downloadable Excel workbook to practice ***

Watch on YouTube and give it a thumbs up 👍

VLOOKUP with Multiple Criteria in Excel | MyExcelOnline

 

Follow the step-by-step tutorial on how to VLOOKUP for multiple sheets with example and download this Excel workbook to practice along:

Download workbookVlookup-with-multiple-criteria.xlsx

The general idea

The basics of using VLOOKUP with multiple criteria scenario is that you will concatenate the different criteria so you can use them as a single lookup value.

The concatenation will in this example be done with the ampersand (&). That means that before we can go any further in the lookup, we need to conjure up a helper column that joins the ‘Table_arrays’.

 

The helper column

In this example, and in the sample file, we need to make a separate column that conjoins the data from the ‘Employee’ column and the ‘Department’ column. Take a look at the screenshot below.

VLOOKUP with Multiple Criteria in Excel

Insert a column after column B and name it whatever you want in cell C1.

Enter the following formula into cell C2 and copy it down to the rest of the rows in the data.

=A2&B2

 

In short: The syntax of VLOOKUP

The things you need to put into a VLOOKUP formula to make it work (also called the syntax) is quite straightforward.

Follow the steps below:

STEP 1: We enter the VLOOKUP function in the blank cell where we need to extract the data

=VLOOKUP(

VLOOKUP with Multiple Criteria in Excel

STEP 2: Enter the first argument – lookup_value

The ‘lookup_value’ is what you are looking for, but not what you want as a result.

This is often a thing you already know, for example, the name of the employee (column A) and his department (column B), while the thing you don’t know (in this case) is the salary (column C).

Creating an Excel VLOOKUP multiple criteria is to change the lookup value in the function. The lookup value should be a concatenation of the two criteria you want to include in the VLOOKUP.

Let us put the VLOOKUP formula in F2, the first criteria in G2 and the second criteria in H2. The lookup value of the VLOOKUP should be: G2&H2.

=VLOOKUP(G2&H2,

VLOOKUP with Multiple Criteria in Excel

STEP 3: Enter the second argument – table_array

The ‘table_array’ is the area where you are looking for the data.

If you were using a “normal” ‘VLOOKUP’ it would be column A through C. Because of the helper column the range we must use in this case is column C through D.

=VLOOKUP(G2&H2,C:D,

VLOOKUP with Multiple Criteria in Excel

STEP 4: Enter the third argument – col_index_number

The ‘col_index_number’ tells which column you want to return the result from.

There are two columns in our ‘table_array’ and we want to return the salary, which is located in column D (the second column of our ‘table_array’). This number should be 2 in our example.

=VLOOKUP(G2&H2,C:D,2,

VLOOKUP with Multiple Criteria in Excel

STEP 5: Enter the fourth argument – [range_lookup]

The [range_lookup] is simply a ‘TRUE’ or ’FALSE’ that tells Excel if we want to use an approximate or exact match for our lookup.

In the article on ‘VLOOKUP’, I referred to before you can read all about this. In this example, we just write ‘FALSE’ for this parameter of the syntax.

=VLOOKUP(G2&H2,C:D,2,0)

VLOOKUP with Multiple Criteria in Excel

 

The final formula looks like this:

VLOOKUP with Multiple Criteria in Excel

VLOOKUP with Multiple Criteria in Excel

This completes our tutorial on how to create Excel VLOOKUP multiple criteria!

 

You’re done already!

Using VLOOKUP with multiple conditions is very easy (I told you!). Now you can change the criteria in cell G2 and H2 to test out your newly created multi-criteria lookup tool.

If you want to take your lookup skills even further, you should read here!

 

Guest Blog Post By:

Kasper Langmann from Spreadsheeto.com

Further Learning:

Make sure to download our FREE PDF on the 333 Excel keyboard Shortcuts here:

If you like this Excel tip, please share it



VLOOKUP with Multiple Criteria in Excel | MyExcelOnline


Bryan

Bryan Hong is an IT Software Developer for more than 10 years and has the following certifications: Microsoft Certified Professional Developer (MCPD): Web Developer, Microsoft Certified Technology Specialist (MCTS): Windows Applications, Microsoft Certified Systems Engineer (MCSE) and Microsoft Certified Systems Administrator (MCSA).

He is also an Amazon #1 bestselling author of 4 Microsoft Excel books and a teacher of Microsoft Excel & Office at the MyExecelOnline Academy Online Course.

See also  Clear Everything Before the Hyphen with Excel's REPLACE Formula

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...