{"id":20424,"date":"2016-03-01T03:01:02","date_gmt":"2016-02-29T17:01:02","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=20424"},"modified":"2016-03-13T20:55:24","modified_gmt":"2016-03-13T10:55:24","slug":"spreadsheet-problem-solving-template-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/spreadsheet-problem-solving-template-tutorial\/","title":{"rendered":"Spreadsheet Problem Solving Template Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/LibreOffice\/ProblemSolving\/Template\/\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"Spreadsheet Problem Solving Template Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/LibreOffice\/ProblemSolving\/Template\/biggest_volume_template-178of.jpg\" title=\"Spreadsheet Problem Solving Template Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Spreadsheet Problem Solving Template Tutorial<\/p><\/div>\n<p>We&#8217;re keen on the word <a target=_blank title='Template information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Template_%28word_processing%29'>&#8220;template&#8221;<\/a> and if you&#8217;ve clicked that link you&#8217;ll get some technical thoughts on templates, but to me, in layman&#8217;s terms, or a programmer&#8217;s terms perhaps, it represents a stage of a journey worth snapshotting, that helps you not have to repeat all that hard work you&#8217;d done reaching that point.<\/p>\n<p>Don&#8217;t know why, exactly, but <a target=_blank title='The Gambler' href='https:\/\/www.youtube.com\/watch?v=kn481KcjvMo'>Kenny Rodgers<\/a> springs to mind about &#8220;template&#8221; usage &#8230;<\/p>\n<blockquote><p>\nYou got to .. know when to hold &#8217;em &#8230;<br \/>\nKnow when to fold &#8217;em &#8230;<br \/>\nKnow when to walk away<br \/>\nKnow when to run\n<\/p><\/blockquote>\n<p> &#8230; if that song says to you &#8230; &#8220;think about it&#8221; &#8230; then that&#8217;s what I&#8217;m getting at.  Not everything is worth a template, believe me.  &#8220;Template clutter&#8221; goes with scratching the head years later, saying &#8230; &#8220;now why did we do that&#8221; &#8230; if not well documented &#8230; and with that, as far as &#8220;not well documented&#8221; goes, it can be hugely more useful (and you can do better than we do with today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/LibreOffice\/ProblemSolving\/Template\/\">slideshow<\/a>&#8216;s &#8220;My Templates&#8221; here) to keep your templates in aptly named folders with aptly named template files.<\/p>\n<p>To me, where we got to with LibreOffice and our Problem Solving spreadsheet that we presented yesterday with <a title='Spreadsheet Problem Solving Primer Tutorial' href='#spspt'>Spreadsheet Problem Solving Primer Tutorial<\/a> as shown below, that is worth &#8220;Saving As Template&#8221;.<\/p>\n<p>With spreadsheet applications there may be different places where &#8220;template&#8221; selection becomes apparent (on the way back into your spreadsheet application) &#8230; for example &#8230;<\/p>\n<ul>\n<li>LibreOffice presents templates in its very first menu &#8230; while &#8230;<\/li>\n<li>Excel (in Microsoft Office) presents templates in its File menu within the submenu &#8220;New&#8221; (up above the submenu &#8220;Open&#8221;)<\/li>\n<\/ul>\n<p>There is a certain sense of control you get with document processing work that happens when you use the &#8220;Template&#8221; (LibreOffice menu) option or &#8220;New&#8221; (Excel submenu) option and you see something created inhouse to encourage you to do more.  This is the creative &#8220;power of the template&#8221; &#8230; <font size=1>or was that the book we read last week<\/font>.<\/p>\n<p>But it is not just &#8220;control&#8221; &#8230; for a super organized user the use of templates can save lots of time as well, and for the super super organized and thorough, it can help you with documentation at the same time, of folders and template names that are self evident.<\/p>\n<hr>\n<p id='spspt'>Previous relevant <a target=_blank title='Spreadsheet Problem Solving Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/spreadsheet-problem-solving-primer-tutorial\/'>Spreadsheet Problem Solving Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/LibreOffice\/ProblemSolving\/\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"Spreadsheet Problem Solving Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/LibreOffice\/ProblemSolving\/biggest_volume-218of.jpg\" title=\"Spreadsheet Problem Solving Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Spreadsheet Problem Solving Primer Tutorial<\/p><\/div>\n<p><a target=_blank title='Spreadsheet information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Spreadsheet'>Spreadsheet<\/a> programs represented some of the first &#8220;killer apps&#8221; on the market that made personal computing popular, so you&#8217;d expect, given the &#8220;taste&#8221; of worldwide opinion regarding software usefulness, the spreadsheet and spreadsheet programs may have a high degree of sophistication.<\/p>\n<p>If your spreadsheet program is lacking the ability to define &#8220;formulae&#8221;, it is lacking a bit in this spectrum of usefulness.  Today we use those &#8220;formula&#8221; functionalities to problem solve for a mathematical problem you might <a target=_blank title='empirically' href='https:\/\/www.google.com.au\/search?q=impirically&#038;ie=utf-8&#038;oe=utf-8&#038;gws_rd=cr&#038;ei=kwLSVpqYLMKb0gS8y5ywAQ#q=empirically'>empirically<\/a> solve, if totally left to your own devices &#8230; <font size=1>but you aren&#8217;t now, are you?<\/font> &#8230; when we say you can use &#8230;<\/p>\n<ul>\n<li><a target=_blank title='Google Docs' href='https:\/\/docs.google.com\/document\/u\/0\/?pref=2&#038;pli=1'>Google Docs<\/a> &#8220;Sheets&#8221; module web application &#8230; and\/or &#8230;<\/li>\n<li><a target=_blank title='LibreOffice from The Document Foundation' href='http:\/\/www.libreoffice.org'>LibreOffice<\/a> &#8220;Calc Spreadsheet&#8221; desktop (on Mac OS X) application<\/li>\n<\/ul>\n<p> &#8230; and today we happen to use both, because we started thinking the web application way, and shaping to &#8220;Save As&#8221; we saw the &#8220;Download As&#8221; option, and, as you would &#8230; <font size=1>wouldn&#8217;t you?<\/font> &#8230; we involved that wonderful LibreOffice desktop suite of programs.<\/p>\n<p>So the two above can use &#8220;formulae&#8221;, and for any serious work to save you some time mathematically, your spreadsheet program should include this functionality.  Let&#8217;s face it though, not all of us want to &#8220;save time mathematically&#8221; <b>that<\/b> way either because &#8230;<\/p>\n<ul>\n<li>we use calculators for that<\/li>\n<li>we actually enjoy working it out with paper and pen (or pencil) &#8230; gasp!<\/li>\n<\/ul>\n<p>Anyway, the premise of today&#8217;s tutorial came from page 310 of <i>New Century Maths 9 &#8211; stages 5.2\/5.3<\/i> whose advice we followed closely, so, thanks.<\/p>\n<p>Here&#8217;s the problem (to solve) &#8230; as an image <img title='20 x 14' src='http:\/\/www.rjmprogramming.com.au\/Mac\/LibreOffice\/ProblemSolving\/huh.jpg'><\/img> &#8230; and in words, like in real life, you may be given a sheet of cardboard 20 x 14 and are asked to be able to turn it into an open box of maximal volume by cutting out four corner squares so that you can do your folding &#8230; <a target=_blank title='Origami images' href='https:\/\/www.google.com.au\/search?q=origami&#038;biw=1173&#038;bih=582&#038;source=lnms&#038;tbm=isch&#038;sa=X&#038;ved=0ahUKEwiH2_S-_ZjLAhWEG6YKHfkECaEQ_AUIBygC'>origami<\/a> anyone?<\/p>\n<p>Now you can <i>emprically<\/i> solve by trial and error, or you can use a spreadsheet &#8220;formula&#8221; technique as we do today, and as is recommended at <i>New Century Maths 9 &#8211; stages 5.2\/5.3<\/i>.<\/p>\n<p>We start by using <a target=_blank title='Google Docs' href='https:\/\/docs.google.com\/document\/u\/0\/?pref=2&#038;pli=1'>Google Docs<\/a> &#8220;Sheets&#8221; module web application and &#8230;<\/p>\n<ul>\n<li>place headings<\/li>\n<li>place 20 into D4 cell (as the sheet&#8217;s length)<\/li>\n<li>place 14 into E4 cell (as the sheet&#8217;s width)<\/li>\n<li>place 0 (zero) into C7 &#8220;Side of square&#8221; cell<\/li>\n<li>place formula =D4-2*C7 into D7 &#8220;Length&#8221; cell &#8230; can you work out why?<\/li>\n<li>place formula =E4-2*C7 into E7 &#8220;Width&#8221; cell &#8230; can you work out why?<\/li>\n<li>place formula =C7 into F7 &#8220;Height&#8221; cell &#8230; can you work out why?<\/li>\n<li>place formula =D7*E7*F7 into G7 &#8220;Volume&#8221; cell &#8230; your mathematics knowledge will help you here<\/li>\n<li>place formula =C7+1 into C8 as a (first) incrementing idea<\/li>\n<li>highlight C8 and wait for bottom right blue dot that you can <i>Fill Down<\/i> via a drag to cell C14 (causing all those cells to be populated with incrementing values) &#8230; why C14? Hint: 14 \/ 2 = 7 = 14 &#8211; 7<br \/>\n<img src='http:\/\/www.rjmprogramming.com.au\/Mac\/LibreOffice\/ProblemSolving\/biggest_volume-187of.jpg' title='Fill down'><\/img>\n<\/li>\n<li>for the cells in the range D8-G14 follow the patterns of the 7th row formulae, changing the appropriate row number &#8230; so that G14&#8217;s formula, for instance, would be =D14*E14*F14<\/li>\n<li>see the results that help you in your problem solving venture &#8230;\n<\/ul>\n<p> &#8230; and you see from the column G what is best as a corner square size, as in column C &#8230; but this is for an increment of one &#8230; to refine &#8230;<\/p>\n<ul>\n<li>place smallest of interesting big volume square length ideas into C7 &#8220;Side of square&#8221; cell<\/li>\n<li>place formula =C7+(your fractional idea) into C8 as another incrementing idea<\/li>\n<li>see the results that have you in your problem solving venture &#8230; perhaps make &#8220;(your fractional idea)&#8221; smaller and repeat, as required<\/li>\n<\/ul>\n<p> &#8230; and so we did this for 20 x 14 and then for (cell D4 becomes) 87 x 14 (still in cell E4) &#8230; <img title='20 x 14' src='http:\/\/www.rjmprogramming.com.au\/Mac\/LibreOffice\/ProblemSolving\/huh87.jpg'><\/img> &#8230; in Google Docs and &#8220;Downloaded As&#8221; a hard disk file for use with LibreOffice &#8220;Calc Spreadsheet&#8221;, and you can see us doing this at today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/LibreOffice\/ProblemSolving\/\" title='Slideshow'>slideshow<\/a>.  Google Docs provided this &#8220;Share&#8221; <a target=_blank title='Share Google Docs link' href='https:\/\/docs.google.com\/spreadsheets\/d\/14d_j1tWqlaA9HVzEymhyS5xaIHs8Skk1ZOquGYSxjHs\/edit?usp=sharing'>link<\/a> for the spreadsheet as it looked coming out of Google Docs (before &#8220;Download As&#8221;).<\/p>\n<p>Perhaps this is a precursor to you thinking more about spreadsheet programming, and perhaps investigate ideas like <a target=_blank href='https:\/\/en.wikipedia.org\/wiki\/Visual_Basic_for_Applications' title='Visual Basic for Applications information from Wikipedia ... thanks'>VBA<\/a> in Microsoft Office Excel, for example?  Or stick to (just) &#8220;formulae&#8221; functionality just now &#8230; after all, it helps you problem solve, but perhaps in a less permanent way, for a big percentage of the problems where &#8220;formula&#8221;, in any context, can help solve a problem, in the spreadsheet world.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d20393' onclick='var dv=document.getElementById(\"d20393\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/spreadsheet\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d20393' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d20424' onclick='var dv=document.getElementById(\"d20424\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/template\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d20424' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re keen on the word &#8220;template&#8221; and if you&#8217;ve clicked that link you&#8217;ll get some technical thoughts on templates, but to me, in layman&#8217;s terms, or a programmer&#8217;s terms perhaps, it represents a stage of a journey worth snapshotting, that &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/spreadsheet-problem-solving-template-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[360,403,454,513,521,694,752,990,1185,1566,1319,1364],"class_list":["post-20424","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-download","tag-excel","tag-formula","tag-google","tag-google-docs","tag-libreoffice","tag-mathematics","tag-problem","tag-spreadsheet","tag-template","tag-tutorial","tag-vba"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/20424"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=20424"}],"version-history":[{"count":7,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/20424\/revisions"}],"predecessor-version":[{"id":20678,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/20424\/revisions\/20678"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=20424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=20424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=20424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}