{"id":30295,"date":"2021-01-29T21:18:33","date_gmt":"2021-01-29T20:18:33","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=30295"},"modified":"2021-01-29T21:18:33","modified_gmt":"2021-01-29T20:18:33","slug":"index-match-excel","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/es\/blog\/excel-functions\/index-match-excel\/","title":{"rendered":"C\u00f3mo utilizar la combinaci\u00f3n de funciones INDEX MATCH de Excel"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; module_class=&#8221;sheetgo-post&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The INDEX and MATCH functions in Excel are both useful for a variety of purposes. But when you combine the two functions, they create an extremely powerful tool to search arrays of data and return their desired results. The INDEX and MATCH combination is essentially a more powerful and flexible version of the VLOOKUP function, which itself is a commonly used and handy function in Excel. In this article, I\u2019ll demonstrate how to use the INDEX and MATCH combination, and show why it\u2019s often better than the VLOOKUP function. But first, I\u2019ll give an overview of the INDEX and MATCH functions individually.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; type=&#8221;4_4&#8243; theme_builder_area=&#8221;post_content&#8221;][et_pb_text admin_label=&#8221;Connections T &#8211; Automate data transfers &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img  md2-contained-button-light vertical-banner-container&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#003999&#8243; max_width=&#8221;700px&#8221; module_alignment=&#8221;center&#8221; max_height=&#8221;300px&#8221; custom_margin=&#8221;20px|0px|20px|0px|true|true&#8221; custom_padding=&#8221;25px|25px|25px|25px|true|true&#8221; sticky_limit_bottom=&#8221;section&#8221; border_radii=&#8221;on|20px|20px|20px|20px&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#d9e7ff&#8221; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; global_module=&#8221;50468&#8243; theme_builder_area=&#8221;post_content&#8221;]<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Add-on-sm_sheets-connected-new-connection.webp\" width=\"250\" height=\"168\" alt=\"\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Recommended-for-Google-Workspace-badge.webp\" width=\"150\" height=\"180\" alt=\"39\" \/><\/p>\n<p><span style=\"color: #ffffff; font-size: 22px; font-weight: 600;\">Automate data transfers beyond Importrange<\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>INDEX function<\/h3>\n<p>The <a href=\"https:\/\/support.microsoft.com\/en-us\/office\/index-function-a5dcf0dd-996d-40a4-a822-b56b061328bd\" target=\"_blank\" rel=\"noopener noreferrer\">INDEX function in Excel<\/a> returns the value of a cell specified by a certain number of column and row offsets. It works similar to the index of a book, which we use to quickly find certain content and chapters. To get an idea of how this works in practice, take a look at the example below.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/01\/1.-Excel-index-match-Index-function.png&#8221; alt=&#8221;index match excel 1&#8243; title_text=&#8221;1. Excel index match Index function&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.23.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Here I\u2019ve asked the INDEX function to give me the third value in the specified range. The function returns Charlie as the result, the third name in the list.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>MATCH function<\/h3>\n<p>Now let&#8217;s take a look at the <a href=\"https:\/\/support.microsoft.com\/en-us\/office\/match-function-e8dffd45-c762-47d6-bf89-533f4a37673a\" target=\"_blank\" rel=\"noopener noreferrer\">MATCH function<\/a>. This function does the exact opposite of the INDEX function \u2013 it takes a specified value and returns the location within an array.<\/p>\n<p>Unlike the previous example, in which I asked the INDEX function to return the third name in the list, I now ask the MATCH function to find Charlie. As a result, the MATCH function tells me that Charlie is the third name in the list.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/01\/2.-Excel-index-match-Match-function.png&#8221; alt=&#8221;index match excel 2&#8243; title_text=&#8221;2. Excel index match Match function&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Now that I\u2019ve highlighted both functions separately, I will demonstrate just how powerful they are when you use them together.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>INDEX MATCH Excel function<\/h3>\n<h4>Syntax<\/h4>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.16&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]=INDEX(reference, MATCH(search_key, range, search_type), [MATCH(search_key, range, search_type)])[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ul>\n<li><b>reference<\/b> \u2013 is the address of the range of cells within which the offset is evaluated from the very first cell (on the top left). Accordingly, the INDEX formula returns the value of the offset target cell.<\/li>\n<li><b>search_key<\/b> \u2013 is the <b>item<\/b> that the MATCH function searches for within the <b>range<\/b> of cells. It can be a pure text (\u2018<b>Evan<\/b>\u2019), or a cell reference (like <b>A7<\/b>), or even a function that returns a string or a number (like <b>LEFT(\u201cMike Johnson\u201d,8)<\/b> or <b>DATE(2017,1,1)<\/b>).<\/li>\n<li><b>range<\/b> \u2013 is the group of cells where the MATCH function searches for the <b>item (search_key)<\/b>. This must be a one-dimensional array, i.e. either a range with a single column or a single row.<\/li>\n<li><b>search_type<\/b> \u2013 is an optional input that directs how the MATCH function should search for the <b>search_key<\/b> in the <b>range<\/b>. This is typically 0, which indicates that it must be an exact MATCH.<\/li>\n<li>You use the second MATCH function when searching a bi-dimensional array of data, for example if you need the MATCH function to identify both the vertical and horizontal offset.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Using the INDEX MATCH combination<\/h4>\n<p>The syntax above looks complicated, but I\u2019ll give an example using the INDEX and MATCH combination in order to demonstrate how simple it really is.<\/p>\n<p>Take a look at the screenshot below. I want the spreadsheet to tell me which person has a test score of 83. The formula I use for this example is\u00a0<b>=INDEX(A2:A9,MATCH(83,C2:C9,0))<\/b>.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/01\/3.-Excel-index-match-function.png&#8221; alt=&#8221;index match excel 3&#8243; title_text=&#8221;3. Excel index match function&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>I&#8217;ve used the INDEX function, but instead of hardcoding the row number that I want it to return (like in the first example when I asked the INDEX function to return the third name of the list), I use the MATCH function to dynamically input the row that I want. The MATCH function takes my input (test score of 83) and tells the INDEX function in which row the number 83 appears. The INDEX function then takes that row number and selects the corresponding name (Emily).<\/p>\n<p>At this point you might think &#8220;why don\u2019t you just use the VLOOKUP function to do this?. Why bother combining two separate functions?&#8221; Well, there are a few different reasons, and they have to do with the limitations of the VLOOKUP function.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Limitations of the VLOOKUP function<\/h4>\n<p>The VLOOKUP function searches for a given input within an array, then outputs the data from another column corresponding to the row in which the input value was found. It is a very useful function, but it does have some limitations which I\u2019ll outline below.<\/p>\n<p>But first, here\u2019s an example in which I use the VLOOKUP function to find the test score of Emily within the dataset.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/01\/4.-Excel-index-match-Vlookup-function.png&#8221; alt=&#8221;index match excel 4&#8243; title_text=&#8221;4. Excel index match Vlookup function&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h5>Limitation 1 of VLOOKUP<\/h5>\n<p>The first limitation of the VLOOKUP function is that it can only be used to return the value in the leftmost column of the data. This wasn\u2019t an issue in the previous example because there, I searched for the name of the student.<\/p>\n<p>However, if I want to find the test score of Emily (by inputting \u201cEmily\u201d as the phrase to search for),\u00a0 the function returns an <b>#N\/A<\/b> error. I asked to return a value (Test score) that is not in the leftmost column of the array.[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/01\/5.-Excel-index-match-Vlookup-leftmost-column.png&#8221; alt=&#8221;index match excel 5&#8243; title_text=&#8221;5. Excel index match Vlookup leftmost column&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h5>Limitation 2 of VLOOKUP<\/h5>\n<p>The second limitation of the VLOOKUP function is that it is a static function that does not automatically update when you add new columns.<\/p>\n<p>In the example below, I&#8217;ve used the same VLOOKUP function as in the previous example (finding the test score of Emily) and I&#8217;ve added a column to indicated whether or not each student lives on campus.<\/p>\n<p>If the VLOOKUP function automatically updated, there would be no change to the result and I would still get Emily as the output. This is not the case however: the function returns 22 as the result.<\/p>\n<p>This is obviously not the value I was searching for, and is a good example of how the VLOOKUP function won\u2019t adapt to changes you make in your spreadsheet (like adding a new column for example).<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/01\/6.-Excel-index-match-Vlookup-column-added.png&#8221; alt=&#8221;index match excel 6&#8243; title_text=&#8221;6. Excel index match Vlookup column added&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>If I do the same thing with an INDEX MATCH function on the other hand, the result doesn&#8217;t change.<\/p>\n<p>Take a look at he example below. I\u2019ve added an extra column to the data, and the INDEX MATCH function still works as a charm.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/01\/7.-Excel-index-match-vs.-Vlookup.png&#8221; alt=&#8221;index match excel 7&#8243; title_text=&#8221;7. Excel index match vs. Vlookup&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>INDEX MATCH with two matches (Bi-dimensional array)<\/h4>\n<p>By now you\u2019ve seen how useful the INDEX MATCH combination can be. But what if you have data that is 2-dimensional? In that case, you should use the INDEX function with two MATCH functions to get the value you\u2019re looking for.<\/p>\n<p>Here, you see a variety of test scores for different subjects of each student. The INDEX function combined with two MATCH functions identifies the test score for a specific student and a specific subject. <\/p>\n<p>The function I use here is <b>=INDEX(B2:F9,MATCH(B12,A2:A9,FALSE),MATCH(B13,B1:F1,FALSE))<\/b>.[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/01\/8.-Excel-index-match-bidirectional.png&#8221; alt=&#8221;index match excel 8&#8243; title_text=&#8221;8. Excel index match bidirectional&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]The logic behind this is the same as for a single INDEX MATCH combination: the MATCH function provides the \u201ccoordinates\u201d of the desired value. This time, though, we need two MATCH functions: one to give the vertical offset, and one for the horizontal offset. <\/p>\n<p>The best part is that I can type any student\u2019s name and subject into cells B12 and B13 and immediately get the corresponding test score.[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; type=&#8221;4_4&#8243; theme_builder_area=&#8221;post_content&#8221;][et_pb_text admin_label=&#8221;Connections T &#8211; Automate between spreadsheets &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button-light vertical-banner-container&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#f2f7ff&#8221; max_width=&#8221;700px&#8221; module_alignment=&#8221;center&#8221; max_height=&#8221;300px&#8221; custom_margin=&#8221;20px|0px|20px|0px|true|true&#8221; custom_padding=&#8221;25px|25px|25px|25px|true|true&#8221; sticky_limit_bottom=&#8221;section&#8221; border_radii=&#8221;on|20px|20px|20px|20px&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#d9e7ff&#8221; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; global_module=&#8221;50460&#8243; theme_builder_area=&#8221;post_content&#8221;]<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/run-automatically-connect-sheet-icons.webp\" width=\"250\" height=\"168\" alt=\"\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Recommended-for-Google-Workspace-badge.webp\" width=\"150\" height=\"180\" alt=\"39\" \/><\/p>\n<p><span style=\"font-size: 22px; font-weight: 600;\">Automate data transfers between spreadsheets<br \/>\n<\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The INDEX and MATCH functions in Excel are both useful for a variety of purposes. But when you combine the two functions, they create an extremely powerful tool to search arrays of data and return their desired results. The INDEX and MATCH combination is essentially a more powerful and flexible version of the VLOOKUP function, [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":30416,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[65],"tags":[39,48,28],"class_list":["post-30295","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-excel-functions","tag-connections-t","tag-excel","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/30295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/comments?post=30295"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/30295\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media\/30416"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media?parent=30295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/categories?post=30295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/tags?post=30295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}