{"id":3465,"date":"2020-11-06T09:07:02","date_gmt":"2020-11-06T08:07:02","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=3465"},"modified":"2025-12-17T19:30:40","modified_gmt":"2025-12-17T18:30:40","slug":"formula-de-pesquisa-no-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/google-sheets-formulas\/lookup-formula-google-sheets\/","title":{"rendered":"Como usar a fun\u00e7\u00e3o LOOKUP do 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; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#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.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">The Google Sheets <\/span><a href=\"https:\/\/support.google.com\/docs\/answer\/3256570?hl=en\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">LOOKUP<\/span><\/a><span style=\"font-weight: 400;\"> function searches through a row or column for a key and returns the value of the cell in a result range located in the corresponding position to the search row or column. Like VLOOKUP and HLOOKUP, LOOKUP retrieves specific data from your spreadsheet but with two distinct differences:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">It only works if the data in the column or row is sorted. Luckily you can easily fix that with the <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/sort-formula-google-sheets\/\"><span style=\"font-weight: 400;\">SORT function<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">While VLOOKUP only searches vertically (in a column) and HLOOKUP only searches horizontally (in a row), LOOKUP formula can search both.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">This function\u2019s syntax is flexible and enables two different approaches to use it.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">Approach 1: Providing a search range and a distinct result range<\/span><\/h2>\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;]<\/p>\n<p>LOOKUP(search_key, search_range, result_range)<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">This approach looks up a key in a search range (e.g. A3: A12) and returns a value from a result range in the same position (e.g. F3: F12).<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">search_key: the value the function will search for.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">search_range: where the function will search for the search_key.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">result_range: from where the function will pull the result.<\/span><\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">Approach 2: Unified search and result range<\/span><\/h2>\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;]<\/p>\n<p>=LOOKUP(search_key, search_result_array)<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">This option allows you to search for a key in the first row or column to return a result from the last row or column in the array.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">search_result_array: the range you want to return a result from (e.g. A3: G15).\u00a0<\/span><\/li>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">It will search the first row or column in the array and pull the result from the last row or column.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">If the array contains more (or the same number of) columns than rows, the search will work vertically, searching the first column and pulling a result from the last column.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">If the array contains more rows than columns, the lookup will run horizontally within the rows.<\/span><\/li>\n<\/ul>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">How to use Google Sheets LOOKUP Formula<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">I\u2019ve applied the LOOKUP function to the data below and provided a few different examples of how to use it.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/GOOGLE-SHEETS-LOOKUP-FORMULA-1.png&#8221; alt=&#8221;GOOGLE SHEETS LOOKUP FORMULA 1&#8243; title_text=&#8221;GOOGLE SHEETS LOOKUP FORMULA 1&#8243; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.16&#8243; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">How to apply LOOKUP to a column<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">It\u2019s worth noting that LOOKUP, unlike VLOOKUP and HLOOKUP, can return values placed before the lookup column. Take a look at rows 4 and 5 to see examples of this.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You will also see that for the search_result_array option, the results come from the last row or column in the range. You can see this in the examples in rows 3 and 6. If you need to fetch results from a column or row in the middle of the range, you may have to use the <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/vlookup-formula-google-sheets\/\"><span style=\"font-weight: 400;\">VLOOKUP<\/span><\/a><span style=\"font-weight: 400;\"> or <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/use-hlookup-formula-google-sheets\/\"><span style=\"font-weight: 400;\">HLOOKUP<\/span><\/a><span style=\"font-weight: 400;\"> formulas.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">One underlying assumption in all of the examples, from rows 2 through to 6, is that the columns are sorted in ascending order.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">What if they data is not sorted in ascending order? How does LOOKUP formula behave in this instance?<\/span><\/p>\n<p><span style=\"font-weight: 400;\">I\u2019ve experimented with that in row 7. You\u2019ll notice that the Salary column is not sorted. While the formula itself has returned a value, it\u2019s incorrect. For the LOOKUP formula to function as expected, you need the lookup column to be sorted in ascending order.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Sometimes you might find that the lookup value does not match any of the values in the lookup column or row (the last example in the screenshot above). In this scenario, the formula will return the closest value to a match. This may not always make practical sense, and you might need an exact match. This is where this formula falls short, and you need to rely upon VLOOKUP and HLOOKUP for exact matching capabilities. Unlike those functions, LOOKUP function does not have an option for approximate vs. exact matches.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">How to apply LOOKUP to a row<\/span><\/h2>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/GOOGLE-SHEETS-LOOKUP-FORMULA-2.png&#8221; alt=&#8221;GOOGLE SHEETS LOOKUP FORMULA 2&#8243; title_text=&#8221;GOOGLE SHEETS LOOKUP FORMULA 2&#8243; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.16&#8243; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">Here the same logic applies, but you select ranges as rows instead of columns. You can use either syntax option, and just like in the previous example, you must sort your data in ascending order beforehand.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>LOOKUP Formula: Can it misbehave?<\/h4>\n<p><span style=\"font-weight: 400;\">So far I have been experimenting with equal-height columns or equal-width rows. What happens if I input a different sized reference to the <\/span><b>search_range<\/b><span style=\"font-weight: 400;\"> and the <\/span><b>result_range<\/b><span style=\"font-weight: 400;\">?<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/GOOGLE-SHEETS-LOOKUP-FORMULA-3.png&#8221; alt=&#8221;GOOGLE SHEETS LOOKUP FORMULA 3&#8243; title_text=&#8221;GOOGLE SHEETS LOOKUP FORMULA 3&#8243; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.16&#8243; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">You can see from the examples that different sized ranges do not cause an issue as long as the relative position of the matched value from the <\/span><b>search_range<\/b><span style=\"font-weight: 400;\"> does not exceed the size of the <\/span><b>result_range<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">I only get an error in the last example, where the result range is not large enough to match the row number of the search key in the search_range.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In the second and third examples, you can see that I don\u2019t get an error, but the answers are wrong. This is because the search_range and result_range do not align.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In the second example, the function determines that the item it\u2019s searching for is in the fifth row of the search_range. It then pulls the result from the fifth row of the result_range.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Because the ranges are not aligned, the result that the function fetches is wrong. This can be seen in the third example as well.<\/span><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>\u00a0Comparison of LOOKUP, VLOOKUP, and HLOOKUP<\/h2>\n<p><span style=\"font-weight: 400;\">I\u2019ve explained some of the differences between the LOOKUP function and its counterparts, the VLOOKUP and HLOOKUP functions. Now that you\u2019ve seen some examples and know how LOOKUP works, let&#8217;s look at the advantages, and disadvantages of each.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">LOOKUP<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">VLOOKUP\/HLOOKUP<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Can work both horizontally and vertically\u00a0<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">\u2714\ufe0f<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">\u274c<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Can search columns or rows regardless of their position<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">\u2714\ufe0f<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">\u274c*<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Works with unsorted data<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">\u274c<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Finds only exact matches<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">\u274c<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Can return wrong results<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">\u2714\ufe0f**<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">\u274c<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">* The VLOOKUP and HLOOKUP functions require the search column to be the left-most column or top-most row in the data set.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">** The LOOKUP function can bring wrong results if the data is unsorted instead of giving an error message.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">Key tips when using LOOKUP in Google Sheets:<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">When you are using the <\/span><b>search_result_array<\/b><span style=\"font-weight: 400;\"> option, if your range contains more columns than rows, LOOKUP will search from left to right over the first row of the range. This works like a horizontal lookup.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If your <\/span><b>search_key<\/b><span style=\"font-weight: 400;\"> is not found, the lookup will use the closest matching key in the range with a lower value. For example, if your search_key is 7 but your dataset contains 4,5,6,8 and 9, the lookup will return 6.<\/span><\/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; 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 Google Sheets LOOKUP function searches through a row or column for a key and returns the value of the cell in a result range located in the corresponding position to the search row or column. Like VLOOKUP and HLOOKUP, LOOKUP retrieves specific data from your spreadsheet but with two distinct differences: It only works [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":29290,"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\/3256570?hl=en\">LOOKUP<\/a> formula in Google Sheets searches through a row or column for a key and returns the value of the cell in a result range located in the same position as that of the search row or column. This very similar to the <a href=\"https:\/\/support.google.com\/docs\/answer\/3093318\">VLOOKUP<\/a> and <a href=\"https:\/\/support.google.com\/docs\/answer\/3093375\">HLOOKUP<\/a> formulas, but with two notable differences. Learn more about VLOOKUP and HLOOKUP formulas in this blog posts below:\u00a0<strong><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/vlookup-formula-google-sheets\/\">How to use the VLOOKUP formula in Google Sheets <\/a>\u00a0 &amp;\u00a0<\/strong>\"<strong><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/use-hlookup-formula-google-sheets\/\">How to use the HLOOKUP formula in Google Sheets<\/a><\/strong>\"\n<ul>\n \t<li>The LOOKUP expects a sorted column or row to search.<\/li>\n \t<li>While the VLOOKUP or HLOOKUP formulas, can only search on columns and rows respectively, the LOOKUP formula can handle either of them.<\/li>\n<\/ul>\n<h3>Syntax<\/h3>\n<span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\"><strong>LOOKUP(search_key, search_range|search_result_array, [result_range])<\/strong><\/span>\n<ul>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>search_key<\/strong><\/span> - is the value that the LOOKUP formula uses to search the lookup c<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>search_range|search_result_array<\/strong><\/span> - we have two options here. One is to use the combination of <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>search_range<\/strong><\/span> and the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>result_range<\/strong><\/span> together. Accordingly, we get output values from <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>result_range<\/strong><\/span>. The other is to ignore the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>result_range<\/strong><\/span> completely and only go with <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>search_result_array<\/strong><\/span>, where the formula searches first row or column and returns the value from the last row or column in the array.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>result_range<\/strong><\/span> - is the range of cells from which the formula returns a result. The output value corresponds to the matched value from the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>search_range<\/strong><\/span>.<\/li>\n<\/ul>\n<h3>Usage: LOOKUP Formula<\/h3>\nLet us try applying the formula on the fictitious data below. We have used various cases to demonstrate the application.\n\n<img class=\"aligncenter size-full wp-image-3500\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/Lookup1.png\" alt=\"LOOKUP Formula - Illustration 1\" width=\"1091\" height=\"315\" \/>\n\nIt is worth noting that the LOOKUP formula, unlike the VLOOKUP and HLOOKUP formulas, can return values before the lookup column. For instance, the cases in rows 4 and 5 illustrate this concept.\n\nAlso, please observe that for the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>search_result_array<\/strong><\/span> scenario, we see the results coming from the last row or column in the range. The cases in rows 3 and 6 explain this. However, if we need to fetch results from an interim column or row, we may have to bank upon the VLOOKUP and HLOOKUP formulas respectively.\n\nOne underlying assumption in all the cases from rows 2 through to 6 is that the columns are sorted in ascending order. What if they are not? How does the LOOKUP formula behave in such case? We experimented that in the case of row # 7. You'll notice the Salary column is not sorted. While the formula itself returned a value, it was incorrect. Hence, to have the LOOKUP formula function as expected, we need the lookup column sorted in ascending order.\n\nThere can be a practical situation where the lookup_value may not match with any of the values present in the lookup column or row (last case in the above snapshot). In such case, the formula hooks onto the nearest smaller value for a match. This may not make practical sense many times, and we might really need an exact match. This is where this formula falls short, and we need to rely upon VLOOKUP and HLOOKUP that offer exact match capabilities.\n\nThat was with the columns. Let us now try applying the formula to the rows.\n\n<img class=\"aligncenter size-full wp-image-3495\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/lookup2.png\" alt=\"LOOKUP Formula - Illustration 2\" width=\"1175\" height=\"333\" \/>\n<h5>LOOKUP Formula: Can it misbehave?<\/h5>\nSo far we have been experimenting with equal height columns or equal width rows. What if we input different sized reference to the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>search_range<\/strong><\/span> and the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>result_range<\/strong><\/span>?\n\n<img class=\"aligncenter size-full wp-image-3501\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/lookup3.png\" alt=\"LOOKUP Formula - Illustration 3\" width=\"1092\" height=\"316\" \/>\n\nWe can deduce from the examples that, the different sized ranges do not really cause an issue. As long as the relative position of the matched value from <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>search_range<\/strong><\/span> do not exceed the size of the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>result_range<\/strong><\/span>, that is!","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-3465","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\/pt\/wp-json\/wp\/v2\/posts\/3465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=3465"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/3465\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/29290"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=3465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=3465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=3465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}