{"id":2896,"date":"2016-05-04T23:04:39","date_gmt":"2016-05-04T21:04:39","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=2896"},"modified":"2024-05-15T19:46:50","modified_gmt":"2024-05-15T17:46:50","slug":"create-dynamic-data-range-offset-function-excel","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/create-dynamic-data-range-offset-function-excel\/","title":{"rendered":"Create a Dynamic Data Range with the OFFSET function"},"content":{"rendered":"<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/100-5.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6376 size-full\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/728x90.gif\" alt=\"Excel OFFSET function\" width=\"728\" height=\"90\" title=\"\"><\/a><\/p>\n<p><em><strong>What does it do?<\/strong><\/em><\/p>\n<p>It returns a reference to a range, from a starting point to a specified number of rows, columns, height and width of cells<\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>=OFFSET(<span style=\"color: #008000\">reference<\/span>, <span style=\"color: #ff0000\">rows<\/span>, <span style=\"color: #ff6600\">columns<\/span>, <span style=\"color: #0000ff\">[height]<\/span>,<span style=\"color: #800080\"> [width]<\/span>)<\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<p>=OFFSET(<span style=\"color: #008000\">start in this cell<\/span>, <span style=\"color: #ff0000\">go up\/down a number of rows<\/span>, <span style=\"color: #ff6600\">go left\/right a number of columns<\/span>, <span style=\"color: #0000ff\">height of range<\/span>, <span style=\"color: #800080\">width of range<\/span>)<\/p>\n<hr \/>\n<p>The <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/category\/formulas\/lookup\/offset\/\" target=\"_blank\" rel=\"noopener\">OFFSET function in Excel<\/a> is one of the Lookup functions and is great if you want to reference a range of cells and use that reference to do a calculation.<\/p>\n<p><span style=\"text-decoration: underline;color: #0000ff\"><a style=\"color: #0000ff;text-decoration: underline\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/excel-offset-function-introduced\/\" target=\"_blank\" rel=\"noopener noreferrer\">Click here to see how the formula works visually &amp; interactively\u00a0<\/a><\/span><\/p>\n<p>When we have a large data set and add new rows\/columns of data on a daily basis, we sometimes want to capture that new data in\u00a0our analysis automatically without having to amend the\u00a0data range.<\/p>\n<p>One example is when we are using a <a class=\"wpil_keyword_link\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/101-excel-pivot-tables\/\" target=\"_blank\" rel=\"noopener\" title=\"Pivot Table\" data-wpil-keyword-link=\"linked\">Pivot Table<\/a> and our data source is not in an Excel Table. \u00a0We want the new data to be added in the Pivot Table&#8217;s Data Source automatically without having to Change the Data Source each time manually.<\/p>\n<p>This is how it is done below (go to the bottom of the page if you want to see the animated gif tutorial):<br \/>\n<iframe src=\"https:\/\/www.youtube.com\/embed\/piSdjqkn1WM?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"width: 0px;overflow: hidden;line-height: 0\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p><span style=\"text-decoration: underline;color: #0000ff\"><a class=\"IRPP_minimalist icon-download\" style=\"color: #0000ff;text-decoration: underline\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/Offset-Dynamic-Data-Range.xlsx\" target=\"_blank\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<\/span><span class=\"postTitle px-3\">Offset-Dynamic-Data-Range.xlsx<\/span><\/a><\/span><\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 1:<\/strong> <\/span>We need to <strong>enter the <em>Offset\u00a0<\/em>function<\/strong><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-flat ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li><a href=\"#\" class=\"scroll-to-download\">Free Practice Workbook<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/create-dynamic-data-range-offset-function-excel\/#OFFSET\" title=\"=OFFSET\">=OFFSET<\/a><\/li><\/ul><\/nav><\/div>\n<h2 style=\"text-align: center\"><span class=\"ez-toc-section\" id=\"OFFSET\"><\/span><span style=\"color: #0000ff\">=OFFSET<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 2:<\/strong><\/span> 1st Offset argument &#8211; <strong>Where do we want to to start our reference?<\/strong><\/p>\n<p>This is at the start of the data source (i.e. the top left hand corner)<\/p>\n<p><strong>Make sure to add an absolute reference to the 1st argument by pressing F4<\/strong><\/p>\n<h2 style=\"text-align: center\">=OFFSET(<span style=\"color: #0000ff\">$A$10<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/1st-offset-argument.jpg\" rel=\"attachment wp-att-2899\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"size-full wp-image-2899 aligncenter\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/1st-offset-argument.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"436\" height=\"161\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/1st-offset-argument.jpg 436w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/1st-offset-argument-300x111.jpg 300w\" sizes=\"(max-width: 436px) 100vw, 436px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 3:<\/strong> <\/span>2nd Offset argument &#8211; <strong>How many Rows down do we want to go?<\/strong><\/p>\n<p>As we want the referenced range to\u00a0start at cell A10, we simply enter 0<\/p>\n<h2 style=\"text-align: center\">=OFFSET($A$10<span style=\"color: #000000\">,<\/span><span style=\"color: #0000ff\">\u00a00,<\/span><\/h2>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/2nd-offset-argument.jpg\" rel=\"attachment wp-att-2900\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2900\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/2nd-offset-argument.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"416\" height=\"200\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/2nd-offset-argument.jpg 416w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/2nd-offset-argument-300x144.jpg 300w\" sizes=\"(max-width: 416px) 100vw, 416px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 4:<\/strong> <\/span>3rd Offset argument &#8211; <strong>How many Columns to the right\/left do we want to move?<\/strong><\/p>\n<p>We do not want to move to any Columns, so we simply enter 0<\/p>\n<h2 style=\"text-align: center\">=OFFSET($A$10<span style=\"color: #000000\">,<\/span><span style=\"color: #0000ff\"><span style=\"color: #000000\">\u00a00,<\/span>0,<\/span><\/h2>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/3rd-offset-argument.jpg\" rel=\"attachment wp-att-2902\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2902\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/3rd-offset-argument.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"423\" height=\"228\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/3rd-offset-argument.jpg 423w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/3rd-offset-argument-300x162.jpg 300w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 5:<\/strong><\/span> 4th Offset argument &#8211; <strong>How High do we want our referenced data to be?<\/strong><\/p>\n<p>This is where the COUNTA function is used to count how many transactions we have in our data vertically\u00a0and return\u00a0the<em> [height]<\/em>\u00a0of our data.<\/p>\n<p>So as we are starting at cell A10, we are going to capture\u00a013 cells downwards ( <em>COUNTA(A10:A1048576)<\/em> ) i.e.\u00a0The range\u00a0up to the last active vertical cell of our data.<\/p>\n<p>NB: It is always a good idea to enter an ending range that is more than your last data cell or up till the last row number i.e. 1,048,756. \u00a0That way as your new data get entered, we will be sure to capture it!<\/p>\n<p><strong>Make sure to add an absolute reference to the 4th\u00a0argument by pressing F4<\/strong><\/p>\n<h2 style=\"text-align: center\">=OFFSET($A$10<span style=\"color: #000000\">,<\/span><span style=\"color: #0000ff\"><span style=\"color: #000000\">\u00a00,0,<span style=\"color: #0000ff\">COUNTA($A$10:$A$1048576<\/span><\/span><\/span><\/h2>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/4th-offset-argument.png\" rel=\"attachment wp-att-2906\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2906\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/4th-offset-argument.png\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"443\" height=\"495\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/4th-offset-argument.png 443w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/4th-offset-argument-268x300.png 268w\" sizes=\"(max-width: 443px) 100vw, 443px\" \/><\/a><\/p>\n<p style=\"text-align: left\"><span style=\"color: #ff0000\"><strong>STEP 6:<\/strong><\/span> 5th Offset argument &#8211; <strong>How Wide\u00a0do we want our referenced data to be?<\/strong><\/p>\n<p>This is where the COUNTA function is used to count how many transactions we have in our data horizontally\u00a0and return\u00a0the<em> [width]\u00a0<\/em>of our data.<\/p>\n<p>So as we are starting at cell A10, we are going to capture 3\u00a0cells to the right( <em>COUNTA($A$10:$XFC$10)<\/em> ) i.e.\u00a0The range\u00a0up to the last active horizontal\u00a0cell of our data.<\/p>\n<p>NB: It is always a good idea to enter an ending range that is more than your last data cell or up till the last column\u00a0number i.e. XFC. \u00a0That way as your new data get entered, we will be sure to capture it!<\/p>\n<p><strong>Make sure to add an absolute reference to the 4th\u00a0argument by pressing F4<\/strong><\/p>\n<h2 style=\"text-align: center\">=OFFSET($A$10<span style=\"color: #000000\">,<\/span><span style=\"color: #0000ff\"><span style=\"color: #000000\">\u00a00,0,COUNTA($A$10:$A$1048576,),<span style=\"color: #0000ff\">COUNTA($A$10:$XFC$10))<\/span><\/span><\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/5th-offset-argument.png\" rel=\"attachment wp-att-2910\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"size-full wp-image-2910 aligncenter\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/5th-offset-argument.png\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"807\" height=\"111\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/5th-offset-argument.png 807w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/5th-offset-argument-300x41.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/5th-offset-argument-768x106.png 768w\" sizes=\"(max-width: 807px) 100vw, 807px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left\">As you can see from the image below, the OFFSET function captures the following data range:<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/offset-data-range.jpg\" rel=\"attachment wp-att-2909\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2909\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/offset-data-range.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"432\" height=\"437\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/offset-data-range.jpg 432w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/offset-data-range-297x300.jpg 297w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/a><\/p>\n<p style=\"text-align: left\"><span style=\"color: #ff0000\"><strong>STEP 7:<\/strong><\/span>\u00a0Now that we have our OFFSET function, we need to<strong> create a Named Range<\/strong> for it so we can use it as our data source\u00a0in <strong>Step 9<\/strong>.<\/p>\n<p style=\"text-align: left\">To do this we need to <strong>select the whole OFFSET function and Copy it<\/strong>&#8230;<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/copy-offset-formula.jpg\" rel=\"attachment wp-att-2911\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"size-full wp-image-2911 aligncenter\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/copy-offset-formula.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"490\" height=\"171\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/copy-offset-formula.jpg 490w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/copy-offset-formula-300x105.jpg 300w\" sizes=\"(max-width: 490px) 100vw, 490px\" \/><\/a><\/p>\n<p style=\"text-align: left\">&#8230;and go to <em><strong><a class=\"wpil_keyword_link\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/top-excel-formulas-function-examples-to-get-better-at-microsoft-excel\/\" target=\"_blank\" rel=\"noopener\" title=\"Formulas\" data-wpil-keyword-link=\"linked\">Formulas<\/a> &gt; Name Manager &gt; New<\/strong><\/em>:<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/name-manager-1.jpg\" rel=\"attachment wp-att-2930\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2930\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/name-manager-1.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"304\" height=\"123\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/name-manager-1.jpg 304w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/name-manager-1-300x121.jpg 300w\" sizes=\"(max-width: 304px) 100vw, 304px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 8:<\/strong><\/span>\u00a0In the New Name dialogue box we need to<strong> enter a custom name<\/strong> with no spaces e.g. <em>Data_Range<\/em>\u00a0in the\u00a0<em><strong>Name:<\/strong><\/em>\u00a0area and <strong>paste the OFFSET function from Step 7<\/strong> in the <em><strong>Refers to:<\/strong><\/em> area and press <strong>OK<\/strong><\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/New-Named-Range.jpg\" rel=\"attachment wp-att-2913\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2913\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/New-Named-Range.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"515\" height=\"333\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/New-Named-Range.jpg 515w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/New-Named-Range-300x194.jpg 300w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p style=\"text-align: left\"><span style=\"color: #ff0000\"><strong>STEP 9:<\/strong><\/span>\u00a0We need to insert a Pivot Table by going to <em><strong>Insert &gt; Pivot Tabl<\/strong><strong>e<\/strong><\/em>&#8230;<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/insert-a-pivot-table.jpg\" rel=\"attachment wp-att-2915\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2915\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/insert-a-pivot-table.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"204\" height=\"130\" \/><\/a><\/p>\n<p style=\"text-align: left\">&#8230;and in the Create PivotTable dialogue box we need to<strong> manually enter the Named Range from Step 8 i.e.\u00a0<em>Data_Range<\/em><\/strong>\u00a0into the <strong>Table\/Range area<\/strong>, choose a <strong>New\/Existing Worksheet<\/strong> and press <strong>OK<\/strong>:<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/Create-Pivot-Table.jpg\" rel=\"attachment wp-att-2916\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2916\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/Create-Pivot-Table.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"387\" height=\"327\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/Create-Pivot-Table.jpg 387w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/Create-Pivot-Table-300x253.jpg 300w\" sizes=\"(max-width: 387px) 100vw, 387px\" \/><\/a><\/p>\n<p style=\"text-align: left\"><strong><span style=\"color: #ff0000\">STEP 10:<\/span>\u00a0<\/strong>In the Pivot Table, you will need to put the <em>SALES<\/em> field in the VALUES\u00a0area, the <em>YEAR<\/em> field in the COLUMNS\u00a0area and the <em>MONTH<\/em> field in the ROW area:<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/pivot-table.jpg\" rel=\"attachment wp-att-2917\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2917\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/pivot-table.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"323\" height=\"382\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/pivot-table.jpg 323w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/pivot-table-254x300.jpg 254w\" sizes=\"(max-width: 323px) 100vw, 323px\" \/><\/a><\/p>\n<p style=\"text-align: left\"><span style=\"color: #ff0000\"><strong>STEP 11:<\/strong><\/span> In your data source you can start <strong>adding new data<\/strong> in the empty rows:<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/new-data.jpg\" rel=\"attachment wp-att-2918\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2918\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/new-data.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"396\" height=\"379\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/new-data.jpg 396w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/new-data-300x287.jpg 300w\" sizes=\"(max-width: 396px) 100vw, 396px\" \/><\/a><\/p>\n<p style=\"text-align: left\"><span style=\"color: #ff0000\"><strong>STEP 12:<\/strong> <\/span>To reflect this new data in the Pivot Table, all you need to do is <strong>Right Click inside the Pivot Table and choose Refresh<\/strong>:<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/refresh-pivot-table.jpg\" rel=\"attachment wp-att-2919\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2919\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/refresh-pivot-table.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"346\" height=\"412\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/refresh-pivot-table.jpg 346w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/refresh-pivot-table-252x300.jpg 252w\" sizes=\"(max-width: 346px) 100vw, 346px\" \/><\/a><\/p>\n<p style=\"text-align: left\">The new data will now be shown in the Pivot Table:<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/new-pivot-table.jpg\" rel=\"attachment wp-att-2920\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2920\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/new-pivot-table.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"366\" height=\"385\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/new-pivot-table.jpg 366w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/new-pivot-table-285x300.jpg 285w\" sizes=\"(max-width: 366px) 100vw, 366px\" \/><\/a><\/p>\n<p style=\"text-align: left\"><span style=\"color: #ff0000\"><strong>STEP 13:<\/strong><\/span> To check that our\u00a0Named Range called <em>Data_Range<\/em> captures the new data entered, we need to click in the Pivot Table and go to<em><strong> PivotTable Tools &gt;Analyze\/Options &gt; Change Data Source:<\/strong><\/em><\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/change-data-source.jpg\" rel=\"attachment wp-att-2921\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Create a Dynamic Data Range with the OFFSET function\" class=\"alignnone size-full wp-image-2921\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/change-data-source.jpg\" alt=\"Create a Dynamic Data Range with the OFFSET function\" width=\"854\" height=\"430\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/change-data-source.jpg 854w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/change-data-source-300x151.jpg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/05\/change-data-source-768x387.jpg 768w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/a><\/p>\n<p style=\"text-align: left\">So we can confirm that our Named Range <em>Data_Range<\/em> captures any new data entered in our data source!<\/p>\n<p style=\"text-align: left\">This is a great trick but if you use an <span style=\"text-decoration: underline;color: #0000ff\"><a style=\"color: #0000ff;text-decoration: underline\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/how-to-insert-an-excel-table\/\" target=\"_blank\" rel=\"noopener noreferrer\">Excel Table<\/a><\/span> as your data source, you avoid creating this OFFSET function within a Named Range. \u00a0Excel Tables rock but Excel purists still love playing around with formulas, so this trick is for you \ud83d\ude42<\/p>\n<p style=\"text-align: left\">\n","protected":false},"excerpt":{"rendered":"<p>What does it do? It returns a reference to a range, from a starting point to a specified number of rows, columns, height and width of cells Formula breakdown: =OFFSET(reference, rows, columns, [height], [width]) What it means: =OFFSET(start in this cell, go up\/down a number of rows, go left\/right a number of columns, height of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17227,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"Create a Dynamic Data Range with the OFFSET function","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[3,11,281],"tags":[43,79],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/2896"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=2896"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/2896\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17227"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=2896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=2896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=2896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}