Open In App

INDEX and MATCH With Multiple Criteria In Excel

Last Updated: 31 Jan, 2023

S

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

Excel is a wonderful tool and helps you to perform difficult tasks easily by using the defined functions. One such function in MS Excel is INDEX and MATCH. INDEX and MATCH are two functions, but they are used combinedly to find a value using multiple criteria. In other words, you can look up and return values even if there are no unique values to look for.  The INDEX/MATCH formula can help you find data points quickly without involving any manual search for them and risk making mistakes. Here, we will understand the syntax and formula in full detail so that you can easily adjust the formula for your particular needs and find values using multiple criteria. There are two ways to use INDEX and MATCH with multiple criteria to find results.

INDEX and MATCH with Multiple Criteria using an Array

Consider the example (as shown below). Which contains information about the Employee’s Name, Designation, Team, and Date of Joining.

dataset

 

And we need to find the Date of the Joining of Anuj Goyal who is a Marketing Associate in the company. Collect the prerequisites in the different cells (As shown below).

filling-details

 

To find a value with multiple criteria in separate columns, use the generic formula below:

{=INDEX(return_range, MATCH(1, (criteria1=range1) * (criteria2=range2) * (…), 0))}

Where:

  • Return_range is the range from which to return a value.
  • Criteria1, criteria2, … are the conditions to be met.
  • Range1, range2, … are the ranges on which the corresponding criteria should be tested.
     

Note: The above formula is an array formula and must be completed by pressing Ctrl + Shift + Enter together. This will enclose your formula in {curly brackets}, as shown, which is a visual sign of an array formula in Excel. If you try typing braces manually, that won’t work! In our case the values are:

Return_range (Date of Joining) – D2:D8, Criteria1 (Name) – G2, Criteria2 (Team) – G3, Criteria3 (Designation) – G4, Range1 (Name) – A2:A8, Range2 (Team) – B2:B8, Range3 (Designation) – C2:C8
 

The complete formula is:

=INDEX(D2:D8, MATCH(1, (G2=A2:A8) * (G3=B2:B8) * (G4=C2:C8), 0))

Output:

After pressing Ctrl + Shift + Enter, you’ll get the following output

index-match-function

 

INDEX and MATCH with Multiple Criteria Without using an Array

Considering the same example as used above. We need to find the Date of the Joining of Anuj Goyal who is a Marketing Associate in the company.

example2

 

To find a value with multiple criteria without using arrays in separate columns, use the generic formula as below:

INDEX(return_range, MATCH(1, INDEX((criteria1=range1) * (criteria2=range2) * (..), 0, 1), 0))

According to our example the formula changes to:

=INDEX(D2:D8, MATCH(1, INDEX((G2=A2:A8) * (G3=B2:B8) * (G4=C2:C8), 0, 1), 0))

Explanation:  Return_range (Date of Joining) – D2:D8, Criteria1 (Name) – G2, Criteria2 (Team) – G3, Criteria3 (Designation) – G4, Range1 (Name) – A2:A8, Range2 (Team) – B2:B8, Range3 (Designation) – C2:C8. The INDEX function can handle arrays natively, the second INDEX is just used to “catch” the array formed by the boolean logic operation and return it to MATCH. INDEX is set up with zero rows and one column to do this. The zero-row technique causes INDEX to return column 1 from the array.

Output: After pressing Ctrl + Shift + Enter, you’ll get the following output

index-match-function-output

 



S

News
Improve
Discuss
Do you want to advertise with us?Click here to know more

Average Cells Based On Multiple Criteria in Excel

article_img
An Average is a number expressing the central or typical value in a set of data, in particular the mode, median, or (most commonly) the mean, which is calculated by dividing the sum of the values in the set by their number. The basic formula for the average of n numbers x1,x2,……xn is A = (x1 + x2 ........xn)/ n Excel AVERAGE FunctionIn Excel, there is an average function for this purpose, but it can be calculated manually using SUM and COUNT functions like this = SUM(D1:D5)/COUNT(D1:D5) Where, SUM: This function is used to find the sum of values in the required range of cells. COUNT: This function is used to get the count of the required range of cells containing numeric values. Excel provides a direct function named AVERAGE to calculate the average (or mean) of the numbers in the range specified in the function's argument. In this function, a maximum of 255 arguments can be given (numbers/cell references/ ranges/ arrays or constants). Syntax:= AVERAGE(Num1, [Num2], ...) Where Num1 [Required]: Provide range, cell references, or the first number for calculating the average. Num2, ... [Optional]: Provide additional numbers or a range of cell references for calculating the average. Ex
Read More

XLOOKUP vs INDEX-MATCH in Excel

article_img
XLOOKUP can figure out the following more modest or the following bigger worth when there is no definite match. INDEX-MATCH can likewise do such, yet the lookup_array should be arranged in climbing or dropping requests. Both help match Wildcards. XLOOKUP can figure out either the first or the last worth when different qualities match. XLOOKUP versus INDEX and MATCH We have seen that INDEX/MATCH is a lot quicker than XLOOKUP. In this informational index, we're taking a gander at a bunch of SKUs from an online business store, alongside the number of deals for each. In segment G we've made an equation that looks for the SKU in section B and takes out the comparing number of deals. Separating the MATCH work The INDEX work takes two required contentions - the exhibit and the column number in the cluster. By contributing our deals cluster (D3:D10) and folding the INDEX work over the match work, the absolute Sales of 12 are returned in light of the fact that '12' is in the principal line of the exhibit. Subsequent to doing this a couple of times, getting the hang of INDEX+MATCH for this kind of situation is extremely simple. How about we perceive how XLOOKUP handles a similar issue… XLOO
Read More

How to Sum Values Based on Criteria in Another Column in Excel?

article_img
In Excel, we can approach the problem in two ways. [SUMIF Formula and Excel Pivot] Sample data: Sales Report Template We are creating a summary table for Total Product sales. Approach 1: Excel Formula SUMIF Step 1: Copy “Column A” Products and then paste into “Column F” Step 2: Remove duplicate products in “Column F” Step 3: Type “Sales” in cell G1. Step 4: Now make use of the below formula. Syntax: SUMIF(range, criteria, [sum_range]) Where, range : Required. Excel range of cells, to apply criteria.criteria : Required. criteria example : 12, ">12", t7, "5?" or "blue*".sum_range : optional. Excel range to add Now write SUMIF() in cell G2 =SUMIF($A$1:$A$21,F2,$C$1:$C$21) Step 5: Select cell G2 and drag till cell G6 Approach 2: Using Pivot table Step 1: Select the entire data range (A1:C21) Step 2: Now click Insert >> PivotTable to open the Create PivotTable dialog box Step 3: In the PivotTable Fields pane, drag the criteria column name (Product) to the Rows section, drag the column you will sum (Sales), and move to the Values section Pivot Table: Total Products Sales [Column E and F]
Read More

A

How to Graph Three Sets of Data Criteria in an Excel Clustered Column Chart?

article_img
A cluster Column chart is one of the most commonly used chart types in Excel. In this, the column bars related to different series are located near one other. In this article, we learn about how to graph clustered column graphs. A clustered column chart has a different bar but they are connected. They do not show the ratio in a chart because they are not stacked. There are different bars for different categories. Clustered Column Chart with Three Sets of Data in ExcelStep 1: Write the three sets of data in an Excel sheet. i.e. from A1:D14.  elStep 2: Select the data A1:D14 and go to insert. Step 3: Under the chart section, Select the column. Step 4: From the drop-down list select cluster chart.  Step 5: Three sets of cluster chart appears. In this chart, X-axis shows the Monthly delivery of Product 1, product 2, and Product 3 in different places i.e. Udaipur (In blue), Jaipur (In red), and CHD (In green). and the y-axis shows the no of delivery. Editing Your ChartYou can edit your chart if you are not ok with the default chart type. Editing a chart can make the data analysis easy and quick. It also customizes your data. You can change the color of the columns to make them more attr
Read More

VLOOKUP On Multiple Criteria Columns Using Helper Method & CHOOSE Function

article_img
In this article, we will see how we can combine multiple values, and use them as lookup criteria for searching specific value(s) in the excel dataset. For this purpose, we will use the VLOOKUP formula, the most basic formula to perform a lookup for value(s) on excel. We will see a modified form of VLOOKUP to perform a lookup using multiple values. First, let us see a general formula: Formula: =VLOOKUP(v1&v2,dataset_part,column,0) Here, Here v1 and v2 signify those two cells, which will be used for lookup in combination.The Dataset_part signify the starting cell value and the ending cell value, upon which lookup is to be performed. This can consist of the whole dataset as well.The column signifies from which column the value has to be picked up.Here 0 signifies the approximation of lookup in vlookup. It can be set to 1 to enable approximation. Now, let us see in brief, or a summary, how VLOOKUP will work in the Multiple Criteria Column. Here, we have 2 ways of modifying VLOOKUP to make it capable of doing a lookup on multiple criteria, they are: Helper Column.CHOOSE function. Helper column will be a sort of redundant work, as we have to provide merged values of those columns on
Read More

Excel COUNTIF Function for Exact and Partial Match (With Examples)

article_img
The COUNTIF function in Excel is a powerful tool used to count cells that meet specific criteria, whether it's an exact match or a partial match. This function is incredibly useful for managing large datasets, analyzing trends, or summarizing data quickly. For example, you can use COUNTIF to count how many times a specific word appears in a list or identify cells containing partial matches like text strings.With its ability to handle both numeric and text-based data, the COUNTIF function simplifies tasks like tracking inventory, analyzing survey responses, or checking for duplicates. In this guide, we’ll break down how to use the COUNTIF function for both exact and partial matches with clear examples and step-by-step instructions.Table of ContentCount Exact Matches with Text in ExcelCount Exact Matches with Numbers in ExcelCounting Cells with Specific Text Using WildcardsUsing COUNTIFS for Multiple CriteriaExcel COUNTIF Function for Exact and Partial MatchUnderstanding COUNTIF FunctionThe COUNTIF function counts the number of cells within a range that satisfy a given condition or "criteria." This makes it ideal for summarizing data or performing quick checks across large datasets.
Read More

How To Use MATCH Function in Excel (With Examples)

article_img
Finding the right data in large spreadsheets can often feel like searching for a needle in a haystack. This is where the MATCH function in Excel proves invaluable. The MATCH function helps you locate the position of a specific value within a row or column, making it a cornerstone of efficient data management and analysis.In this guide, we’ll explore how to use MATCH in Excel, discuss its syntax, and walk through MATCH Excel examples that showcase its practical applications. Whether you're working on a project that involves dynamic lookups or need to pair it with other Excel lookup functions, the MATCH function simplifies complex tasks and empowers you to handle data more effectively.MATCH Function in ExcelWhat is the MATCH Function in ExcelThe MATCH function returns the position of a value in a row, column, or table, rather than the actual value itself. For Example, if you’re looking for the number "50" in a list of numbers and it’s the 5th item, the function will return the number 5.Syntax of the MATCH Function=MATCH(lookup_value, lookup_array, [match_type]) Here, the [match_type] value denotes whether the user wants an exact match or an approximate match. Arguments:lookup_value:
Read More

Index Match Vs VLOOKUP: Which one is Better, Formula Differences and more

article_img
Index Match vs VLOOKUP - Key DifferencesINDEX/MATCH offers more stability because it locks in the exact column you want to retrieve, unlike VLOOKUP, where changing columns in the lookup range can alter the returned results. INDEX/MATCH is structurally stronger since moving columns around won’t disrupt your results, whereas VLOOKUP might display incorrect data if columns shift. If your data is stable, doesn't involve sensitive information, and you’re referencing only a few columns, VLOOKUP works well. However, for most other cases, INDEX/MATCH is the safer, more reliable choice.When comparing INDEX MATCH vs. VLOOKUP in Excel, one key difference lies in how they handle column references. VLOOKUP relies on a fixed column number, which can lead to errors if columns are rearranged, making it less flexible for dynamic datasets. On the other hand, INDEX MATCH uses a dynamic column reference, automatically adjusting to changes in your data, which is especially beneficial for larger and more complex spreadsheets. Both functions are powerful tools for performing lookups in Excel, each with unique strengths and limitations. Whether you're analyzing complex datasets, creating dynamic reports,
Read More

How to Use INDEX MATCH in Google Sheets

article_img
Sorting through large datasets can be challenging, but combining the Google Sheets INDEX function with the Google Sheets MATCH function provides an efficient way to retrieve and locate specific data points. These two powerful tools help you create flexible formulas that dynamically reference rows and columns. Whether you need to extract a value from a specific position using the INDEX function or find the position of an item using the MATCH function, mastering these formulas can elevate your spreadsheet skills.In this guide, we’ll walk you through the Google Sheets INDEX function syntax, the Google Sheets MATCH function syntax, and detailed steps on how to use them effectively. By the end, you’ll clearly understand how to leverage these tools to manage and analyze your data efficiently with the help of an INDEX MATCH tutorial for Google Sheets.MATCH Function in Google SheetsThe MATCH function in Google Sheets finds the position of a specified value within a range. Instead of returning the value itself, it provides the relative position, making it an essential tool for dynamic data lookups and combining with other functions like INDEX.How It WorksThe MATCH function searches for a va
Read More

PSU Recruitment Without GATE 2025: Eligibility Criteria, PSU Hiring, PSU Exams List, Salary & Benefits

article_img
This article includes a list of Top companies that offer PSU Jobs without GATE 2025 - Public Sector Undertakings (PSUs) are government-owned companies that offer well-paid job opportunities in the field of Computer Science and Engineering. Many PSUs recruit through the Graduate Aptitude Test in Engineering (GATE Exam) but several PSUs also conduct their recruitment without a GATE Score which means a student is eligible if he/she does not have a GATE 2025 score.Explore the complete list of PSUs Recruitment without GATE including Organization wise notification date, website links, eligibility criteria, salary, benefits, and the last date to apply.PSU Recruitment Without GATEHow to Get a PSU Job Without GATE Score in 2025?While GATE is a common recruitment channel for engineering graduates, many PSUs recruit candidates without requiring a GATE score through alternative selection methods such as written exams, UGC NET, CSIR NET, direct interviews, and skill tests. Below is a step-by-step guide to securing a PSU job without GATE in 2025:1. Identify the PSUs Recruiting Without GATESeveral PSUs conduct their own recruitment processes or consider alternative exams like UGC NET and CSIR NET
Read More
three90RightbarBannerImg