{"id":49619,"date":"2024-05-28T17:35:29","date_gmt":"2024-05-28T15:35:29","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=49619"},"modified":"2026-05-04T22:42:38","modified_gmt":"2026-05-04T20:42:38","slug":"vlookup-importrange","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/google-sheets-formulas\/vlookup-importrange\/","title":{"rendered":"Como usar VLOOKUP e IMPORTRANGE no Planilhas Google"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#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; da_disable_devices=&#8221;off|off|off&#8221;][et_pb_row _builder_version=&#8221;4.24.1&#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.24.1&#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.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;\">Combining the power of VLOOKUP and IMPORTRANGE is a great way to transfer specific data between two spreadsheets. Expand the horizons of both functions and apply vlookup across Google Sheets.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Continue reading to use VLOOKUP across Google Sheets and discover how Sheetgo can provide a great alternative.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;overview&#8221; _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;\">An overview of IMPORTRANGE<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Let\u2019s review how IMPORTRANGE works. It\u2019s straightforward and only needs two arguments: the URL of the source spreadsheet and the range to import from it.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _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;\">=IMPORTRANGE(spreadsheet_url, range_string)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.2&#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;\">A few pointers to keep in mind:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You must <\/span><b>wrap both arguments in quotation marks<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>You need view access<\/b><span style=\"font-weight: 400;\"> to the source spreadsheet.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>This function will return a REF error<\/b><span style=\"font-weight: 400;\"> the first time it runs. To solve it, click the cell that contains the error and then allow access to the source spreadsheet.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Check out our <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/importrange\/\"><span style=\"font-weight: 400;\">ultimate guide to IMPORTRANGE<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;understanding&#8221; _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;\">Understanding VLOOKUP<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The VLOOKUP function searches across a range, one row at a time. If it finds a specific value in the first column, it returns a value in the same row from a specified column.<\/span><span style=\"font-weight: 400;\"> As its name indicates, it\u2019s commonly used to look up data.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It takes four arguments:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>search_key:<\/b><span style=\"font-weight: 400;\"> the value to match.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>range: <\/b><span style=\"font-weight: 400;\">the cell coordinates to search.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>index: <\/b><span style=\"font-weight: 400;\">the column offset that indicates which values to return. <\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>[is-sorted]:<\/b><span> whether the data is sorted. If unsure, set this to \u201cFALSE\u201d for good measure.<\/span><\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _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;\">=VLOOKUP(search_key, range, index, [is_sorted])<\/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<p><span style=\"font-weight: 400;\">Check out our <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/vlookup-formula-google-sheets\/\"><span style=\"font-weight: 400;\">deep dive into this function<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;combining&#8221; _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;\">Combining VLOOKUP and IMPORTRANGE<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Using these two functions together allows us to apply VLOOKUP between two Google Sheets. Something that would be impossible otherwise.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The idea is simple, we just have to use IMPORTRANGE as the VLOOKUP range. Below is the basic syntax for this combination.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _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;\">=VLOOKUP(search_key, range, index, [is_sorted])<\/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<p><span style=\"font-weight: 400;\">Let\u2019s take a look at what that formula would look like with real information.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _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;\">=VLOOKUP(A3, IMPORTRANGE(&#8220;2JLmFDIKcZPATrjWF_9js8Pvw3d2mWzSzYypB1s4z8uo\/edit#gid=1703103179&#8221;, &#8220;follow_up!A:B&#8221;), 2, FALSE))<\/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<p><b>This approach is good for importing small data sets.<\/b><span style=\"font-weight: 400;\"> However, if working with large spreadsheets, it\u2019s better to use VLOOKUP on the source spreadsheet and import the result.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;going&#8221; _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<h3><span style=\"font-weight: 400;\">Going a step further with ARRAYFORMULA<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The VLOOKUP can only be applied to one search key at a time. That means you would have to copy-paste it across necessary cells. To avoid this, we can add ARRAYFORMULA.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The formula below is an improved version. It includes this other function and provides a range for the VLOOKUP search key.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _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;\">=<\/span><span style=\"text-decoration: underline;\"><b>ARRAYFORMULA<\/b><b>(<\/b><\/span><span style=\"font-weight: 400;\">VLOOKUP(<\/span><span style=\"text-decoration: underline;\"><b>A3:A<\/b><\/span><span style=\"font-weight: 400;\">, IMPORTRANGE(&#8220;2JLmFDIKcZPATrjWF_9js8Pvw3d2mWzSzYypB1s4z8uo&#8221;, &#8220;follow_up!A:B&#8221;), 2, FALSE)<\/span><span style=\"text-decoration: underline;\"><b>)<\/b><\/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<p><span style=\"font-weight: 400;\">Unfortunately, this new formula also introduces an issue: the arrayformula returns a series of errors if information is missing.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;cleaning&#8221; _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<h3><span style=\"font-weight: 400;\">Cleaning up with ARRAY_CONSTRAIN<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The errors introduced by the last modification can be fixed by constraining the number of rows in the array. For that we will use ARRAY_CONSTRAIN to add this limitation. Again, the modifications are in bold.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _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;\">=<\/span><span style=\"text-decoration: underline;\"><b>ARRAY_CONSTRAIN(<\/b><\/span><span style=\"font-weight: 400;\">ARRAYFORMULA(VLOOKUP(A3:A, IMPORTRANGE(&#8220;2JLmFDIKcZPATrjWF_9js8Pvw3d2mWzSzYypB1s4z8uo&#8221;, &#8220;follow_up!A:B&#8221;), 2, FALSE)), <\/span><span style=\"text-decoration: underline;\"><b>COUNTA(A3:A), 1)<\/b><\/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<p><span style=\"font-weight: 400;\">The only significant change in this formula is the use of COUNTA for the number of rows. This function will count all the cells containing values that VLOOKUP can try to match.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">And that\u2019s the final iteration of this formula, these final changes made it simpler and more efficient.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;common&#8221; _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;\">Common use cases<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Using both VLOOKUP and IMPORTRANGE can significantly enhance your data management. Here are some use cases that highlight how this combination could be useful.<\/span><\/p>\n<p><b>Employee Information<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Case: Human Resources keeps employee records in one spreadsheet, but each department has separate project assignment sheets.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Solution: Import employee records into department-specific sheets, then match project assignments with employee details like names and positions.<\/span><\/li>\n<\/ul>\n<p><b>Inventory Management<\/b><\/p>\n<ul><\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Case: Your company has several warehouses, each maintaining its own inventory spreadsheet.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Solution: Import data from each warehouse&#8217;s sheet into a master inventory tracker, find stock levels and item details across all locations.<\/span><\/li>\n<\/ul>\n<p><b>Financial Analysis<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Case: You manage multiple client accounts, each with its own financial records spreadsheet.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Solution: Import and aggregate financial data from all client sheets into one. Afterwards, look up financial metrics to analyze (for example, total revenue, expenses, and profit margins per client).<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">With the power of VLOOKUP and IMPORTRANGE on your side, you can manage and analyze data across multiple spreadsheets.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;using&#8221; _builder_version=&#8221;4.27.2&#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;\">Using Sheetgo to transfer and process data<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Unfortunately relying heavily on both of these functions can be problematic. <\/span><b>Importrange breaks often and slows down spreadsheets<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><b>We have a solution: Sheetgo connections. <\/b><span style=\"font-weight: 400;\">This feature can transfer data like IMPORTRANGE and process it like VLOOKUP. But it\u2019s more efficient, as it allows you to configure when to transfer the data. It also gives you a lot of processing options and allows you to introduce forms to gather data.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Since Sheetgo is a no-code tool you can forget about using and maintaining all these complicated functions. Just set up your connections and keep important data close at hand.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Cut out data handling tasks and free up time for more important tasks, <\/span><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">try out Sheetgo today<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;use&#8221; _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;\">Use VLOOKUP between two Google Sheets<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Now you know how to put these two great functions together. For a related set of complementary functions, check out <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/combine-query-with-importrange-in-google-sheets\/\"><span style=\"font-weight: 400;\">how to combine QUERY and IMPORTRANGE<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When VLOOKUP+IMPORTRANGE hits a scale ceiling, the <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/how-to-solve-with-sheetgo\/importrange-alternative\/\"><span style=\"font-weight: 400;\">no-formula IMPORTRANGE alternative<\/span><\/a><span style=\"font-weight: 400;\"> shows how to connect and merge sheets without cell-level references.<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Combining the power of VLOOKUP and IMPORTRANGE is a great way to transfer specific data between two spreadsheets. Expand the horizons of both functions and apply vlookup across Google Sheets. Continue reading to use VLOOKUP across Google Sheets and discover how Sheetgo can provide a great alternative.An overview of IMPORTRANGE Let\u2019s review how IMPORTRANGE works. [&hellip;]<\/p>\n","protected":false},"author":33,"featured_media":44470,"comment_status":"closed","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":[54],"tags":[39,28],"class_list":["post-49619","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\/49619","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\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=49619"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/49619\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/44470"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=49619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=49619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=49619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}