{"id":3448,"date":"2020-12-15T18:00:50","date_gmt":"2020-12-15T17:00:50","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=3448"},"modified":"2025-06-16T22:07:45","modified_gmt":"2025-06-16T20:07:45","slug":"offset-formula-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/es\/blog\/google-sheets-formulas\/offset-formula-google-sheets\/","title":{"rendered":"C\u00f3mo utilizar la funci\u00f3n OFFSET 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; 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 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.27.2&#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\/3093379?hl=en&amp;ref_topic=3105472\" target=\"_blank\" rel=\"noopener noreferrer\">OFFSET<\/a> function in Google Sheets references a range of cells that are <strong>shifted<\/strong> or\u00a0<strong>displaced<\/strong> from a starting reference cell. You specify this displacement by a number of rows and columns. In other words, OFFSET references a range that is a <strong>specific number of rows and columns away<\/strong> from the starting cell.<\/p>\n<p>If you want to offset multiple cells, you also indicate the <strong>size of the range of cells<\/strong> using height and width parameters.<\/p>\n<p>Offset is a handy function that allows you to use <strong>dynamic ranges<\/strong> in formulas. This means that the function will adapt to changes in the spreadsheet, such as when you add new data or columns.<\/p>\n<h3>Syntax<\/h3>\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>=OFFSET(cell_reference, offset_rows, offset_columns, [height], [width])<\/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<ul>\n<li><strong>cell_reference<\/strong> \u2013 the starting reference cell (or base cell) from which the range of cells is displaced.<\/li>\n<li><strong>offset_rows<\/strong> \u2013 the number of rows the range of cells displaces by. This takes in integer values, including negative numbers.<\/li>\n<li><strong>offset_columns<\/strong> \u2013 the number of columns the range of cells displaces by. Similar to offset_columns, this also takes in integer values, including negative numbers.<\/li>\n<li><strong>height<\/strong> \u2013 an optional parameter that specifies the height of the returning range of cells, starting from the offset cell that the above three parameters determine. This can be ignored if the reference to return is a single cell.<\/li>\n<li><strong>width<\/strong> \u2013 like height, this is an optional parameter that specifies the width of the returning range of cells starting from the offset cell, that the first three parameters determine. Similarly, you can also ignore this if the reference to return is a single cell.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/OFFSET-function-1.png&#8221; alt=&#8221;OFFSET function 1&#8243; title_text=&#8221;OFFSET function 1&#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_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 have typed some data into the red range of cells.<\/p>\n<p>I am using the OFFSET function to reference that data in the gold range of cells, by typing the formula <b>=OFFSET(B2,6,4,3,5)<\/b>.<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Connections T &#8211; One tool &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button vertical-banner-container&#8221; _builder_version=&#8221;4.27.4&#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; global_colors_info=&#8221;{}&#8221; global_module=&#8221;255434&#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;\">One tool to merge, split, and filter all your spreadsheet data<\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/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<h3>How to use the OFFSET function<\/h3>\n<p>As is the case with all functions and formulas, the best way to understand OFFSET is to see it in use.<\/p>\n<p>Below is some fictional sales data for a few employees across several business quarters.<\/p>\n<p>As you can see, I have used a different OFFSET function in each row:<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/OFFSET-function-2.png&#8221; alt=&#8221;OFFSET function 2&#8243; title_text=&#8221;OFFSET function 2&#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_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>If you use the OFFSET function directly, like I did in rows 2 and 3, it directly returns the range of cells and displays them across the spreadsheet. Therefore, for the case in row 3, the function displays the output in cells H3 to K3, because I specified that I wanted the range to have a width of <strong>4<\/strong>.<\/p>\n<p>You can also use the output range reference as an input to another array function, similar to what I did in rows 4 to 9.<\/p>\n<p>If you reference a range of cells that are <strong>before the first row <\/strong>or<strong> the first column, <\/strong>it\u00a0will result in a #REF! error. You can see this in row 10, where I tried to reference a cell above A1 (which obviously doesn\u2019t exist).<\/p>\n<h3>How to use OFFSET to create dynamic ranges<\/h3>\n<p>One of the main benefits of using the OFFSET function is that it allows you to create dynamic ranges. These are ranges that automatically adjust when you add new data to the spreadsheet.<\/p>\n<p>To illustrate this, I\u2019ve taken a subset of the data from the previous example, and I\u2019m using it to get the average Q1 sales for the salespeople shown.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/OFFSET-function-3.png&#8221; alt=&#8221;OFFSET function 3&#8243; title_text=&#8221;OFFSET function 3&#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_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>Instead of just using a typical AVERAGE function, I\u2019ve combined it with the OFFSET function by typing <strong>=Average(B2:Offset(B6,-1,0))<\/strong>.<\/p>\n<p>I am using the OFFSET function to define the range I want to be averaged. Here that is the array in cells <strong>B2 to B5<\/strong>.<\/p>\n<p>However, instead of typing <strong>B5<\/strong>, I offset it, essentially saying \u201cone cell above B6\u201d. Doing this creates a dynamic range that will update if I add or remove data.<\/p>\n<p>You can see this in the example below. Here I have added another salesperson, <strong>Albert<\/strong>, and the average sales updates automatically \u2014 thanks to the dynamic range.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/OFFSET-function-4.png&#8221; alt=&#8221;OFFSET function 4&#8243; title_text=&#8221;OFFSET function 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_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>You will notice that the formula has adjusted automatically. Instead of showing <strong>B6<\/strong> in the OFFSET function, it is now using cell <strong>B7<\/strong> instead.<\/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>#REF! Error \u2013 Circular reference<\/h3>\n<p>More often than not, you may come across instances where the OFFSET function output overlaps with the offset target, resulting in a circular reference.<\/p>\n<p>In such scenarios, Google Sheets returns a #REF! error.<\/p>\n<p>I&#8217;ve demonstrated this in the snapshot below with colored borderlines. You\u2019ll notice that I highlighted the possible overlap in red borders and yellow fill.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/OFFSET-function-5.png&#8221; alt=&#8221;OFFSET function 5&#8243; title_text=&#8221;OFFSET function 5&#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_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>That&#8217;s how to get started with Google Sheets OFFSET function. Looking for more spreadsheet tutorials and tips? Check out our other posts below!<\/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 OFFSET function in Google Sheets references a range of cells that are shifted or\u00a0displaced from a starting reference cell. You specify this displacement by a number of rows and columns. In other words, OFFSET references a range that is a specific number of rows and columns away from the starting cell. If you want [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":29339,"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\/3093379?hl=en&ref_topic=3105472\">OFFSET<\/a> formula in Google Sheets gives us the reference to a range of cells displaced from a starting reference cell. We specify the displacement in terms of a number of rows and columns. And, we indicate size range of cells using the height and width parameters.\n<h3>Syntax<\/h3>\n<strong><span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\">OFFSET(cell_reference, offset_rows, offset_columns, [height], [width])<\/span><\/strong>\n<ul>\n \t<li><strong><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\">cell_reference<\/span><\/strong> - this is the starting reference cell from which the range of cells is displaced.<\/li>\n \t<li><span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>offset_rows<\/strong><\/span> - it is the number of rows the range of cells displaces by. This takes in integer values, including negative numbers.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>offset_columns<\/strong><\/span> - it is the number of columns the range of cells displaces by. Similar to <span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>offset_columns<\/strong><\/span>, this also takes in integer values, including negative numbers.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>height<\/strong><\/span> - is an optional parameter specifies the height of the returning range of cells, starting from the offset cell that the above three parameters determine. This can be ignored if the reference to return is a single cell.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>width<\/strong><\/span> - like <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>height<\/strong><\/span>, also is an optional parameter that specifies the width of the returning range of cells starting from the offset cell, that the first three parameters determine. Similarly, this can be ignored too if the reference to return is a single cell.<\/li>\n<\/ul>\nWe illustrate this concept further in the following image.\n\n<img class=\"aligncenter size-full wp-image-3463\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/offset1-1.png\" alt=\"OFFSET Formula - Illustration 1\" width=\"1065\" height=\"266\" \/>\n\n\u00a0\n<h3>Usage: OFFSET Formula<\/h3>\nAs is the case always, practically applying the formula clears a lot of things up. Below is a fictional sales data of a few employees across quarters. So, let us try our hands on it. Please observe the behavior in all the cases in the snapshot below.\n\n<img class=\"aligncenter size-full wp-image-3451\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/offset2.png\" alt=\"OFFSET Formula - Illustration 2\" width=\"1237\" height=\"378\" \/>\n\nIf we use the OFFSET formula directly, like we did in the row # 2 and 3, it directly returns the range of cells and displays them across. Therefore, for the case in row # 3, the formula displays the output from H3 to K3.\n\nAlso, we can use the output range reference as an input to another array formula. Similar to what we did in the rows 4 through 9.\n\nIt is noteworthy that referencing a range of cells that are before first row or the first column, can result in an #REF! error. We illustrate this in the example on row # 10.\n<h5>#REF! Error - Circular reference<\/h5>\nMore often than not, we may come across instances where the OFFSET formula output may overlap with the offset target, resulting in a circular reference. In such scenarios, Google Sheets returns an #REF! error. We demonstrate this diagrammatically in the snapshot below with colored border lines. You'll notice that we highlighted the possible overlap in red borders and yellow fill.\n\n<img class=\"aligncenter size-full wp-image-3452\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/offset3.png\" alt=\"OFFSET Formula - Illustration 3\" width=\"1058\" height=\"354\" \/>\n\n\u00a0","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-3448","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\/3448","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=3448"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/3448\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media\/29339"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media?parent=3448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/categories?post=3448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/tags?post=3448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}