{"id":14712,"date":"2016-03-09T18:18:13","date_gmt":"2016-03-09T18:18:13","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=14712"},"modified":"2016-03-09T18:18:13","modified_gmt":"2016-03-09T18:18:13","slug":"spreadsheets-using-names-in-formulas","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/spreadsheets-using-names-in-formulas\/","title":{"rendered":"Spreadsheets:  using names in formulas"},"content":{"rendered":"<h1>The tutor shows an example of naming items in a spreadsheet for use in a formula.<\/h1>\n<p>This post focuses on Microsoft Excel; hopefully I&#8217;ll do a similar one for a generic spreadsheet soon.<\/p>\n<p>Let&#8217;s imagine Jones faces two tax rates:  one for capital gains (15%) and the other for working (26%).  Furthermore, they&#8217;re both flat rates:  no special deductions.<\/p>\n<p>A spreadsheet can easily be created to handle Jones&#8217;s situation.  For the user&#8217;s convenience, they might want to type Capital Gains and Work Income at the tops of two columns, with a few columns in between for easy reading.<\/p>\n<p>Let&#8217;s imagine &#8220;Capital Gains&#8221; is in cell A1. Then, depending on how many entries the user might expect, they can select the range (by dragging the mouse) from, for instance, A3 to A20.<\/p>\n<p>Very conveniently, that selected range can be named by right-clicking it (while still selected), then clicking <strong>Name a Range&#8230;<\/strong> from the pop-up menu.  <strong>Name a Range&#8230;<\/strong> appears near the bottom of the menu.  When you click it, it provides a text box in which to type the name.  Just type the name and hit enter:  for the case of Jones, the range from A3 to A20 might be called Capital_Gains.  (My understanding is that you can&#8217;t have a space in a name, so I use an underscore.)<\/p>\n<p>Now let&#8217;s imagine Work Income is typed in C1.  The range from C3 to C20 (denoted C3:C20) can be selected by dragging the mouse.  Next, the user can right-click, then click <strong>Name a Range&#8230;<\/strong>.  Of course, you might call it Work_Income.<\/p>\n<p>In the cells A3:A20 the user can enter the various amounts that are capital gains.  C3:C20 will contain entries of work income.<\/p>\n<p>In Jones&#8217;s case, the formula for tax owed is 0.15*sum(Capital_Gains) + 0.26*sum(Work_Income).  You can type that formula, starting with the = sign, in any unused cell.  The tax owed will appear after you leave that cell.<\/p>\n<p>The fact that you can name cells, as well as ranges of cells, really boosts the spreadsheet&#8217;s power:  using names in a formula makes clear what&#8217;s being done.<\/p>\n<p>I&#8217;ll be talking more about using spreadsheets:)<\/p>\n<p>Source:<\/p>\n<p><u>Microsoft Excel User&#8217;s Guide<\/u>.  Microsoft: 1993-94.<\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutor shows an example of naming items in a spreadsheet for use in a formula. This post focuses on Microsoft Excel; hopefully I&#8217;ll do a similar one for a generic spreadsheet soon. Let&#8217;s imagine Jones faces two tax rates: &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/spreadsheets-using-names-in-formulas\/\"> <span class=\"screen-reader-text\">Spreadsheets:  using names in formulas<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1009,434,3,1065],"tags":[1487,259,1484,1485,1486],"class_list":["post-14712","post","type-post","status-publish","format-standard","hentry","category-home-computer-use","category-home-economics","category-math","category-spreadsheets","tag-entering-a-formula-in-a-spreadsheet","tag-financial-math","tag-naming-a-range","tag-using-names-in-formulas","tag-using-names-in-spreadsheets"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/14712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=14712"}],"version-history":[{"count":17,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/14712\/revisions"}],"predecessor-version":[{"id":14729,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/14712\/revisions\/14729"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=14712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=14712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=14712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}