Fixed cell reference in Excel Table

Hello, Excellers. Welcome back to another #FormulaFriday #Excel blog post in my 2020 Excel series. Today’s blog will show you all you need to know about how to use Absolute (and Relative) references when you are using an Excel table and structured references.

Absolute Cell References.

I think one of the most useful and first thing we learn when using Excel is the value of using the $ symbol. (Or the F4) key. This allows you to freeze a column or row, so when dragging a formula down a column or across a row your cell reference does not change.

You can change a relative reference to an absolute one by the use of the $ as an addition to the formula. Here is a summary of where the $ should sit within your cell reference to achieve your constant or absolute cell reference.

Fixed cell reference in Excel Table

The most commonly used absolute cell reference is that which anchors both the column and the row $A$1. </p><p eza="cwidth:658px;;cheight:104px;;wcalc_source:child;wcalc:76px;wocalc:76px;hcalc:936px;rend_px_area:68432;" cwidth="658" style="background-color:initial;background-size:auto;nodepath:/html/body/div[1]/div[1]/div/div/main/article/div/p[5];pagepos:160;cwidth:658px;cheight:104px;wcalc_source:child;wcalc:170px;wocalc:76px;hcalc:936;rend_px_area:68432;rcnt:1;ez_min_text_wdth:94;req_px_area:71853.6;obj_px_area:0;req_px_height:26;req_margin_and_padding:26;req_ns_height:;vertical_margin:26;parent-line-height:26px;margin-for-scale:0 0 26px 0;padding-for-scale:0 0 0 0;padding:0;margin:0 0 14px">For example, if applying an increase of .05% increase in selling price to products, the increase can be referenced as an absolute cell reference. When the formula is applied or dragged down the list of products, the reference to the cell containing the sales increase does not move. See this in action below.</p><div class="wp-block-image size-large" style="background:0 0;position:static;top:auto;right:auto;left:auto;bottom:auto;-webkit-box-sizing:border-box;background-color:initial;background-origin:padding-box;background-size:auto;border-spacing:0 0;box-sizing:border-box;clear:none;font-family:lato,sans-serif;font-size:16px;font-weight:300;line-height:26px;list-style-image:none;list-style-position:outside;list-style-type:disc;text-indent:0;vertical-align:baseline;visibility:visible;word-wrap:normal;mcalc:0 0 1em 0;pcalc:0 0 0 0;nodepath:/html/body/div[1]/div[1]/div/div/main/article/div/figure[2];pagepos:161;cwidth:658px;cheight:414px;wcalc_source:child;wcalc:504px;wocalc:504px;hcalc:414px;rend_px_area:272412;rcnt:1;ez_min_text_wdth:;req_px_area:208656;height:auto;margin:0 0 16px" ezoic="wrapper"><span style="position:relative;max-width:504px" onmouseover="document.getElementById(&quot;ezimg-5094673500&quot;).style.display=&quot;block&quot;" onmouseout="document.getElementById(&quot;ezimg-5094673500&quot;).style.display=&quot;none&quot;"><img loading="lazy" data-orig-width="504" data-orig-height="414" alt="Excel table" class="ezlazyload wp-image-22316" style="max-width:100%;background-color:initial;background-size:auto;width:286px;height:auto;nodepath:/html/body/div[1]/div[1]/div/div/main/article/div/figure[2]/img;pagepos:162;cwidth:504px;cheight:414px;wcalc_source:defined;wcalc:504px;wocalc:504px;hcalc:414;rend_px_area:208656;rcnt:1;ez_min_text_wdth:0;obj_px_area:208656;req_px_area:208656;req_px_height:0;req_margin_and_padding:0;req_ns_height:;vertical_margin:0;parent-line-height:26px;margin-for-scale:0 0 0 0;padding-for-scale:0 0 0 0" eza="cwidth:504px;;cheight:414px;;wcalc_source:defined;wcalc:504px;wocalc:504px;hcalc:414px;rend_px_area:208656;" cwidth="504" data-ezsrc="https://howtoexcelatexcel.com/wp-content/uploads/2020/09/Absolute-References-With-Excel-Tables.gif"><span id="ezimg-5094673500" style="position:absolute;bottom:2px;left:3px;display:none"><span style="float:right;padding-top:3px;text-align:right"> <a target="_blank" title="Pin this image on Pinterest" href="https://howtoexcelatexcel.com/formulas/absolute-references-with-excel-tables/#" onclick="pin_click(&quot;https://howtoexcelatexcel.com/wp-content/uploads/2020/09/Absolute-References-With-Excel-Tables.gif&quot;,&quot;Check it out!&quot;,7061);return false;"><img style="width:22px;height:11px" alt="Pin it!" ezimgfmt="rs rscb1 src ng ngcb1" class="ezlazyload" data-ezsrc="/utilcave_com/social/pin_it.png"></a></span> <span style="float:right;text-align:right;padding-top:4px;padding-right:2px"><a target="_blank" title="Share this image on Facebook" href="https://howtoexcelatexcel.com/formulas/absolute-references-with-excel-tables/#" onclick="fbs_click(&quot;https://howtoexcelatexcel.com/wp-content/uploads/2020/09/Absolute-References-With-Excel-Tables.gif&quot;,7061);return false;"><img style="width:34px;height:10px" alt="Share on Facebook" ezimgfmt="rs rscb1 src ng ngcb1" class="ezlazyload" data-ezsrc="/utilcave_com/social/fb_share.png"></a></span></span></span></div><h3 id="h-what-about-structured-references-in-excel-tables" eza="cwidth:658px;;cheight:28px;;wcalc_source:child;wcalc:116px;wocalc:116px;hcalc:168px;rend_px_area:18424;" cwidth="658" style="background-color:initial;background-size:auto;color:#333;font-family:titillium web,sans-serif;font-size:24px;font-weight:700;line-height:28px;nodepath:/html/body/div[1]/div[1]/div/div/main/article/div/h3[2];pagepos:163;cwidth:658px;cheight:28px;wcalc_source:child;wcalc:116px;wocalc:116px;hcalc:168;rend_px_area:18424;rcnt:1;ez_min_text_wdth:154;req_px_area:19345.2;obj_px_area:0;req_px_height:28;req_margin_and_padding:10;req_ns_height:;vertical_margin:10;parent-line-height:26px;margin-for-scale:0 0 10px 0;margin:0 0 10px;padding-for-scale:0 0 0 0">What About Structured References In Excel Tables?.</h3><p eza="cwidth:658px;;cheight:52px;;wcalc_source:child;wcalc:77px;wocalc:77px;hcalc:442px;rend_px_area:34216;" cwidth="658" style="background-color:initial;background-size:auto;nodepath:/html/body/div[1]/div[1]/div/div/main/article/div/p[6];pagepos:164;cwidth:658px;cheight:52px;wcalc_source:child;wcalc:110px;wocalc:77px;hcalc:442;rend_px_area:34216;rcnt:1;ez_min_text_wdth:103;req_px_area:35926.8;obj_px_area:0;req_px_height:26;req_margin_and_padding:26;req_ns_height:;vertical_margin:26;parent-line-height:26px;margin-for-scale:0 0 26px 0;padding-for-scale:0 0 0 0;padding:0;margin:0 0 14px">Once Excel Tables were introduced in Excel, cells were now referenced in a structured way. Here is a quick recap about structured Excel references.</p><p eza="cwidth:658px;;cheight:78px;;wcalc_source:child;wcalc:92px;wocalc:92px;hcalc:650px;rend_px_area:51324;" cwidth="658" style="background-color:initial;background-size:auto;nodepath:/html/body/div[1]/div[1]/div/div/main/article/div/p[7];pagepos:165;cwidth:658px;cheight:78px;wcalc_source:child;wcalc:170px;wocalc:92px;hcalc:650;rend_px_area:51324;rcnt:1;ez_min_text_wdth:122;req_px_area:53890.2;obj_px_area:0;req_px_height:26;req_margin_and_padding:26;req_ns_height:;vertical_margin:26;parent-line-height:26px;margin-for-scale:0 0 26px 0;padding-for-scale:0 0 0 0;padding:0;margin:0 0 14px">Structured cell references are a special way to reference Excel tables. These type of references work the same as regular cell references but are a lot easier to understand and read. They also are dynamic and automatically adjust when data is added or deleted from an Excel table.</p><p eza="cwidth:658px;;cheight:52px;;wcalc_source:child;wcalc:77px;wocalc:77px;hcalc:494px;rend_px_area:34216;" cwidth="658" style="background-color:initial;background-size:auto;nodepath:/html/body/div[1]/div[1]/div/div/main/article/div/p[8];pagepos:166;cwidth:658px;cheight:52px;wcalc_source:child;wcalc:110px;wocalc:77px;hcalc:494;rend_px_area:34216;rcnt:1;ez_min_text_wdth:103;req_px_area:35926.8;obj_px_area:0;req_px_height:26;req_margin_and_padding:26;req_ns_height:;vertical_margin:26;parent-line-height:26px;margin-for-scale:0 0 26px 0;padding-for-scale:0 0 0 0;padding:0;margin:0 0 14px"><span class="ezoic-ad box-4 box-4261" data-ez-name="howtoexcelatexcel_com-box-4"><span id="div-gpt-ad-howtoexcelatexcel_com-box-4-0" ezaw="300" ezah="250" style="position:relative;z-index:501;display:inline-block;padding:0;min-height:250px;min-width:300px" class="ezoic-ad"><script data-ezscrex="false" data-cfasync="false" style="display:none">if(typeof ez_ad_units!='undefined'){ez_ad_units.push([[300,250],'howtoexcelatexcel_com-box-4','ezslot_4',261,'0','0'])};__ez_fad_position('div-gpt-ad-howtoexcelatexcel_com-box-4-0');See the details of a quick example below. The SUM function with the usual range references, and on the right the Sum function with structured table references.

Fixed cell reference in Excel Table

Structured Cell Reference Syntax.

Here is a very brief overview of the basics of the structured cell reference syntax to understand it better. Normally a structured cell reference begins with a Table reference (Table1 in our example above). This is followed by a column reference.

So, the reference has three parts.

  1. Table name
  2. Item specifier
  3. Column specifiers

Table Name. This is is the reference to the Table data without any row or column totals. If you have not named your table then this takes on the default name such as Table1 in our example.

Item Specifier. These are the specific parts of the table. You can see a summary in the table below of what can be used.

Fixed cell reference in Excel Table

Column Specifiers. This references the data in the corresponding column. without the header row and total row. In the example we are using this could be [Sales].

So, back to using absolute references with tables. These structured cell references whilst have a number of benefits behave a bit differently. There is no way to create an absolute reference for a table reference within a formula. This is because, as by default all table references are absolute. When they are dragged or copied the following happens.

Column references change by referring to the next column to the right if you drag the formula across columns.

Column references do not change when copied or pasted, they remain static.

It is not as straightforward to anchor columns references as with a range reference to make them absolute. But there is a neat way to get around this.

So, when your formula contains a combination of absolute and relative references, there is no way to drag or copy the formula across and keep the references correct.  

Here is the solution.

All we need to do is to add and additional and duplicate column reference. Duplicating the column reference anchors the reference when dragging across columns. Using the same example, I have added some extra data to work with. I have added Sales records for Q1 and Q2 and created a summary set to calculate sales of Strawberries for Q1. The formula is below.

=SUMIF(Table1[[Product ]],$E2$2,Table1[Sales Q1])

Fixed cell reference in Excel Table

So, if I try to simply drag the formula across, as expected and already discussed above the formula does not move to calculate Q2 sales automatically. It moves the columns references to the right.

So, let’s add another additional and duplicate column reference to anchor the columns. This is the solution. I can now drag the formula across and get the right calculation.