Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to find value with two or multiple criteria in Excel?

Normally, you can easily find out a value with the Find feature in Excel. But what if finding a value with criteria? And with two or more criteria? This article will introduce several solutions for you.


Find value with two or multiple criteria with array formula

Supposing you have a fruit sales table as below screenshot shown, you need to find out the amount value based on multiple criteria. Here, this method will introduce some array formulas to find out values based on these given criteria easily.

Array formula 1: find value with two or multiple criteria in Excel

The basic expression of this array formula displays as below:

{=INDEX(array,MATCH(1,(criteria 1=lookup_array 1)*(criteria 2= lookup_array 2)…*(criteria n= lookup_array n),0))}

Let’s say you want to find the sales amount of mango occurring on 9/3/2019, you can enter below array formula into a blank cell, and then press Ctrl + Shift + Enter keys together.

=INDEX(F3:F22,MATCH(1,(J3=B3:B22)*(J4=C3:C22),0))

Note: In above formula, F3:F22 is the Amount column you will find value in, B3:B22 is the Date column, C3:C22 is the Fruit column, J3 is a date given as the first criteria, J4 is fruit name given as the second criteria.

According to the array formula expression, you can easily add criteria as you need. For example, you now are looking for the sales amount of mango occurring on 9/3/2019, and the mango weight is 211, you can add the criteria and lookup_array in the MATCH section as follows:

=INDEX(F3:F22,MATCH(1,(J3=B3:B22)*(J4=C3:C22)*(J5=E3:E22),0))

And press Ctrl + Shift + Enter keys to find out the sales amount.

Array formula 2: find value with two or multiple criteria in Excel

The basic expression of this array formula displays as below:

=INDEX(array,MATCH(criteria1& criteria2…& criteriaN, lookup_array1& lookup_array2…& lookup_arrayN,0),0)

For example, you want to find out the sales amount of a fruit whose weight is 242 and occurs on 9/1/2019, you can enter below formula into a blank cell, and press Ctrl + Shift + Enter keys together.

=INDEX(F3:F22,MATCH(J3&J4,B3:B22&C3:C22,0),0)

Note: In above formula, F3:F22 is the Amount column you will find value in, B3:B22 is the Date column, E3:E22 is the Weight column, J3 is a date given as the first criteria, J5 is weight value given as the second criteria.

If you want to find value based on three or more criteria, you can easily add your criteria and lookup_array into the MATCH section. Please note that the criteria and lookup_array must be in the same order.

For example, you want to find out the sales amount of pear with weight of 242 and occurs on 9/1/2019, you can add the criteria and lookup_array as follows:

=INDEX(F3:F22,MATCH(J3&J4&J5,B3:B22&C3:C22&E3:E22,0),0)

And press Ctrl + Shift + Enter keys to figure out the sales amount.


Find value with two or multiple criteria with Advanced Filter

Apart from formulas, you can also apply the Advanced Filter feature to find all values with two or multiple criteria in Excel. Please do as follows:

Kutools for Excel- Includes more than 300 handy tools for Excel. Full feature free trial 60-day, no credit card required! Get It Now

1. Click Data > Advanced to enable the Advanced Filter feature.

2. In the Advanced Filter dialog, please do as follows:
(1) Check the Copy to another location option in the Action section;
(2) In the List range box, please select the range you will find values in (A1:E21 in my case);
(3) In the Criteria range box, please select the range you will find values by (H1:J2 in my case);
(4) In the Copy to box, please select the first cell of destination range you will place the filtered rows (H9 in my case).

3. Click the OK button.

Now the filtered rows matched with all listed criteria are copied and placed in the destination range. See screenshot:


Related articles:


Kutools for Excel - The Best Office Productivity Tool Increase Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • 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 without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... 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...
  • 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...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 60-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • 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
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.