18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Analyzing Data Using Goal Seek and Solver 37<br />

A simple Solver example<br />

I start with a simple example to introduce Solver and then present some increasingly complex examples to<br />

demonstrate what this feature can do.<br />

Figure 37.3 shows a worksheet that is set up to calculate the profit for three products. Column B shows the<br />

number of units of each product, Column C shows the profit per unit for each product, and Column D contains<br />

formulas that calculate the total profit for each product by multiplying the units by the profit per unit.<br />

ON the CD-ROM<br />

This workbook, named three products.xlsx, is available on this book’s CD-ROM.<br />

FIGURE 37.3<br />

Use Solver to determine the number of units to maximize the total profit.<br />

You don’t need an MBA degree to realize that the greatest profit comes from Product C. Therefore, in order<br />

to maximize total profit, the logical solution is to produce only Product C. If things were really this simple,<br />

you wouldn’t need tools such as Solver. As in most situations, this company has some constraints that must<br />

be met:<br />

n<br />

n<br />

n<br />

n<br />

The combined production capacity is 300 total units per day.<br />

The company needs 50 units of Product A to fill an existing order.<br />

The company needs 40 units of Product B to fill an anticipated order.<br />

Because the market for Product C is relatively limited, the company doesn’t want to produce more<br />

than 40 units of this product.<br />

These four constraints make the problem more realistic and a bit more challenging. In fact, it’s a perfect<br />

problem for Solver.<br />

I go into more detail in a moment, but here is the basic procedure for using Solver:<br />

1. Set up the worksheet with values and formulas. Make sure that you format cells logically; for<br />

example, if you can’t produce partial units of your products, format those cells to contain numbers<br />

with no decimal values.<br />

2. Choose Data ➪ Analysis ➪ Solver to bring up the Solver dialog box.<br />

3. Specify the target cell.<br />

4. Specify the range that contains the changing cells.<br />

5. Specify the constraints.<br />

6. Change the Solver options, if necessary.<br />

7. Let Solver solve the problem.<br />

653

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!