Difference between revisions of "Documentation/OOo3 User Guides/Calc Guide/Goal seek"

From Apache OpenOffice Wiki
Jump to: navigation, search
(New page: {{DISPLAYTITLE:Working backwards using Goal Seek}} {{Documentation/CG3Ch7TOC |ShowPrevNext=block |PrevPage=Documentation/OOo3_User_Guides/Calc Guide/Multiple operations |NextPage=Documenta...)
 
 
Line 5: Line 5:
 
|NextPage=Documentation/OOo3_User_Guides/Calc Guide/Solver
 
|NextPage=Documentation/OOo3_User_Guides/Calc Guide/Solver
 
}}__notoc__
 
}}__notoc__
'''Tools > Goal Seek''' reverses the usual order for a formula. Usually, you run a formula to get the result when certain arguments are entered. By contrast, with Goal Seek, you work with a completed formula to see what values you need in an argument to get the results that you want.
+
Usually, you run a formula to calculate a result based upon existing values. By contrast, using '''Tools > Goal Seek''', you can discover what values will produce the result that you want.
  
To take a simple example, imagine that the Chief Financial Officer of a company is developing sales projections for each quarter of the forthcoming year. She knows what the company’s total income must be for the year to satisfy stockholders. She also has a good idea of the company’s income in the first three quarters, because of the contracts that are already signed. For the fourth quarter, however, no definite income is available. So how much must the company earn in Q4 to reach its goal? To answer, the CFO enters the projected earnings for each of the other three quarters and the projection for the entire year. Then she runs a goal seek on the cell for Q4 sales, and receives her answer.
+
To take a simple example, imagine that the Chief Financial Officer of a company is developing sales projections for each quarter of the forthcoming year. She knows what the company’s total income must be for the year to satisfy stockholders. She also has a good idea of the company’s income in the first three quarters, because of the contracts that are already signed. For the fourth quarter, however, no definite income is available. So how much must the company earn in Q4 to reach its goal? The CFO can enter the projected earnings for each of the other three quarters along with a formulaq that totals all four quarters. Then she runs a goal seek on the empty cell for Q4 sales, and receives her answer.
  
Other uses of goal seek may be more complicated, but the method remains the same. To run a goal seek, at least one of the values for an argument must be a referenced cell or range. Only one argument can be altered in a single goal seek. After you get the result of a goal seek, you can replace the original value in the referenced cell with the result, or record the result elsewhere for later use, possibly as a scenario.
+
Other uses of goal seek may be more complicated, but the method remains the same. Only one argument can be altered in a single goal seek.  
 
+
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.
+
  
 
== Goal Seek example ==
 
== Goal Seek example ==
Line 18: Line 16:
 
Let us assume that the interest rate i of 7.5% and the number of years n (1) will remain constant. However, you want to know how much the investment capital C would have to be modified in order to attain a particular return I. For this example, calculate how much capital C would be required if you want an annual return of $15,000.
 
Let us assume that the interest rate i of 7.5% and the number of years n (1) will remain constant. However, you want to know how much the investment capital C would have to be modified in order to attain a particular return I. For this example, calculate how much capital C would be required if you want an annual return of $15,000.
  
Enter each of the values for Capital C (an arbitrary value like $100,000), number of years n (1), and interest rate i (7.5%) in one cell each. Enter the formula to calculate the interest I in another cell. Instead of C, n, and i use the reference to the cell with the corresponding value. In our example, these are B1, B2, and B3.
+
Enter each of the values mentioned above into adjacent cells (for Capital C, an arbitrary value like $100,000 or it can be left blank; for number of years n, 1; for interest rate i, 7.5%). Enter the formula to calculate the interest I in another cell. Instead of C, n, and i use the reference to the cell with the corresponding value. In our example, this would be =B1*B2*B3.
  
 
<ol>
 
<ol>
<li>Place the cursor in the formula cell (the cell containing the interest I), and choose '''Tools > Goal Seek'''.</li>
+
<li>Place the cursor in the formula cell (B4), and choose '''Tools > Goal Seek'''.</li>
 
<li>On the Goal Seek dialog, the correct cell is already entered in the ''Formula cell'' field.</li>
 
<li>On the Goal Seek dialog, the correct cell is already entered in the ''Formula cell'' field.</li>
<li>Place the cursor in the ''Variable cell'' field. 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 C.</li>
+
<li>Place the cursor in the ''Variable cell'' field. In the sheet, click in the cell that contains the value to be changed, in this example it is B1.</li>
 
<li>Enter the desired result of the formula in the ''Target value'' field. In this example, the value is 15000. The figure below shows the cells and fields.</li>
 
<li>Enter the desired result of the formula in the ''Target value'' field. In this example, the value is 15000. The figure below shows the cells and fields.</li>
  

Latest revision as of 17:26, 1 January 2011



Usually, you run a formula to calculate a result based upon existing values. By contrast, using Tools > Goal Seek, you can discover what values will produce the result that you want.

To take a simple example, imagine that the Chief Financial Officer of a company is developing sales projections for each quarter of the forthcoming year. She knows what the company’s total income must be for the year to satisfy stockholders. She also has a good idea of the company’s income in the first three quarters, because of the contracts that are already signed. For the fourth quarter, however, no definite income is available. So how much must the company earn in Q4 to reach its goal? The CFO can enter the projected earnings for each of the other three quarters along with a formulaq that totals all four quarters. Then she runs a goal seek on the empty cell for Q4 sales, and receives her answer.

Other uses of goal seek may be more complicated, but the method remains the same. Only one argument can be altered in a single goal seek.

Goal Seek example

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 I = C*n*i.

Let us assume that the interest rate i of 7.5% and the number of years n (1) will remain constant. However, you want to know how much the investment capital C would have to be modified in order to attain a particular return I. For this example, calculate how much capital C would be required if you want an annual return of $15,000.

Enter each of the values mentioned above into adjacent cells (for Capital C, an arbitrary value like $100,000 or it can be left blank; for number of years n, 1; for interest rate i, 7.5%). Enter the formula to calculate the interest I in another cell. Instead of C, n, and i use the reference to the cell with the corresponding value. In our example, this would be =B1*B2*B3.

  1. Place the cursor in the formula cell (B4), and choose Tools > Goal Seek.
  2. On the Goal Seek dialog, the correct cell is already entered in the Formula cell field.
  3. Place the cursor in the Variable cell field. In the sheet, click in the cell that contains the value to be changed, in this example it is B1.
  4. Enter the desired result of the formula in the Target value field. In this example, the value is 15000. The figure below shows the cells and fields.
  5. Example setup for goal seek
  6. Click OK. A dialog appears informing you that the Goal Seek was successful. Click Yes to enter the result in the cell with the variable value. The result is shown below.
  7. Result of goal seek operation


Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools