{"id":250,"date":"2011-02-25T18:29:41","date_gmt":"2011-02-26T00:29:41","guid":{"rendered":"http:\/\/www.iqaccountingsolutions.com\/blog\/?p=250"},"modified":"2012-09-24T14:15:06","modified_gmt":"2012-09-24T19:15:06","slug":"relative-vs-absolute-cell-references","status":"publish","type":"post","link":"https:\/\/www.iqaccountingsolutions.com\/blog\/relative-vs-absolute-cell-references\/","title":{"rendered":"RELATIVE VS ABSOLUTE CELL REFERENCES"},"content":{"rendered":"<p>Relative and Absolute cell references are a very basic concept in  Excel.\u00a0 But since many people have learned Excel on the job with no  formal training, I thought it would be a good topic to cover.\u00a0 Since  we&#8217;re going back to basics, a cell reference is simply the column and  row of the cell.\u00a0 For example, the cell in the top left corner is cell  A1.\u00a0 In most cases, when you enter a formula Excel automatically enters  relative cell references.\u00a0 Let&#8217;s say you put a total at the bottom of  some cells in column A.\u00a0 Then you copy that formula to column C.\u00a0 When  the formula uses relative references, Excel will adjust the cell  references in the formula relative to its new location.\u00a0 So after  copying it to column C it will now the cells in column C instead of  column A.\u00a0 If the formula had used absolute references it would still  total the cells in column A no matter where you copy.<\/p>\n<p>Relative  references use just the letter of the column and number of the row, such  as A1.\u00a0 You can make the reference absolute by adding a $ to the  column, row, or both.\u00a0 A reference to $A$1in a formula would remain  unchanged when you copy it.\u00a0 $A1 would adjust the row number when copied  but would still point to column A.\u00a0 And A$1 would keep the row number  the same while adjusting the column reference.\u00a0 You can also highlight  all or part of a formula and press F4 to change between relative and  absolute references.<\/p>\n<p>Here is a good example of how this can save  you time.\u00a0 Let&#8217;s say you have a list of sales by department in Excel.\u00a0  Column A holds the department names, column B holds this month&#8217;s sales,  and column D holds the year to date sales.\u00a0 The totals for both columns  are in row 10.\u00a0 You need to see each department&#8217;s sales as a percentage  of total sales.\u00a0 You could go to the empty cell at C2 and enter  &#8220;=B2\/B10&#8221;\u00a0 (dept 1 monthly sales divided by total monthly sales), then  in C3 type &#8220;=B3\/B10&#8221;, and so on down the list.\u00a0 But who wants to have to  type a formula on every line, and if you copy that formula down column  B, the second line would become &#8220;=B3\/B11&#8221; (dept 2 sales divided by an  empty cell one row below total sales).\u00a0 To fix the problem, change the  first formula to &#8220;=B2\/B$10&#8221;.\u00a0 Now when it is copied down the column, the  relative reference B2 will be adjusted for each row, but B$10 will  remain the same.\u00a0 Next, highlight cells C2 through C10, copy them and  paste them into column E, next to the YTD amounts.\u00a0 Now the references  to column B (monthly sales) will automatically be changed to D (YTD  sales).<br \/>\n<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"640\" height=\"505\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/tJhK4J0u0NQ?hl=en&amp;fs=1\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed type=\"application\/x-shockwave-flash\" width=\"640\" height=\"505\" src=\"http:\/\/www.youtube.com\/v\/tJhK4J0u0NQ?hl=en&amp;fs=1\" allowscriptaccess=\"always\" allowfullscreen=\"true\"><\/embed><\/object><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When copying a field in Excel that contains a formula, Excel will adjust the formula for the new location.  Sometimes that is exactly what you want, but other times you want the formula to stay the same.  This tip will explain the difference between relative references and absolute references and how they affect a copied formula.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/250"}],"collection":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=250"}],"version-history":[{"count":9,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":597,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/250\/revisions\/597"}],"wp:attachment":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}