KutoolsforOffice — One Suite. Five Tools. Get More Done.February Sale: 20% Off

How to do a three-way lookup in Excel?

AuthorSunLast modified

In practical business scenarios, you may encounter tables where data is organized by multiple criteria, such as product type, store location, and import batch. For example, imagine you have every product (KTE, KTO, KTW) distributed across three stores (A, B, C), and each store has imported items in two separate batches. If you need to determine the quantity of product KTO in store B from the first import, as shown in the screenshot below, manually searching for this information would be inefficient and potentially error-prone—especially when handling large datasets. This tutorial introduces several solutions for performing a three-way lookup in Excel, helping you quickly return a value from a given range using formulas, VBA code, and Pivot Table techniques.
do three way lookup

Excel array formula solution

If you want to perform a multi-criteria lookup in Excel, you can list all three search criteria, for example, in cells G1, G2, and G3. Use the following array formula to search your table for matching results (as illustrated in the image above):

=INDEX($A$3:$D$11, MATCH(G1&G2,$A$3:$A$11&$B$3:$B$11,0), MATCH(G3,$A$2:$D$2,0))

Enter this formula in a blank cell where you wish to display the result. After typing the formula, press Shift + Ctrl + Enter since this is an array formula; doing so enables Excel to process multiple criteria combined across ranges. This formula searches for the row where criteria1 and criteria2 match, and retrieves the column from criteria3.
Common issues may occur if cell references are inaccurate or if you forget to press Shift + Ctrl + Enter. When adjusting the formula for different tables, make sure both the ranges and criteria cells reference the correct locations.

Parameter explanations for the formula:

  • $A$3:$D$11: The complete range of your data table.
  • G1&G2: Concatenated values of your first and second criteria (e.g., product and store).
  • $A$3:$A$11&$B$3:$B$11: The ranges where your criteria1 and criteria2 are stored. The use of "&" enables row-level matching of combined criteria.
  • G3, $A$2:$D$2: The third criterion (e.g., import batch) and the range containing batch labels.

The formula is case-insensitive, meaning it will match both upper and lower case text equally. If data entry errors appear, double-check for leading or trailing spaces in criteria cells, as these may prevent correct matches.

Tip: If you often require this kind of multi-condition lookup formula but find the syntax complex, consider saving it to the Auto Text pane in Kutools for Excel. This way, you can easily reuse the formula at any time, in any worksheet, simply by clicking to apply—and only need to adjust the cell references as needed. This avoids having to memorize the formula or search for its syntax online repeatedly.
Click for free download it now.


Sample File

Click to download the sample file

Other Operations (Articles) Related To VLOOKUP

The VLOOKUP Function
Now this tutorial will explain the syntax and arguments of the VLOOKUP function as well as provide some essential examples for understanding the VLOOKUP function.

VLOOKUP with drop-down list
In Excel, VLOOKUP and drop-down lists are two useful functions. However, have you tried to VLOOKUP with a drop-down list?

VLOOKUP and SUM
Using vlookup and SUM functions helps you quickly find out the specified criteria and sum the corresponding values at the same time.

Conditional formatting rows or cells if two columns are equal in Excel
In this article, I introduce the method for conditional formatting rows or cells if two columns are equal in Excel.

VLOOKUP and return default value
In Excel, it will return the error value #N/A if it does not find the matched value while using the VLOOKUP function. To avoid the error value appearing, you can use a default value to replace the error value if no match is found.


  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns and Keeping Data; Split Cells Content; Combine Duplicate Rows and Sum/Average... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Favorite and Quickly Insert Formulas, Ranges, Charts and Pictures; Encrypt Cells with password; Create Mailing List and send emails...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • Pivot Table Grouping by week number, day of week and more... Show Unlocked, Locked Cells by different colors; Highlight Cells That Have Formula/Name...
kte tab 201905
  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom