Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to use Excel COLUMN Function
  • How to get last column number in range in Excel
  • How to use Excel FORMULATEXT function
  • How to use Excel TRANSPOSE Function
  • How to get last row in numeric data in Excel

Data Analysis Examples

  • Conditional Formatting Color Scales Examples in Excel
  • How to perform a t-Test in Excel
  • Remove Duplicates Example in Excel
  • How to create Checklist in Excel
  • Conditional Formatting Rules in Excel

Data Validation Examples

  • Data validation must not exist in list
  • Excel Data validation allow weekday only
  • Excel Data validation whole percentage only
  • Excel Data validation exists in list
  • How To Create Drop-down List in Excel

VLOOKUP with multiple criteria in Excel

by

This tutorial shows how to calculate VLOOKUP with multiple criteria in Excel using the example below;

Formula

=VLOOKUP(val1&val2,data,column,0)

Explanation

The VLOOKUP function does not handle multiple criteria natively. However, if you have control over source data, you can use a helper column to join multiple fields together, and use these fields like multiple criteria inside VLOOKUP.  In the example shown, Column B is a helper column that concatenates first and last names together, and VLOOKUP does the same to build a lookup value. The formula in I6 is:

=VLOOKUP(I4&I5,data,4,0)

where “data” is the named range B4:F104. The formula in B5 is:

=C5&D5

copied down the table.

Worked Example:   Extract data with helper column in Excel

How this formula works

In the example shown, we want to lookup employee department and group using VLOOKUP by matching on first and last name.

One limitation of VLOOKUP is that it only handles one condition: the lookup_value, which is matched against the first column in the table. This makes it difficult to use VLOOKUP to find a value based on more than one criteria. However, if you have control over the source data, you an add a helper column that concatenates 2 more more fields together, then give VLOOKUP a lookup value that does the same.

Worked Example:   VLOOKUP from another workbook in Excel

The helper column joins field values from columns that are used as criteria, and it must be the first column of the table. Inside the VLOOKUP function, the lookup value itself is also created by joining the same criteria.

In the example shown, the formula in I6 is:

=VLOOKUP(I4&I5,data,4,0)

Once I4 and I5 are joined, we have:

=VLOOKUP("JonVictor",data,4,0)

VLOOKUP locates “JonVictor” on the 5th row in “data”, and returns the value in the 4th column, “Marketing”.

Worked Example:   Partial match with VLOOKUP in Excel

Setting things up

To set up a multiple criteria VLOOKUP, follow these 3 steps:

  1. Add a helper column and concatenate (join) values from columns you want to use for your criteria.
  2. Set up VLOOKUP to refer to a table that includes the helper column. The helper column must be the first column in the table.
  3. For the lookup value, join the same values in the same order to match values in the helper column.
  4. Make sure VLOOKUP is set to perform an exact match.

Post navigation

Previous Post:

VLOOKUP with two client rates in Excel

Next Post:

VLOOKUP without #N/A error in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • How to count number of characters of text in a cell in Excel
  • How to compare two text strings in Excel
  • FIXED function: Description, Usage, Syntax, Examples and Explanation
  • TRIM function: Description, Usage, Syntax, Examples and Explanation
  • How to Separate Text Strings in Excel
  • Calculate number of hours between two times in Excel
  • Get days, months, and years between dates in Excel
  • Get project midpoint in Excel
  • Calculate total hours that fall between two times in Excel
  • Display Date is workday in Excel
  • MDURATION function: Description, Usage, Syntax, Examples and Explanation
  • IPMT function: Description, Usage, Syntax, Examples and Explanation
  • Example of payment for annuity in Excel
  • INTRATE function: Description, Usage, Syntax, Examples and Explanation
  • ISPMT function: Description, Usage, Syntax, Examples and Explanation
Acronyms, Abbreviations, Initialism & What They Stand For
© 2022 xlsoffice . All Right Reserved. | Teal Smiles