Using the Scenario Manager


To model more complicated problems than data tables can handle, involving as many as 32 variables, you can call on the services of the Scenario Manager by clicking the What-If Analysis button in the Data Tools group on the Data tab and then clicking Scenario Manager. A scenario is a named combination of values assigned to one or more variable cells in a what-if model. The worksheet in Figure 18-8 is a what-if model, set up so you can type variable figures and watch the effect on dependent computed values. The Scenario Manager records, tracks, and applies combinations of variable values.

image from book
Figure 18-8: We'll use the Scenario Manager to model the effects of changing values in D2- D3, D5, and E8- E13 of this worksheet.

On the CD You can find the Revenue Scenarios. xlsm file in the Sample Files section of the companion CD.

Here are some of the tasks you can do with the Scenario Manager:

  • Create multiple scenarios for a single what-if model, each with its own sets of variables. You can create as many scenarios as your model requires.

  • Distribute a what-if model to other members of your group so they can add their own scenarios. Then you can collect the multiple versions and merge all the scenarios into a single worksheet.

  • Track changes made to scenarios easily with the version-control features of the Scenario Manager by recording the date and the user name each time a scenario is added or modified.

  • Print reports detailing all the changing cells and result cells.

  • Password-protect scenarios from modification, and even hide them from view.

  • Examine relationships between scenarios created by multiple users, using Scenario Summary and PivotTable reports. For more about PivotTables, see Chapter 22, "Analyzing Data with PivotTable Reports."

Imagine that you manage a grocery store whose profit picture is modeled by the worksheet in Figure 18-8. The numbers in D2: D5 and E8: E13 are historic averages; column C contains the range names applied to the relevant cells in columns D and E. You're interested in testing the impact of changes in these cells on the bottom line in cell E16.

Note 

Cell references are OK, but before you begin using the Scenario Manager, it's a good idea to name the cells you plan to use for your variables, as well as any cells containing formulas whose values depend on your variable cells. This step isn't required, but it makes the scenario reports, as well as some of the dialog boxes, more intelligible. For more information, see "Naming Cells and Cell Ranges" on page 441.

Defining Scenarios

To define a scenario, follow these steps:

  1. Click the What-If Analysis button on the Data tab, and click Scenario Manager.

  2. In the Scenario Manager dialog box, shown in Figure 18-9, click Add.

  3. In the Add Scenario dialog box, shown in Figure 18-10, type a name for your scenario. (Note that as soon as you type cell references in the Add Scenario dialog box, the title of the dialog box changes to Edit Scenario.)

    Note 

    It's a good idea to define the values you begin with as a scenario before changing any of them. You can name this scenario something like Starting Values or Last Year, as in our example. If you don't name the starting scenario, you'll lose your original what-if assumptions when you display the new changing cell values on your worksheet.

  4. In the Changing Cells box, type or select the cells you plan to vary. Select nonadjacent cells and ranges by pressing the Ctrl key before selecting the cells or by separating their references or names with commas, as shown in Figure 18-10.

  5. Click OK to create the first scenario. The Scenario Values dialog box appears, displaying a box for each changing cell. If you have named the changing cells, the names appear adjacent to the boxes, as shown in Figure 18-11; otherwise, the references of the changing cells appear.

  6. To complete a scenario, edit these values; however, for this example, leave the values as they are, and just click OK.

    Note 

    In each text box in the Scenario Values dialog box, you can type either a constant or a formula. For example, to increase the value of the first variable in Figure 18-11, click in front of the value in the first variable's box, and type =1.1* to create a formula that multiplies the current value by 1.1. (Note that although you can type formulas in the Scenario Values dialog box, Excel alerts you that the formulas are converted to their resulting values after you click OK.)

  7. To create another scenario, click Add to return to the Add Scenario dialog box.

image from book
Figure 18-9: When you click the What-If Analysis button on the Data tab and then click Scenario Manager, Excel displays the Scenario Manager dialog box.

image from book
Figure 18-10: Here we entered the references of the changing cells individually by clicking cells and ranges, separating each reference from the next with a comma.

image from book
Figure 18-11: Because we previously named each changing cell, the names appear in the Scenario Values dialog box.

Browsing Your Scenarios

Select a scenario name in the Scenario Manager dialog box, and click Show. The Scenario Manager replaces the variable values currently on the worksheet with the values you specified when you created the scenario. In Figure 18-12, the example worksheet has a scenario showing average customer visits increased by 5 percent and revenues per customer visit decreased by 5 percent.

image from book
Figure 18-12: Clicking Show replaces your current worksheet values with the values of a specified scenario.

The Scenario Manager dialog box remains on the screen after you click the Show button so you can look at the results of other scenarios without returning to the worksheet. If you click Close or press Esc to close the Scenario Manager dialog box, the values from the last scenario you browsed remain on the worksheet. (This is a good reason to create a starting values scenario, as mentioned earlier.)

Adding, Editing, and Deleting Scenarios

Excel saves scenarios with all other worksheet data when you save them. Each worksheet in a workbook can contain its own set of scenarios. In the Scenario Manager dialog box, you add new scenarios by clicking Add, and you edit existing scenarios by clicking Edit, which displays the Edit Scenario dialog box (which is functionally the same as the Add Scenario dialog box shown in Figure 18-10). You can change the name of the selected scenario, add or remove changing cells, or add comments in the Edit Scenario dialog box.

Tracking Changes

If someone edits a scenario, Excel adds a Modified By entry to the Comment box in the Scenario Manager dialog box, beneath the Created By entry that appears when you first add a scenario. Each time a scenario is modified, Excel adds the name of the user and the date of modification. This information is particularly helpful if you route your what-if models to others and then merge their scenarios into a single what-if model, as discussed in the following section.

Inside Out-Comment Modifications

image from book

When you edit scenarios, you can modify the contents of the Comment box; those modifications persist in all dialog boxes, including the creation and modification dates. You might not want this to happen if you really want to track changes or prevent tampering. If you don't want these comments modified, make sure you take advantage of the pre-ventative measures discussed in "Protecting Worksheets" on page 156.

image from book

Routing and Merging Scenarios

If part of your job is to develop what-if models or projections for your company, you probably spend a lot of time gathering information about trends and market forces that might affect the company in the future. Often you need input from several people, each of whom knows about a particular aspect of the business, such as payroll costs or sales trends. Excel includes a scenario-merging feature to make this sort of information gathering easier.

For example, suppose you want to distribute a what-if model to your co-workers: Vicki has expertise about customer trends, Max knows the payroll story, and Regina keeps track of advertising. You can distribute individually named copies of the workbook to each person, and after your co-workers add their what-if scenarios and return the workbook or workbooks, you can merge the scenarios into a master worksheet. Simply open all the workbooks containing the scenarios you want, open the worksheet where you want the result to go, and click Merge in the Scenario Manager dialog box. When you do so, a dialog box like the one in Figure 18-13 appears.

image from book
Figure 18-13: Clicking Merge in the Scenario Manager dialog box displays the Merge Scenarios dialog box, with which you can import scenarios from any worksheet in any open workbook.

Inside Out-Request Only the Data You Need

image from book

Merging scenarios works best if the basic structure of all the worksheets is identical. Although this uniformity isn't a strict requirement, merging scenarios from worksheets that are laid out differently can cause changing cell values to appear in unexpected locations. For this reason, and because it's generally difficult to ascertain the skill level of everyone contributing data, you might try a different approach. Distribute a questionnaire requesting only the data you need, use external cell references to link the requested data with the appropriate locations on your master worksheet, and create the scenarios yourself.

image from book

In the Merge Scenarios dialog box, you select the workbook and worksheet from which you want to merge scenarios. As shown in Figure 18-13, if you select a worksheet in the Sheet list, a message at the bottom of the dialog box tells you how many scenarios exist on that worksheet. When you click OK, the scenarios on that worksheet are copied to the active worksheet. After merging all the scenarios from your co-workers, the Scenario Manager dialog box for this example looks like the one shown in Figure 18-14.

image from book
Figure 18-14: The merged scenarios are now available on the same worksheet.

Notice in Figure 18-14 that the Comment box displays the name of the creator and modifier of the selected scenario. If the Scenarios list includes similarly named scenarios, Excel appends a creator name, date, or number to the name. You can use the Edit button to rename the scenarios if you want.

Each group of scenarios provided by the co-workers uses different changing cells. Vicki's scenarios change the values in cells D2, D3, and D5; Max's scenarios change only the value in E8; and Regina's scenarios change only the value in Ell. You can display these different scenarios together and watch how the combinations affect the bottom line.

Creating Scenario Reports

The Revenue Scenarios workbook with its merged scenarios has become a somewhat complex what-if model. However, you can create models that are far more complex, which can include as many scenarios as you want (or as many as your computer can handle) with up to 32 variables per scenario. The Scenario Manager summary reports help you keep track of the possibilities, and PivotTable reports give you additional what-if functionality by allowing you to manipulate the elements of the report. However, although you can create as many scenarios as you like, the Scenario Summary report will display only the first 251 of them.

Clicking Summary in the Scenario Manager dialog box displays the dialog box shown in Figure 18-15. Use it to create reports that show the values each scenario assigns to each changing cell.

image from book
Figure 18-15: Use the Scenario Summary dialog box to specify the type of report and the result cells you want to see.

At the bottom of the dialog box, you identify result cells that you want to appear in the report, separated by commas. You want cells that are dependent on the most changing cells-in this case, the Operating Profit value in cell E16, as well as cell E6, the yearly Gross Profit value.

The Scenario Summary Report

The Scenario Summary is a fully formatted report placed on a new worksheet, as shown in Figure 18-16.

image from book
Figure 18-16: The Scenario Summary option creates a report on a new worksheet named Scenario Summary.

In Figure 18-16, notice that all the changing cell values in column E are shaded in gray. The shading indicates cells that change in the scenario named at the top of the column.

Notice also that outlining symbols appear above and to the left of the summary report, allowing you to show and hide details. As you can see in Figure 18-17, clicking the outline plus sign symbol displays hidden data-the contents of the Comment box in the Scenario Manager dialog box, including the creation and modification dates of each scenario.

image from book
Figure 18-17: The comments entered in the Scenario Manager dialog box are hidden in row 4 of the Scenario Summary report.

For information about working with worksheet outlines, see "Outlining Worksheets" on page 253.

The Scenario PivotTable Report

Like the Scenario Summary report, the Scenario PivotTable report is created as a new worksheet in your workbook. However, PivotTables are what-if tools in their own right, allowing you to use direct mouse-manipulation techniques to mix and match different scenarios in the report and watch the effects on result cells. Figure 18-18 shows a Scenario PivotTable report created from a version of the Revenue Scenarios workbook.

image from book
Figure 18-18: The Scenario PivotTable report manipulates the actual data in the report.

For information about how to use PivotTables, see Chapter 22.

image from book
Use Scenario Summary Reports

PivotTables are powerful analysis tools best suited to complex what-if models that include scenarios with different sets of changing cells created by different people. The more one-dimensional your what-if model, the less useful a PivotTable becomes. Pivot-Tables take longer to create and consume more memory than summary reports. If you create all the scenarios yourself and use the same set of changing cells in each, you might find it easier to use Scenario Summary reports because you won't be able to make use of the advantages offered by the PivotTable.

image from book



Microsoft Office Excel 2007 Inside Out
MicrosoftВ® Office ExcelВ® 2007 Inside Out (Inside Out (Microsoft))
ISBN: 073562321X
EAN: 2147483647
Year: 2004
Pages: 260

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net