Pinterest Pixel

7 Easy Steps to Master INDEX MATCH with Multiple Criteria

Index Match is a perfect formula if you wish to look up values in Excel. It searches... read more

Download Excel Workbook
John Michaloudis
Posted on

Steps To Follow

Overview

7 Easy Steps to Master INDEX MATCH with Multiple Criteria | MyExcelOnline 7 Easy Steps to Master INDEX MATCH with Multiple Criteria | MyExcelOnline

Index Match is a perfect formula if you wish to look up values in Excel. It searches the row position of a value/text in one column (using the MATCH function) and returns the value/text in the same row position from another column to the left or right (using the INDEX function).

One of the advantages of using Index Match is that you can search for a value that matches multiple criteria. Index Match with multiple criteria enables users to rapidly and effectively search and extract specific data from huge and complicated datasets by employing several criteria, such as matching values in distinct columns.

The capacity to search for and extract data based on a variety of criteria is crucial in applications such as financial modeling, data analysis, and other fields.

 

Table of Contents

Formula Syntax

The general syntax for the Index Match function is –

=INDEX(array, MATCH(lookup_value, lookup_array, [match_type])

What it means:
=INDEX(return the value/text, MATCH(from the row position of this value/text))

It can also be used when the result column is on the left side of the array. This is not possible when you are using VLOOKUP or HLOOKUP functions.

Index Match can be used if you have multiple criteria that you need to check in order to get the resultant value. Let’s understand this in a detailed step-by-step tutorial below.

  • Array Function
  • Non-Array Function
See also  The Ultimate Guide to Excel Bell Curve Graphs - Histogram Normal Distribution

 

Download the Excel workbook to practice this tutorial on how to use Index Match with multiple criteria and follow along:

download excel workbookIndex-Match-Multiple-Criteria.xlsx

 

Array Function

The general syntax for Index Match with multiple criteria is –

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

  • return_range – It is the range that contains the lookup value
  • criteria1, criteria2, and criteria3 are the conditions that need to be met
  • range1, range2, and range3 are ranges on which the corresponding criteria should be tested

This is an array formula so you must hit Ctrl + Shift +Enter for the formula to work!

 

The test array will return TRUE or FALSE as a result where TRUE indicates that the condition has been met and similarly FALSE means the condition has not been met. The multiplication operator will convert the TRUE and FALSE to 1s and 0s. The row matching both criteria will return the value as “1”.

So, when a criteria is met, the resultant block in the formula would get converted to 1. As we are multiplying all the results,  the row matching both the criteria will return the value as “1”. Even if 1 criteria is not met, the entire value will become 0 or FALSE.

The MATCH function will return the position of the value 1 and the Index function will provide us with the resultant value.

Let’s look at an example to help us understand better.

See also  The Ultimate Guide to Calculate Date Differences in Excel

 

In the example below, we want to match two criteria – Sales Representative and Region and use Index Match to provide the corresponding sales amount matching the criteria.

INDEX MATCH with Multiple Criteria in 7 Easy Steps!

STEP 1: Enter the INDEX formula

=INDEX(

INDEX MATCH with Multiple Criteria in 7 Easy Steps!

STEP 2: Enter the first argument of the INDEX formula – array. This is the array that contains the lookup value. Here, it is the column containing the sales amount.

=INDEX(C3:C22,

INDEX MATCH with Multiple Criteria in 7 Easy Steps!

STEP 3: Enter the MATCH function

=INDEX(C3:C22,MATCH(

INDEX MATCH with Multiple Criteria in 7 Easy Steps!

STEP 4: Enter the first argument of the MATCH function – lookup_value. Here, it is the value “1”.

=INDEX(C3:C22,MATCH(1,

INDEX MATCH with Multiple Criteria in 7 Easy Steps!

STEP 5: For the second argument i.e. lookup_array -we enter our criteria. Here we are searching on the basis of two criteria – Sales Representative name and Region. So you need to enter the two tests

  • If the Sales Representative (A3:A22) is Kanye (F2)
  • If the Region (B3:B22) is East (F3)

You need to multiply the values of these two tests.

=INDEX(C3:C22,MATCH(1,(F2=A3:A22)*(F3=B3:B22)

INDEX MATCH with Multiple Criteria in 7 Easy Steps!

STEP 6: Enter 0 for an exact match.

The match_type argument specifies how Excel matches lookup_value with values in lookup_array.

  • The default value for this argument is 1. MATCH finds the largest value that is less than or equal to lookup_value.
  • If we want an exact match, we enter 0.
  • The last option here is -1. MATCH finds the smallest value that is greater than or equal tolookup_value)
See also  How to Insert Diameter Symbol in Excel Fast

=INDEX(C3:C22,MATCH(1,(F2=A3:A22)*(F3=B3:B22),0))

INDEX MATCH with Multiple Criteria in 7 Easy Steps!

STEP 7: Press Ctrl + Shift + Enter.

This is crucial for our array function to work.

{=INDEX(C3:C22,MATCH(1,(F2=A3:A22)*(F3=B3:B22),0))}

INDEX MATCH with Multiple Criteria in 7 Easy Steps!

 

You can highlight the test array and press F9 to see that the function gets converted to TRUE and FALSE –

=INDEX(C3:C22,MATCH(1,({FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;TRUE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;TRUE;FALSE;FALSE;FALSE;FALSE;TRUE;FALSE})*({FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;TRUE;FALSE;FALSE;TRUE;TRUE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;TRUE;FALSE;TRUE}),0))

Once multiplied, the expression gets converted to 0s and 1s.As we were multiplying, only the row that had fulfilled both criteria got converted into 1 or TRUE-
=INDEX(C3:C22,MATCH(1,{0;0;0;0;0;0;1;0;0;0;0;0;0;0;0;0;0;0;0;0},0))

The match function will now provide the relative position of the row for which all the criteria are TRUE. In this example, it is the 7th position.

=INDEX(C3:C22,7)

The Index function will provide the 7th value from the range C3:C22. The resultant value will be –

=48168

 

Non-Array Function

For an array function to work, you need to make sure that you press Ctrl + Shift + Enter together. If you simply press enter, the formula will break. An array function can be a little tricky to use, so you can add another INDEX function to catch the array function. To do this, INDEX is set up with one column and zero rows.

The three arguments of the 2nd Index function will be –

  • array – the 2 tests i.e., If the Sales Representative (A3:A22) is Kanye (F2) and if the Region (B3:B22) is East (F3)
    (F2=A3:A22)*(F3=B3:B22)
  • row_number – It will be 0, this will cause the index function to return the column specified.
  • col_number – It will be 1, as the resultant array will only be 1 column.
See also  Microsoft Excel Online Course Private Access - 20+ Hours Beginner to Advanced Course

=INDEX((F2=A3:A22)*(F3=B3:B22),0,1)

The final formula will be –

=INDEX(C3:C22,MATCH(1,=INDEX((F2=A3:A22)*(F3=B3:B22),0,1),0))

INDEX MATCH with Multiple Criteria in 7 Easy Steps!

Even though this new formula is more complicated, it will surely work without having to press Ctrl + Shift + Enter. This formula can come in handy as people can forget to press Ctrl + Shift + Enter, causing our earlier formula to break.

 

Conclusion

You can either use an array function and make sure to press Ctrl + Shift + Enter for the function to work. Or, you could simply add another Index function if you wish to use a non-array function.

Click here to learn more about Index Match and other lookup functions in Excel.

If you like this Excel tip, please share it
X Facebook LinkedIn Copy Email Share Print Reddit
7 Easy Steps to Master INDEX MATCH with Multiple Criteria | MyExcelOnline 7 Easy Steps to Master INDEX MATCH with Multiple Criteria | MyExcelOnline
7 Easy Steps to Master INDEX MATCH with Multiple Criteria | MyExcelOnline
John Michaloudis
Founder & Chief Inspirational Officer at MyExcelOnline.com

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship Academy Online Course.

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...
Buffer Copy Email Facebook Flipboard Hacker News Line LinkedIn Mastodon Messenger Mix Pinterest Pocket Print Reddit SMS Telegram Threads Tumblr X VK WhatsApp Xing Yummly

PHP网站源码泸州模板制作哪家好银川SEO按天扣费多少钱黔南seo优化白银外贸网站建设哪家好爱联SEO按效果付费价格朔州建网站推荐布吉建设网站公司随州seo网站优化布吉企业网站改版推荐盐田网站推广方案报价鄂州模板网站建设佛山网站优化按天收费价格济源百姓网标王推荐仙桃网站开发报价汕尾SEO按天扣费推荐白城关键词按天收费推荐铜川营销型网站建设价格咸宁网站设计模板公司喀什网站建设设计报价白山优化多少钱迁安网站优化按天扣费公司遂宁模板网站建设价格平凉企业网站制作哪家好莱芜关键词按天扣费公司济源网站优化推广白城企业网站设计价格鹤岗优秀网站设计哪家好乐山关键词排名公司辽源推广网站公司梧州seo排名多少钱歼20紧急升空逼退外机英媒称团队夜以继日筹划王妃复出草木蔓发 春山在望成都发生巨响 当地回应60岁老人炒菠菜未焯水致肾病恶化男子涉嫌走私被判11年却一天牢没坐劳斯莱斯右转逼停直行车网传落水者说“没让你救”系谣言广东通报13岁男孩性侵女童不予立案贵州小伙回应在美国卖三蹦子火了淀粉肠小王子日销售额涨超10倍有个姐真把千机伞做出来了近3万元金手镯仅含足金十克呼北高速交通事故已致14人死亡杨洋拄拐现身医院国产伟哥去年销售近13亿男子给前妻转账 现任妻子起诉要回新基金只募集到26元还是员工自购男孩疑遭霸凌 家长讨说法被踢出群充个话费竟沦为间接洗钱工具新的一天从800个哈欠开始单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#中国投资客涌入日本东京买房两大学生合买彩票中奖一人不认账新加坡主帅:唯一目标击败中国队月嫂回应掌掴婴儿是在赶虫子19岁小伙救下5人后溺亡 多方发声清明节放假3天调休1天张家界的山上“长”满了韩国人?开封王婆为何火了主播靠辱骂母亲走红被批捕封号代拍被何赛飞拿着魔杖追着打阿根廷将发行1万与2万面值的纸币库克现身上海为江西彩礼“减负”的“试婚人”因自嘲式简历走红的教授更新简介殡仪馆花卉高于市场价3倍还重复用网友称在豆瓣酱里吃出老鼠头315晚会后胖东来又人满为患了网友建议重庆地铁不准乘客携带菜筐特朗普谈“凯特王妃P图照”罗斯否认插足凯特王妃婚姻青海通报栏杆断裂小学生跌落住进ICU恒大被罚41.75亿到底怎么缴湖南一县政协主席疑涉刑案被控制茶百道就改标签日期致歉王树国3次鞠躬告别西交大师生张立群任西安交通大学校长杨倩无缘巴黎奥运

PHP网站源码 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化