1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?>
2*b1cdbd2cSJim Jagielski
3*b1cdbd2cSJim Jagielski
4*b1cdbd2cSJim Jagielski
5*b1cdbd2cSJim Jagielski<!--***********************************************************
6*b1cdbd2cSJim Jagielski *
7*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
8*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
9*b1cdbd2cSJim Jagielski * distributed with this work for additional information
10*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
11*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
12*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
13*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
14*b1cdbd2cSJim Jagielski *
15*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
16*b1cdbd2cSJim Jagielski *
17*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
18*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
19*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
21*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
22*b1cdbd2cSJim Jagielski * under the License.
23*b1cdbd2cSJim Jagielski *
24*b1cdbd2cSJim Jagielski ***********************************************************-->
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski
29*b1cdbd2cSJim Jagielski		<helpdocument version="1.0">
30*b1cdbd2cSJim Jagielski<meta>
31*b1cdbd2cSJim Jagielski<topic id="textscalcguidescenarioxml" indexer="include" status="PUBLISH">
32*b1cdbd2cSJim Jagielski<title id="tit" xml-lang="en-US">Using Scenarios</title>
33*b1cdbd2cSJim Jagielski<filename>/text/scalc/guide/scenario.xhp</filename>
34*b1cdbd2cSJim Jagielski</topic>
35*b1cdbd2cSJim Jagielski</meta>
36*b1cdbd2cSJim Jagielski<body>
37*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3149664"><bookmark_value>scenarios; creating/editing/deleting</bookmark_value>
38*b1cdbd2cSJim Jagielski<bookmark_value>opening;scenarios</bookmark_value>
39*b1cdbd2cSJim Jagielski<bookmark_value>selecting;scenarios in Navigator</bookmark_value>
40*b1cdbd2cSJim Jagielski</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>
41*b1cdbd2cSJim Jagielski</variable></paragraph>
42*b1cdbd2cSJim Jagielski<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>
43*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3149255" xml-lang="en-US" level="3" l10n="U" oldref="15">Creating Your Own Scenarios</paragraph>
44*b1cdbd2cSJim Jagielski<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>
45*b1cdbd2cSJim Jagielski<list type="ordered">
46*b1cdbd2cSJim Jagielski<listitem>
47*b1cdbd2cSJim Jagielski<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>
48*b1cdbd2cSJim Jagielski</listitem>
49*b1cdbd2cSJim Jagielski<listitem>
50*b1cdbd2cSJim Jagielski<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>
51*b1cdbd2cSJim Jagielski</listitem>
52*b1cdbd2cSJim Jagielski<listitem>
53*b1cdbd2cSJim Jagielski<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>
54*b1cdbd2cSJim Jagielski</listitem>
55*b1cdbd2cSJim Jagielski</list>
56*b1cdbd2cSJim Jagielski<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>
57*b1cdbd2cSJim Jagielski<list type="ordered">
58*b1cdbd2cSJim Jagielski<listitem>
59*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3150752" xml-lang="en-US" l10n="CHG" oldref="12">Open the Navigator with the <emph>Navigator</emph> icon
60*b1cdbd2cSJim Jagielski<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>
61*b1cdbd2cSJim Jagielski	</image> on the Standard bar.</paragraph>
62*b1cdbd2cSJim Jagielski</listitem>
63*b1cdbd2cSJim Jagielski<listitem>
64*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3155764" xml-lang="en-US" l10n="CHG" oldref="13">Click the <emph>Scenarios</emph> icon
65*b1cdbd2cSJim Jagielski<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>
66*b1cdbd2cSJim Jagielski	</image> in the Navigator.</paragraph>
67*b1cdbd2cSJim Jagielski</listitem>
68*b1cdbd2cSJim Jagielski</list>
69*b1cdbd2cSJim Jagielski<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>
70*b1cdbd2cSJim Jagielski<list type="unordered">
71*b1cdbd2cSJim Jagielski<listitem>
72*b1cdbd2cSJim Jagielski<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>
73*b1cdbd2cSJim Jagielski</listitem>
74*b1cdbd2cSJim Jagielski<listitem>
75*b1cdbd2cSJim Jagielski<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>
76*b1cdbd2cSJim Jagielski</listitem>
77*b1cdbd2cSJim Jagielski<listitem>
78*b1cdbd2cSJim Jagielski<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>
79*b1cdbd2cSJim Jagielski</listitem>
80*b1cdbd2cSJim Jagielski<listitem>
81*b1cdbd2cSJim Jagielski<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>
82*b1cdbd2cSJim Jagielski</listitem>
83*b1cdbd2cSJim Jagielski</list>
84*b1cdbd2cSJim Jagielski<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>
85*b1cdbd2cSJim Jagielski<section id="relatedtopics">
86*b1cdbd2cSJim Jagielski<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>
87*b1cdbd2cSJim Jagielski<embed href="text/scalc/guide/multioperation.xhp#multioperation"/>
88*b1cdbd2cSJim Jagielski</section>
89*b1cdbd2cSJim Jagielski</body>
90*b1cdbd2cSJim Jagielski</helpdocument>
91