Beruflich Dokumente
Kultur Dokumente
Data Analysis
Tables 6
Evaluating Trends 11
Using Solver 20
Creating Scenarios 23
8. Click on Data
Analysis
9. Select Descriptive
Statistics from the
Analysis Tools as in
Figure DA-02
10. Click OK
Figure DA-02
The Descriptive Statistics
box is shown in Figure DA-03.
Figure DA-03
© Copyright 2004 Northern Illinois University Information Technology Services 2
11. Click on the contract button for the Input Range box.
12. Highlight B1 through C7
13. Click the expand button
14. Check the Labels in First Row box
15. Click on the contract button for the Output Range box
16. Click on cell A11
17. Click the expand button
18. Check the Summary
Statistics box
The Descriptive Statistics window
should now look like Figure DA-04.
19. Click OK
20. The output will be
crowded so highlight the
column headings for
columns A through D
21. Position the cursor over
the right-hand border of
one of the highlighted
columns and double-click Figure DA-04
to increase the width of
each column to the widest cell in the column.
Figure DA-05
The coefficient for STUDENTS, 5069.547647, indicates that every student adds
$5,069.55 to EXPENDITURES and that even with no students there would be
$12,763.11 in EXPENDITURES. Let’s use these coefficients to set up an
equation to predict EXPENDITURES based upon student numbers.
39. Click on cell P3
40. Type =
41. Click on cell F17
42. Type +
43. Click on cell F18
44. Type *
45. Click on cell O3
46. Press Enter
These steps have created a prediction equation based upon the regression
analysis that can be used to predict expenditures for varying numbers of
students. Care must be taken in interpreting results greatly beyond the range of
existing data; i.e. the prediction may be reasonable for 20 students, but not
realistic for 100 students.
47. Click on cell O3
48. Type 20
49. Press Enter
The equation predicts that if we had 20 students we could expect expenditures to be $114,
154.06. The above examples illustrate some of the types of statistical analysis that can be
performed with Excel’s Add-in Analysis ToolPak.
Figure PT-02
© Copyright 2004 Northern Illinois University Information Technology Services 7
23. Click on cell B3 and then click on the Expand dialog box button
The Pv argument is the principal value. We will not supply any arguments for the
Fv and Type arguments because we want the future value of this investment to
equal zero when the pay period ends and we are paying at the end of each
month, which are the defaults when an argument is not supplied. Figure 4 shows
the formula box now. Compare your formula box to the figure and correct any
mistakes. The value of each argument is evaluated and displayed to the right of
the argument boxes. The monthly interest rate, which is expressed as a decimal
value, is .00625. The number of periods is 60 months and the principal value is
18000.
24. Click OK
A negative value of $360.68 is displayed in cell B6. The payment is negative
because it is the amount we must pay each month to pay off an $18,000
investment at 7.5% for 5 years.
Suppose you want to see how the monthly payments will change when the
annual interest rate and pay period are modified. We can set up a table to
perform this what-if analysis. The table will display the input parameters along
the top row and left-most column with each cell within the table displaying the
formula result for each combination of input values.
To set up the table, the formula must be in the top, leftmost column. Then the
input values are entered on the same row beginning in the next cell to the right of
the formula and on the same column beginning with the next cell below the
formula.
25. Position the cursor on cell B7 then continuously hold the left mouse
button down
26. Drag the mouse pointer down to cell B9 and then release the mouse
button
The cell range B7:B9 should be highlighted.
27. Type 3 and press Enter
28. Type 4 and press Enter
29. Type 5 and press Enter
We will use the leftmost column to supply different number of pay period values
to the PMT function.
30. Now position the cursor on cell C6 then continuously hold the left mouse
button down
31. Drag the mouse pointer to cell D6 and then release the mouse button
The cell range C6:D6 should be highlighted.
32. Type 6 and press Enter
33. Type 6.5 and click on the fill handle of the highlighted range C6:D6
Figure PT-03
36. Drag the mouse pointer to cell K9 and release the mouse button
The cell range B6:K9 should be highlighted and if is not then repeat steps 35 and
36 above. You must highlight the entire cell range that will display the results of
the table and the formula must be in the top, leftmost cell of the table.
37. Click on Data in the dropdown menus
38. Click on Table
A dialog box entitled Table appears with two options labeled Row input cell and
Column input cell. We must specify the cell range containing the row input
values within the table and the cell range containing the column input values.
39. Click within the box labeled Row input cell
40. Click on the Contract button
41. Click on cell B1
The cell address $B$1 should be filled into the Row input cell box. Cell B1
contains the annual interest rate and the table will replace the interest rate using
the five values entered in cells C6, D6, E6, F6, and G6.
42. Click on the Expand button to return to the Table dialog box
43. Click within the Column input cell box
44. Click on the Contract button
45. Click on cell B2
Figure PT-04
This is the same result as cell B6 because these were the original values
supplied to the function. Now you can compare the different payment values
across different interest rates and pay periods. For example, cell E7 shows the
monthly payment amount if the interest rate is 7% and the pay period is only 3
years. Cell G8 shows the monthly payment amount if the interest rate is 8% and
the pay period is 4 years. The formatting of the monthly payments in the newly
created table can be easily set using the Format Painter.
48. Click on cell B6
49. Click on the Format Painter
50. Swipe the Format Painter across cells C7 through K9
The table will now look like Figure PT-05.
Figure PT-05
Figure ET-01
Figure ET-05
Let’s use the exponential equation to forecast for the next ten years.
20. Right-click on the trendline.
21. Click on the Type tab
22. Choose the Exponential trendline
type
23. Click on the Options tab
24. Click in the Forecast Forward: box
and enter 10 as in Figure TL9
25. Click OK
Figure ET-06
Figure ET-07
One method of predicting future data points in our data is to use the regression
equation that Excel has computed for us. To do so we must understand that in
our data the X in Excel’s equation represents an incremental counter starting at
one and ending at five for the five data points in our data. The value of e (the
base of natural logarithms) is 2.71828183. The * is used in Excel to multiply
values. The ^ is used in Excel to raise values to a power. The formula Excel
displays as y = 327.68e0.2231x is already coded in cell E7 as =327.68*
2.71828183^(0.2231*D7). In the following steps we will use Excel’s exponential
prediction equation calculated from our data y = 327.68e0.2231x to predict future
data points. First we must unhide cell E7.
26. Highlight column headings C through F
27. Right-click then click Unhide in the popup menu
28. Click in cell E7
29. Position the cursor over the fill handle
30. Hold the left mouse button down and drag the fill handle to cell E21 and
release it
Figure ET-08
If linear or growth equations adequately describe the data there is an even easier
method of computing future data points.
31. Click on cell B7
32. Highlight cells B7 through B11 and position the cursor over the fill
handle
33. Hold the left mouse key down and drag the fill handle to cell B21 and
release it
34. Click on cell C7
35. Highlight cells C7 through
C11 and position the
cursor over the fill handle
36. Hold the RIGHT mouse
key down and drag the fill
handle to cell C21 and
release
The Trends menu that pops up
(Figure ET-09) will allow the choice
of either a Linear Trend or Growth
Trend to fill in the future data
points. Since our data was best
described by either an exponential
or second degree polynomial
regression equation we should
select the Growth Trend.
37. Click on Growth Trend
Figure ET-09
Figure ET-10
Goal Seek is one of Excel’s what-if tools. Goal Seek allows you to
• Specify a single adjustable cell.
• Specify a target value that is dependent upon the adjustable cell.
• Generate a solution by manipulating the value of the adjustable cell.
• Generate a single solution to a problem
Goal Seek is a relatively easy tool to learn how to use and is a useful tool for
finding solutions to complex problems involving a single variable. We will use it
to find the coefficient required to reach a Department’s goals for growth in tuition
income over the next ten years. The objective is to predict the coefficient of
growth (x) required to achieve a ten-year goal and compute the annual tuition
targets leading to that objective. It is assumed that the department has
$1,000,000 of tuition income in the current year and that tuition income for each
future year will increase by (x) times the previous year’s tuition total. This data
and accompanying chart are present in the Goal Seek worksheet.
1. Click on the Goal Seek worksheet tab
We want use the Goal Seek tool to compute the growth rate required to reach a
goal of $10,000,000 of tuition income in the department by year 2011. The
current tuition income in 2002 is $1,000,000. Over the past five years an annual
growth rate of 125% has been achieved. Using this growth rate the tuition levels
over the next ten years has been predicted in the table in the worksheet and
charted in the accompanying chart. Tuition has been coded to thousands of
dollars. This predicts the department will fail to reach the $10,000,000 tuition
income target in 2011. We will use Goal Seek to determine what the future
growth rate must be to reach the 2011 objective.
2. Click on cell C17.
This is the location of our objective.
3. Click on Tools in the dropdown menus
4. Choose and click on Goal Seek
The Goal Seek box (Figure GS-01) will appear.
Our target cell is populated in Set cell: because
we clicked on it (C16) before opening Goal Seek
5. Click in the To value: box and enter
12000, the number of thousands of
dollars equivalent to the goal of
$12,000,000
Figure GS-01
Figure GS-02
The Goal Seek Status window (Figure GS-03) will announce that a solution has
been found and that a Current value of $12,000 (thousands) matched the Target
value of 12000. This value has been placed in cell C16. Notice that the tuition
values for other years have not yet been changed and the chart does not yet
reflect the use of the new coefficient of growth in cell B1.
8. Click OK to accept the
solution of 128.21% as
the coefficient of growth
necessary to achieve the
target of $12,000,000
tuition income in year
2012. The newly
calculated coefficient is
in cell B1.
Figure GS-03
Now both the table and the chart reflect the use of the newly computed growth
rate in the modified values now present for each year. Next we want to visit an
alternative way to accomplish the same result.
9. Click the undo button on Excel’s standard Toolbar
10. Position the cursor over the 2012 bar.
In the Department Tuition Income
chart and click the left mouse
button twice. Only the 2012 bar
should be active as identified by
the size handles on both ends and
in the middle.
11. Position the cursor over
the top of active 2012 bar
and hold down the left
mouse button when the
two pointed arrow appears
as in Figure GS-04.
Figure GS-04
1. Click on the
Solver worksheet
tab
2. Click in cell E15
3. Click on Tools in
the dropdown
menus
4. Click on Solver
The Solver Parameters
window will pop up. As we
want to minimize the
number of total staff
required for the Special
Event we will leave $E$15
in the Set Target Cell: as Figure SO-01
in Figure SO-02. Solver
allows us to change values
in multiple cells and apply
constraints to multiple
variables.
Figure SO-02
Figure SO-03
14. Click OK
15. Make certain
the Min button
is checked and
that 0 is in the
Value of: box
as in Figure
SO-05
Figure SO-5
Figure SO-06
17. Click OK
Solver has changed the adjustable cells in E4 to E13 to the solution it found for
minimizing the total number of staff that needs to be scheduled. As shown in
Figure SO-07, a total of 72 people need to be scheduled. The timing of when
varying numbers of staff must start their three-hour shifts has been optimized to
minimize the total number of staff that needing to be scheduled. At times
additional constraints must be assigned to insure that partial people or negative
numbers are rejected as solutions. If Solver fails to find a solution, recheck entry
parameters and constraints.
Figure SO7
Figure SO-07
Scenarios are a tool Excel has to allow us to look and be able to recall the effects
of making multiple changes to cells affecting the results of our worksheet.
Excel's Scenario Manager feature makes it easy to automate your what-if
models. You can store different sets of input values (called changing cells by
Scenario Manager) for any number of variables and give a name to each set.
You can then select a set of values by name, and Excel displays the worksheet
by using those values. Next we will try out the Scenario Manager.
1. Click on the Scenario worksheet tab
2. Click on Tools in the dropdown menus
3. Click on Scenarios as in Figure SC-01
4. Click on Add in the Scenario Manager window
Shown in Figure SC-02
Figure SC-01
Figure SC-02
5. Click in the Scenario name: box of The Edit Scenario window that pops
up
6. Type in Loan_175_30_700
7. Click in the Changing cells: box
8. Click on the contact button
9. Click on cell C4
10. Type in a comma
11. Click on cell C6
12. Type in a comma
13. Click on cell C7
14. Click on the expand button
Figure SC-05
42. Click the Summary button
43. In the Scenario Summary window that pops up leave the Scenario
summary box checked
44. Click in the Result Cells box and highlight cells C10 through C13
45. Click OK
Excel has added a worksheet called Scenario Summary containing the results
of the various summaries we have built. (Figure SC-06).
Figure SC-06