{"id":3567,"date":"2020-10-06T09:37:56","date_gmt":"2020-10-06T07:37:56","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=3567"},"modified":"2020-10-06T09:37:56","modified_gmt":"2020-10-06T07:37:56","slug":"formula-del-indice-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/es\/blog\/google-sheets-formulas\/index-formula-google-sheets\/","title":{"rendered":"C\u00f3mo utilizar la funci\u00f3n \u00cdNDICE en Google Sheets"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; module_class=&#8221;sheetgo-post&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#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; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The <a href=\"https:\/\/support.google.com\/docs\/answer\/3098242?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">INDEX function<\/a> in Google Sheets returns the value of a cell within an input range, relatively separated from the first cell by row and column offsets. This is similar to the index at the end of a book, which provides a quick way to locate specific content.<\/p>\n<h3>Syntax<\/h3>\n<p><strong>INDEX(reference, [row_offset], [column_offset])<\/strong><\/p>\n<ul>\n<li>reference \u2013 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>row_offset \u2013 the number of rows to offset from the starting cell.<\/li>\n<li>column_offset \u2013 the number of columns to offset from the starting cell.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>How to use the INDEX function in Google Sheets<\/h3>\n<p>Let\u2019s take a look at some practical examples to understand how to use this function.<\/p>\n<p>In the following examples I&#8217;ve used some fictitious data to show the INDEX function in use.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/10\/INDEX-example-1.png&#8221; alt=&#8221;INDEX-function-example-one&#8221; title_text=&#8221;INDEX example 1&#8243; _builder_version=&#8221;4.23.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>In the above screenshot, all the cases except the last one are pretty straightforward.<\/p>\n<p>Essentially, you give the formula a range of cells, then give it the coordinates of the cell in the range that you want it to return as the result. So in <strong>row 3<\/strong>, where the formula is =INDEX(A2:B11,8,2), I\u2019m telling the formula that I want the cell in row 8, column 2 of the array, which is $13,947.<\/p>\n<p>In the last example in the screenshot (<strong>row 5<\/strong>) I did not specify any row or column offsets. As a result, the function returned the complete set of values from the input reference range. If anything, this could serve as an input for another array formula. For instance, you could use this to consolidate data from multiple sheets, or you could do something like =COUNTA(INDEX(A2:A8)), that would have returned the value 7.<\/p>\n<p>Are there any cases where INDEX function might throw up an error? Of course, yes! When you try to point the function away from the confines of the input range, it does cough up an error, as shown in the screenshot below:<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/10\/INDEX-example-2.png&#8221; alt=&#8221;Index-function-google-sheetsexample-2&#8243; title_text=&#8221;INDEX example 2&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>How to use INDEX function in combination with other formulas<\/h3>\n<p>Here I&#8217;ll take a look at some use cases that demonstrate how Google Sheets INDEX function can be used in combination with other functions and formulas.<\/p>\n<h4>Use Case #1: INDEX function and COUNTA function<\/h4>\n<p>Combining the COUNTA function with the INDEX function can be useful in situations where, for instance, you always want to perform a calculation using the <strong>last row of data in a list<\/strong> that is regularly being added to.<\/p>\n<p>In the following screenshot, I have a spreadsheet that gets updated every week with the average temperature for that week.<\/p>\n<p>If I always want to perform a calculation with the most recent week\u2019s average temperature, I can use COUNTA and INDEX to always select the last entry, using the formula =INDEX((A:B), COUNTA(A:A),2)<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/10\/INDEX-example-3.png&#8221; alt=&#8221;INDEX-function-google-sheets-example-3&#8243; title_text=&#8221;INDEX example 3&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Here, the entire A and B columns are the range. The COUNTA(A:A) function counts the number of data points in column A and tells you how many there are, and the INDEX formula takes that number as the row that it will get its result from.<\/p>\n<p>The 2 at the end tells the formula that it will get the result from the second column of the range (column B). So no matter how many weeks you add to the list, the \u201cMost recent week\u201d will always stay up-to-date!<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Use Case #2: combining MATCH and INDEX functions<\/h3>\n<p>Perhaps one of the most powerful uses of INDEX function in Google Sheets is when it is used along with MATCH, in order to look up values.<\/p>\n<p>But there is already a VLOOKUP formula in Google Sheets for that purpose, right?<\/p>\n<p>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\/2020\/10\/INDEX-example-4.png&#8221; alt=&#8221;INDEX-function-google-sheets-example-4&#8243; title_text=&#8221;INDEX example 4&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The VLOOKUP formula in D2 looks up 161 in the <strong>Emp ID #<\/strong> column (as it\u2019s the leftmost in the range A2:B11), and from the row where it finds the value 161, it fetches the value located in the second column (i.e. Column B), while assuming the data is not sorted.<\/p>\n<p>So far, so good. But there are two critical problems with VLOOKUP in Google Sheets.<\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Connections B &#8211; Merge, split, filter &#8211; Vertical&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button vertical-banner-container&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; text_font=&#8221;||||||||&#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;50477&#8243; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/connections-top-processors-main.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;\">Merge, split, and filter spreadsheets<\/span><br \/><span style=\"color: #878d91; font-size: 18px; font-weight: 600;\">Regardless of the file format, Sheetgo can handle it.<\/span><\/p>\n<p><a href=\"https:\/\/workspace.google.com\/marketplace\/app\/sheetgo\/94172092257\" target=\"_blank\" rel=\"noopener\"><br \/><img decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/available-on-google-workspace-button-text.webp\" width=\"180\" height=\"\" alt=\"\" \/><br \/><\/a><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.2&#8243; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<h3>Problems with VLOOKUP that can be solved using the INDEX and MATCH functions<\/h3>\n<p>Before going further with examples of how to use the INDEX and MATCH functions in combination, I will outline two critical issues with the VLOOKUP, in order to give you an idea of the limitations of this function and when to use INDEX and MATCH instead.<\/p>\n<h4>Problem #1: Static cell referencing<\/h4>\n<p>What happens when you insert a new column between the first and second columns? Let\u2019s try that:<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/10\/INDEX-example-5.png&#8221; alt=&#8221;index-formula-google-sheets-example-5&#8243; title_text=&#8221;INDEX example 5&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>You\u2019ll notice the returned value is not &#8220;Ethan&#8221; anymore. This is because VLOOKUP is a semi-static formula.<\/p>\n<p>Google Sheets updated the second parameter to reflect the new range, but it did not accordingly change the column index (third parameter) when a new column was added before the <strong>Salesperson<\/strong> column.<\/p>\n<h4>Problem #2: Lookup column is always the leftmost<\/h4>\n<p>Situations may arise where you might have to lookup values from a column (Emp ID #) that is not the leftmost, as shown below.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/10\/INDEX-example-6.png&#8221; alt=&#8221;index-function-google-sheets-example-6&#8243; title_text=&#8221;INDEX example 6&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>In this case, moving the <strong>Emp ID #<\/strong> column to make it the leftmost would work. But that isn\u2019t an ideal approach \u2013 there can be data layout or presentation specifications that do not allow you to re-arrange columns.<\/p>\n<p>In that situation, what can you do? The MATCH and INDEX combination comes to the rescue. Here\u2019s the syntax, followed by a few examples.<\/p>\n<p><strong>INDEX(reference, MATCH(search_key, range, search_type))<\/strong><\/p>\n<p>The key to this combination is that both the ranges selected for the INDEX and MATCH functions, respectively, need to be a single column.<\/p>\n<p>You are essentially using a VLOOKUP, but specifying the column to look in, and the column to return the value from, in separate ranges within the MATCH and INDEX functions As you\u2019ll see, this methodology helps you avoid the errors that can occur using VLOOKUP.<\/p>\n<h3>MATCH function<\/h3>\n<p>I\u2019ll give a brief summary of the MATCH function here for those who are not familiar with it. The MATCH function takes a given search_key, which is that value that you\u2019re telling it to look for within a certain range. Unlike with the INDEX function, this needs to be one-dimensional (within just one column or one row).<\/p>\n<p>The MATCH function gives you the location of the item you\u2019ve told it to search for. For search_type you typically say 0, which tells the function it needs to be an exact match.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/10\/INDEX-example-7.png&#8221; alt=&#8221;index-function-example-7&#8243; title_text=&#8221;INDEX example 7&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>In the above example, I\u2019ve used the MATCH function to tell me which row contains Emp ID #161 within column C. The function returns a number that tells the INDEX function which row in column A to look for the Salesperson. The result is that the two functions combine to tell me the correct name (Ethan) for Emp ID #161. The formula I used to do this is =INDEX(A2:A11,MATCH(161,C2:C11,0)).<\/p>\n<p>As you can see, unlike VLOOKUP, the combination works even if the lookup column is not the leftmost (first three examples in the above screenshot). Not surprisingly, it also works like VLOOKUP, when the lookup column is the leftmost.<\/p>\n<p>Let\u2019s also see whether the functions hold up when you introduce a new column in between.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/10\/INDEX-example-8.png&#8221; alt=&#8221;index-function-google-sheets-example-8&#8243; title_text=&#8221;INDEX example 8&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Thankfully, they still work. As soon as I introduced a new column (State), Google Sheets updated the references automatically to accommodate this change.<\/p>\n<p>As you\u2019ve seen above, the MATCH and INDEX function combination is much more flexible and versatile than the already popular and powerful VLOOKUP function. But the combination of these functions can be even more powerful when you use two MATCH functions instead of just one.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Use case #3: INDEX function with two MATCH functions<\/h3>\n<p>You\u2019ve now seen how useful the INDEX and MATCH combination can be. But what if you have a bi-dimensional array from which you want to get a value? In this case, you can use the MATCH function twice within the INDEX function, as shown in the example below.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/10\/INDEX-example-9-1.png&#8221; alt=&#8221;index-function-google-sheets-example-9&#8243; title_text=&#8221;INDEX example 9 (1)&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>In this example, you can see data on the average temperature in each month, for the years 2015-2020. If you want to pull the average temperature of a specific month of a specific year out of this array, you can use the INDEX and MATCH combination to accomplish this. The function used here is:<\/p>\n<p>=INDEX(B2:M7, Match(B11, A2:A7, false), Match(B10, B1:M1, false))<\/p>\n<p>As you can see, I am using the MATCH function to give me the location of the row for the year I am looking for (in this case it\u2019s 2018, which is in the 4th row of data) as well as the column for the month I am looking for (September, in the 9th column of data). The INDEX function then takes these coordinates and returns the average temperature for September 2018.<\/p>\n<p>By using the INDEX and MATCH functions, you can not only get a search function that is more versatile than VLOOKUP, but you can also search bi-dimensional arrays. Learn more about <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/match-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Sheets MATCH function here<\/a>.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Did you like this post?<\/h4>\n<p>If you found this article useful, share it with your network via the social media buttons on the left!<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.22.2&#8243; background_color=&#8221;#f9f9ff&#8221; custom_margin=&#8221;40px||40px||false|false&#8221; custom_padding=&#8221;15px|25px|15px|25px|true|true&#8221; border_width_left=&#8221;3px&#8221; border_color_left=&#8221;#808e95&#8243; global_module=&#8221;26540&#8243; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><em><strong>Editor\u2019s note<\/strong>: This is a revised version of a previous post that has been updated for accuracy and comprehensiveness.<\/em><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The INDEX function in Google Sheets returns the value of a cell within an input range, relatively separated from the first cell by row and column offsets. This is similar to the index at the end of a book, which provides a quick way to locate specific content. Syntax INDEX(reference, [row_offset], [column_offset]) reference \u2013 the [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":27673,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"The <a href=\"https:\/\/support.google.com\/docs\/answer\/3098242?hl=en\">INDEX<\/a> formula in Google sheets returns the value of a cell within an input range, relatively separated from the first cell by row and column offsets. This is similar to the index at the end of a book, that gives us a quick way to pick a content.\n<h3>Syntax<\/h3>\n<strong><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\">INDEX(reference, [row_offset], [column_offset])<\/span><\/strong>\n<ul>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>reference<\/strong><\/span> - is the address of 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 \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>row_offset<\/strong><\/span> - the number of rows to offset from the starting cell.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>column_offset<\/strong><\/span> - the number of columns to offset from the starting cell.<\/li>\n<\/ul>\n<h3>Usage: INDEX Formula<\/h3>\nLet us practically apply the formula to simplify our understanding process. Consider the following fictitious data and we tried a few example cases.\n\n<img class=\"aligncenter size-full wp-image-3576\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/index1.png\" alt=\"INDEX Formula - Illustration 1\" width=\"954\" height=\"314\" \/>\n\nAll the cases except the last one are pretty straight forward. The last one though, where we did not specify any row or column offsets, returned the complete set of values from the input reference range. If anything, that could serve as an input to another array formula. For instance, we could do something like =COUNTA(INDEX(A2:A8)), that would have returned the value 7.\n\nCan we think of any cases where the formula might throw up an error? Of course, yes! When we try to point the formula away from the confines of the input range, it does cough up an error, as shown in the snapshot below.\n\n<img class=\"aligncenter size-full wp-image-3577\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/index2.png\" alt=\"INDEX Formula - Illustration 2\" width=\"1055\" height=\"314\" \/>\n<h5>Use Case: MATCH and INDEX formula combination<\/h5>\nPerhaps one of the most powerful uses of INDEX formula in Google Sheets is when we use it along with the <a href=\"https:\/\/support.google.com\/docs\/answer\/3093378?hl=en\">MATCH<\/a> formula, in order to lookup values. But we already have <a href=\"https:\/\/support.google.com\/docs\/answer\/3093318?hl=en\">VLOOKUP<\/a> formula in Google Sheets for this purpose, don\u2019t we? We have an example below:\n\n<img class=\"aligncenter size-full wp-image-3578\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/index3.png\" alt=\"INDEX Formula - Illustration 3\" width=\"678\" height=\"315\" \/>\n\nThe VLOOKUP formula in D2 looks up 161 in the 'Emp ID #' column (as it the left most in the range A2:B11), and from the row where there is the value 161, it fetches the value located in the second column (i.e. column B), while assuming the data is not sorted. So far, so good. But we have two critical problems with using VLOOKUP in Google Sheets.\n<h5><strong>Problem # 1<\/strong>: Static cell referencing.<\/h5>\nWhat happens when we insert a new column between the first and second columns? Let\u2019s try that.\n\n<img class=\"aligncenter size-full wp-image-3580\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/index4.png\" alt=\"INDEX Formula - Illustration 4\" width=\"778\" height=\"314\" \/>\n\nYou\u2019ll notice the returned value is not \u2018<strong>Ethan<\/strong>\u2019 anymore. Because, it was a semi-static formula. Google Sheets updated the second parameter to reflect the new range, but it did not accordingly change the column index (third parameter) when we added a new column before the \u2018<strong>Salesperson<\/strong>\u2018 column.\n<h5><strong>Problem # 2<\/strong>: Lookup column is always the left most<\/h5>\nSituations may arise where the we might have to lookup values from a column (Emp ID #) that is not the left most, as shown below.\n\n<img class=\"aligncenter size-full wp-image-3582\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/index5.png\" alt=\"\" width=\"350\" height=\"146\" \/>\n\nProbably, move the Emp ID # column to make it the left most? Good idea. But, that isn\u2019t an ideal approach. Because, there can be data layout or presentation specifications that do not allow us to re-arrange columns. What, in such a situation, is the solution? The MATCH and INDEX formula combination comes to our rescue. Here\u2019s the combination syntax, followed by a few examples.\n\n<strong>INDEX(reference, MATCH(search_key, range, search_type))<\/strong>\n\n<img class=\"aligncenter size-full wp-image-3583\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/index6.png\" alt=\"INDEX Formula - Illustration 6\" width=\"733\" height=\"314\" \/>\n\nAs we can see, unlike VLOOKUP, the combination works even if the lookup column is not the left most (first three examples). Not surprisingly, it also works like VLOOKUP, when the lookup column is the left most.\n\nAlso, let\u2019s see whether the formulas hold good, when we introduce a new column in between.\n\n<img class=\"aligncenter size-full wp-image-3584\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/index7.png\" alt=\"INDEX Formula - Illustration 7\" width=\"849\" height=\"314\" \/>\n\nThankfully, yes, they hold good. As soon as we introduced a new column (State), Google Sheets updated the references automatically to accommodate this change. Therefore, the MATCH and INDEX formula combination is much more flexible and versatile than the already popular and powerful VLOOKUP formula.\n\nLearn more about the MATCH formula to the following blog post: \"<strong><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/match-formula-google-sheets\/\">How to use the MATCH formula in Google Sheets<\/a><\/strong>\"","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-3567","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-formulas","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/3567","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=3567"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/3567\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media\/27673"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media?parent=3567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/categories?post=3567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/tags?post=3567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}