1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2*cdf0e10cSrcweir 3*cdf0e10cSrcweir<helpdocument version="1.0"> 4*cdf0e10cSrcweir 5*cdf0e10cSrcweir<!-- 6*cdf0e10cSrcweir *********************************************************************** 7*cdf0e10cSrcweir * 8*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 9*cdf0e10cSrcweir * 10*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 11*cdf0e10cSrcweir * 12*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 13*cdf0e10cSrcweir * 14*cdf0e10cSrcweir * This file is part of OpenOffice.org. 15*cdf0e10cSrcweir * 16*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 17*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 18*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 19*cdf0e10cSrcweir * 20*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 21*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 22*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 24*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 27*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 28*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 29*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 30*cdf0e10cSrcweir * 31*cdf0e10cSrcweir ************************************************************************ 32*cdf0e10cSrcweir --> 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir<meta> 36*cdf0e10cSrcweir<topic id="textscalcguidegoalseekxml" indexer="include" status="PUBLISH"> 37*cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Applying Goal Seek</title> 38*cdf0e10cSrcweir<filename>/text/scalc/guide/goalseek.xhp</filename> 39*cdf0e10cSrcweir</topic> 40*cdf0e10cSrcweir</meta> 41*cdf0e10cSrcweir<body> 42*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3145068"><bookmark_value>goal seeking;example</bookmark_value> 43*cdf0e10cSrcweir<bookmark_value>equations in goal seek</bookmark_value> 44*cdf0e10cSrcweir<bookmark_value>calculating;variables in equations</bookmark_value> 45*cdf0e10cSrcweir<bookmark_value>variables;calculating equations</bookmark_value> 46*cdf0e10cSrcweir<bookmark_value>examples;goal seek</bookmark_value> 47*cdf0e10cSrcweir</bookmark><comment>mw changed "goal seek example" to "goal seeking;"</comment> 48*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3145068" xml-lang="en-US" level="1" l10n="U" oldref="22"><variable id="goalseek"><link href="text/scalc/guide/goalseek.xhp" name="Applying Goal Seek">Applying Goal Seek</link> 49*cdf0e10cSrcweir</variable></paragraph> 50*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3145171" xml-lang="en-US" l10n="U" oldref="2">With the help of Goal Seek you can calculate a value that, as part of a formula, leads to the result you specify for the formula. You thus define the formula with several fixed values and one variable value and the result of the formula.</paragraph> 51*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3153966" xml-lang="en-US" level="2" l10n="U" oldref="14">Goal Seek Example</paragraph> 52*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150871" xml-lang="en-US" l10n="U" oldref="4">To calculate annual interest (I), create a table with the values for the capital (C), number of years (n), and interest rate (i). The formula is:</paragraph> 53*cdf0e10cSrcweir<paragraph role="code" id="par_id3152596" xml-lang="en-US" l10n="U" oldref="5">I = C * n* i</paragraph> 54*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3155335" xml-lang="en-US" l10n="CHG" oldref="15">Let us assume that the interest rate <item type="literal">i</item> of 7.5% and the number of years <item type="literal">n</item> (1) will remain constant. However, you want to know how much the investment capital <item type="literal">C</item> would have to be modified in order to attain a particular return <item type="literal">I</item>. For this example, calculate how much capital <item type="literal">C</item> would be required if you want an annual return of $15,000.</paragraph> 55*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3155960" xml-lang="en-US" l10n="CHG" oldref="6">Enter each of the values for Capital <item type="literal">C</item> (an arbitrary value like <item type="literal">$100,000</item>), number of years <item type="literal">n </item>(<item type="literal">1</item>), and interest rate <item type="literal">i</item> (<item type="literal">7.5%</item>) in one cell each. Enter the formula to calculate the interest <item type="literal">I</item> in another cell. Instead of <item type="literal">C</item>, <item type="literal">n</item>, and <item type="literal">i</item> use the <link href="text/scalc/guide/relativ_absolut_ref.xhp">reference to the cell</link> with the corresponding value.</paragraph> 56*cdf0e10cSrcweir<list type="ordered"> 57*cdf0e10cSrcweir<listitem> 58*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3147001" xml-lang="en-US" l10n="U" oldref="16">Place the cursor in the cell containing the interest <item type="literal">I</item>, and choose <emph>Tools - Goal Seek</emph>. The <emph>Goal Seek</emph> dialog appears.</paragraph> 59*cdf0e10cSrcweir</listitem> 60*cdf0e10cSrcweir<listitem> 61*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3150088" xml-lang="en-US" l10n="U" oldref="17">The correct cell is already entered in the field <emph>Formula Cell</emph>.</paragraph> 62*cdf0e10cSrcweir</listitem> 63*cdf0e10cSrcweir<listitem> 64*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3166426" xml-lang="en-US" l10n="U" oldref="18">Place the cursor in the field <emph>Variable Cell</emph>. In the sheet, click in the cell that contains the value to be changed, in this example it is the cell with the capital value <item type="literal">C</item>.</paragraph> 65*cdf0e10cSrcweir</listitem> 66*cdf0e10cSrcweir<listitem> 67*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3150369" xml-lang="en-US" l10n="U" oldref="19">Enter the expected result of the formula in the <emph>Target Value</emph> text box. In this example, the value is 15,000. Click <emph>OK</emph>.</paragraph> 68*cdf0e10cSrcweir</listitem> 69*cdf0e10cSrcweir<listitem> 70*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3146978" xml-lang="en-US" l10n="U" oldref="20">A dialog appears informing you that the Goal Seek was successful. Click <emph>Yes</emph> to enter the result in the cell with the variable value.</paragraph> 71*cdf0e10cSrcweir</listitem> 72*cdf0e10cSrcweir</list> 73*cdf0e10cSrcweir<section id="relatedtopics"> 74*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3149409" xml-lang="en-US" l10n="U" oldref="23"><link href="text/scalc/01/06040000.xhp" name="Goal Seek">Goal Seek</link></paragraph> 75*cdf0e10cSrcweir</section> 76*cdf0e10cSrcweir</body> 77*cdf0e10cSrcweir</helpdocument> 78