1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*cdf0e10cSrcweir
3*cdf0e10cSrcweir
4*cdf0e10cSrcweir
5*cdf0e10cSrcweir<!--
6*cdf0e10cSrcweir ***********************************************************************
7*cdf0e10cSrcweir *
8*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9*cdf0e10cSrcweir *
10*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
11*cdf0e10cSrcweir *
12*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
13*cdf0e10cSrcweir *
14*cdf0e10cSrcweir * This file is part of OpenOffice.org.
15*cdf0e10cSrcweir *
16*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
17*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
18*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
19*cdf0e10cSrcweir *
20*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
21*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
22*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
24*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
27*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
28*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
29*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
30*cdf0e10cSrcweir *
31*cdf0e10cSrcweir ************************************************************************
32*cdf0e10cSrcweir -->
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir
35*cdf0e10cSrcweir		<helpdocument version="1.0">
36*cdf0e10cSrcweir<meta>
37*cdf0e10cSrcweir<topic id="textscalcguidescenarioxml" indexer="include" status="PUBLISH">
38*cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Using Scenarios</title>
39*cdf0e10cSrcweir<filename>/text/scalc/guide/scenario.xhp</filename>
40*cdf0e10cSrcweir</topic>
41*cdf0e10cSrcweir</meta>
42*cdf0e10cSrcweir<body>
43*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3149664"><bookmark_value>scenarios; creating/editing/deleting</bookmark_value>
44*cdf0e10cSrcweir<bookmark_value>opening;scenarios</bookmark_value>
45*cdf0e10cSrcweir<bookmark_value>selecting;scenarios in Navigator</bookmark_value>
46*cdf0e10cSrcweir</bookmark><comment>UFI: removed "sample" from index term: no sample in OOo</comment><comment>MW changed "scenarios;"</comment><paragraph role="heading" id="hd_id3125863" xml-lang="en-US" level="1" l10n="U" oldref="1"><variable id="scenario"><link href="text/scalc/guide/scenario.xhp" name="Using Scenarios">Using Scenarios</link>
47*cdf0e10cSrcweir</variable></paragraph>
48*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150869" xml-lang="en-US" l10n="CHG" oldref="2">A $[officename] Calc scenario is a set of cell values that can be used within your calculations. You assign a name to every scenario on your sheet. Define several scenarios on the same sheet, each with some different values in the cells. Then you can easily switch the sets of cell values by their name and immediately observe the results. Scenarios are a tool to test out "what-if" questions.</paragraph>
49*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3149255" xml-lang="en-US" level="3" l10n="U" oldref="15">Creating Your Own Scenarios</paragraph>
50*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154704" xml-lang="en-US" l10n="U" oldref="16">To create a scenario, select all the cells that provide the data for the scenario. </paragraph>
51*cdf0e10cSrcweir<list type="ordered">
52*cdf0e10cSrcweir<listitem>
53*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3154020" xml-lang="en-US" l10n="CHG" oldref="17">Select the cells that contain the values that will change between scenarios. To select multiple cells, hold down the <item type="keycode"><switchinline select="sys"><caseinline select="MAC">Command </caseinline><defaultinline>Ctrl </defaultinline></switchinline></item>key as you click each cell.</paragraph>
54*cdf0e10cSrcweir</listitem>
55*cdf0e10cSrcweir<listitem>
56*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3150364" xml-lang="en-US" l10n="U" oldref="18">Choose <emph>Tools - Scenarios</emph>. The <emph>Create Scenario</emph> dialog appears.</paragraph>
57*cdf0e10cSrcweir</listitem>
58*cdf0e10cSrcweir<listitem>
59*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3166426" xml-lang="en-US" l10n="U" oldref="19">Enter a name for the new scenario and leave the other fields unchanged with their default values. Close the dialog with OK. Your new scenario is automatically activated.</paragraph>
60*cdf0e10cSrcweir</listitem>
61*cdf0e10cSrcweir</list>
62*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3149664" xml-lang="en-US" level="3" l10n="CHG" oldref="3">Using Scenarios</paragraph><comment>removed "commercial" switched contents</comment><paragraph role="paragraph" id="par_id3153415" xml-lang="en-US" l10n="CHG" oldref="11">Scenarios can be selected in the Navigator:</paragraph>
63*cdf0e10cSrcweir<list type="ordered">
64*cdf0e10cSrcweir<listitem>
65*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3150752" xml-lang="en-US" l10n="CHG" oldref="12">Open the Navigator with the <emph>Navigator</emph> icon
66*cdf0e10cSrcweir<image id="img_id1593676" src="res/commandimagelist/sc_navigator.png" width="0.1665inch" height="0.1665inch"><alt id="alt_id1593676" xml-lang="en-US">Navigator icon</alt>
67*cdf0e10cSrcweir	</image> on the Standard bar.</paragraph>
68*cdf0e10cSrcweir</listitem>
69*cdf0e10cSrcweir<listitem>
70*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3155764" xml-lang="en-US" l10n="CHG" oldref="13">Click the <emph>Scenarios</emph> icon
71*cdf0e10cSrcweir<image id="img_id7617114" src="sc/res/imglst/navipi/na07.png" width="0.222inch" height="0.222inch"><alt id="alt_id7617114" xml-lang="en-US">Scenarios icon</alt>
72*cdf0e10cSrcweir	</image> in the Navigator.</paragraph>
73*cdf0e10cSrcweir</listitem>
74*cdf0e10cSrcweir</list>
75*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154256" xml-lang="en-US" l10n="U" oldref="14">In the Navigator, you see the defined scenarios with the comments that were entered when the scenarios were created.</paragraph>
76*cdf0e10cSrcweir<list type="unordered">
77*cdf0e10cSrcweir<listitem>
78*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id1243629" xml-lang="en-US" l10n="NEW">Double-click a scenario name in the Navigator to apply that scenario to the current sheet.</paragraph>
79*cdf0e10cSrcweir</listitem>
80*cdf0e10cSrcweir<listitem>
81*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id9044770" xml-lang="en-US" l10n="NEW">To delete a scenario, right-click the name in the Navigator and choose <emph>Delete</emph>.</paragraph>
82*cdf0e10cSrcweir</listitem>
83*cdf0e10cSrcweir<listitem>
84*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3674123" xml-lang="en-US" l10n="NEW">To edit a scenario, right-click the name in the Navigator and choose <emph>Properties</emph>.</paragraph>
85*cdf0e10cSrcweir</listitem>
86*cdf0e10cSrcweir<listitem>
87*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3424481" xml-lang="en-US" l10n="NEW">To hide the border of a set of cells that are part of a scenario, open the <emph>Properties</emph> dialog for each scenario that affects the cells and clear the Display border checkbox. Hiding the border also removes the listbox on the sheet where you can choose the scenarios.</paragraph>
88*cdf0e10cSrcweir</listitem>
89*cdf0e10cSrcweir</list>
90*cdf0e10cSrcweir<paragraph role="note" id="par_id3154368" xml-lang="en-US" l10n="U" oldref="22">If you want to know which values in the scenario affect other values, choose <emph>Tools - Detective - Trace Dependents</emph>. You see arrows to the cells that are directly dependent on the current cell.</paragraph>
91*cdf0e10cSrcweir<section id="relatedtopics">
92*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154484" xml-lang="en-US" l10n="U" oldref="29"><link href="text/scalc/01/06050000.xhp" name="Creating Scenarios">Creating Scenarios</link></paragraph>
93*cdf0e10cSrcweir<embed href="text/scalc/guide/multioperation.xhp#multioperation"/>
94*cdf0e10cSrcweir</section>
95*cdf0e10cSrcweir</body>
96*cdf0e10cSrcweir</helpdocument>
97