Pivot Table
Pivot Table
PROBLEM
SOLVING USING
EXCEL
Goal Seek, Solver
& Pivot Tables
Goal Seek
• Goal Seek is an analytical function that allows a
value in a formula to be adjusted to reach a
desired result or answer.
• Goal Seek can eliminate unnecessary
calculations that can be used to determine a
single variable value in a formula.
• For example, a salesperson might participate in
a bonus program that pays 3 percent of all sales
dollars. The salesperson wants to receive a
bonus of at least $2,500 and needs to know the
target sales dollar amount needed.
T3-3
• This process is called iteration, and it continues until Excel has run
the problem 100 times or has found an answer within .001 of the
target value specified.
• The iteration settings can be adjusted by choosing Tools, Options,
and adjusting the Iteration options in the Calculations tab.
• It calculates so fast, the Goal Seek command can save significant
time and effort over the brute force method of trying one number
after another in a formula.
T3-4
• Goal Seek is used to adjust a single variable in a formula. Use the Solver
feature to adjust multiple variables in a formula, as described in the next
section.
T3-5
Solver
• Solver is part of a suite of functions sometimes called what-if analysis tools used for
optimizing problems that contain more than one variable.
• The Solver add-in utility is needed to analyze the scenarios in decision-making
situations that involve consideration of values and constraints for several variables
simultaneously.
• This powerful function uses multiple changing variables and constraints to find the
optimal solution to solve a problem.
• For example, consider a coffee shop that currently sells three beverages: (1) regular
fresh-brewed coffee, (2) premium caffe latte, and (3) premium caffe mocha.
• The current price for regular coffee is set at $1.25, caffe latte at $2.00, and caffe
• mocha at $2.25, but the revenue potential is uncertain. What special emphasis (or
marketing) should be given to each of the beverages to maximize revenue?
• Although the premium coffees bring in more money, their ingredients are more
expensive and they take more time to make than regular coffee. Making some basic
calculations by hand is easy, but there needs to be some structure to the sales data
in a worksheet so that periodic changes can be made and analyzed.
T3-8
Solver
• The first step in using the Solver command is to build a “Solver-
friendly” worksheet. This involves creating a target cell to be the goal of
your problem
– For example, a formula that calculates total revenue—and assigning one or more
variable cells that the Solver can change to reach the goal.
• To use Solver, complete the following:
1. Set up a worksheet similar to Figure T4.7.
2. The three variable cells in the worksheet are cells D5, D9, and D13. These are the
cells whose values the Solver needs to determine to maximize the weekly revenue.
3. In the bottom-right corner of the table is a list of constraints to use for forecasting.
4. The worksheet must contain cells (G6 through G8) that include the formulas used
as constraints. The limiting values for the constraints are listed in cells G11 through
G13.
• No more than 500 total cups of coffee (both regular and premium).
• No more than 350 cups of premium coffee (both caffe latte and caffe mocha).
• No more than 125 caffe mochas.
T3-10
Solver
5. The subtotals for cells D6, D10, D14 need to be calculated, as well as the Total
Revenue (sum of D6, D10, and D14) in G4.
6. The value for cell G6 should equal the value that will be calculated for D5 and the
value for cell G7 will be the sum of the values from D9 and D13. The calculation of
G8 = SUM of D5, D9, and D13.
7. Click the target cell G4—the one containing the formula that is based on the
8. variable cells you want the Solver to determine.
9. Select Tools from the main menu, then select Solver. The Solver Parameters dialog
box opens, as shown in Figure T4.8.
a. Select the Set Target Cell text box (unless it already contains the correct reference), and
then click cell G4 to insert $G$4 as the target cell.
b. The Equal To option button (Max) is already selected. Do not change this since the
problem requests the maximum value for the target cell.
10. Select the By Changing Cells text box. Click the button in the text box to collapse the
dialog box. Select each of the variable cells by holding down the Ctrl key and clicking
D5, D9, and D13. This places commas between the three cell entries in the text box:
$D$5, $D$9, $D$13 (refer to Figure T4.9).
T3-11
Solver
11. Click Solve to calculate the result.
12. Solver displays a dialog box describing the results of the analysis. If the Solver runs
into a problem, an error message will be displayed. If the Solver finds a solution, a
Solver Results dialog box like Figure T4.11 will appear.
13. To display the new solution in the worksheet, click the Keep Solver Solution option
button, and then click OK. The Solver places an optimum value in the target cell and
fills the variable cells with the solutions that satisfy the constraints specified and
provide the optimal result, as shown in Figure T4.12.
T3-12
Solver T4.8-T4.11
T3-13
PIVOT TABLES
PivotTable Terminology
PivotTable Terminology
T3-17
PivotTable Tools
PivotTable Tools
Building A PivotChart
Building A PivotChart