1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
302dbb15cSAndrew Rist<!--***********************************************************
48e9b354dSmseidel *
502dbb15cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
602dbb15cSAndrew Rist * or more contributor license agreements.  See the NOTICE file
702dbb15cSAndrew Rist * distributed with this work for additional information
802dbb15cSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
902dbb15cSAndrew Rist * to you under the Apache License, Version 2.0 (the
1002dbb15cSAndrew Rist * "License"); you may not use this file except in compliance
1102dbb15cSAndrew Rist * with the License.  You may obtain a copy of the License at
128e9b354dSmseidel *
1302dbb15cSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
148e9b354dSmseidel *
1502dbb15cSAndrew Rist * Unless required by applicable law or agreed to in writing,
1602dbb15cSAndrew Rist * software distributed under the License is distributed on an
1702dbb15cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1802dbb15cSAndrew Rist * KIND, either express or implied.  See the License for the
1902dbb15cSAndrew Rist * specific language governing permissions and limitations
2002dbb15cSAndrew Rist * under the License.
218e9b354dSmseidel *
2202dbb15cSAndrew Rist ***********************************************************-->
2302dbb15cSAndrew Rist
248e9b354dSmseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textscalcguidescenarioxml" indexer="include" status="PUBLISH">
27cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Using Scenarios</title>
28cdf0e10cSrcweir<filename>/text/scalc/guide/scenario.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
3282a98929Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3149664">
3382a98929Smseidel<bookmark_value>scenarios; creating/editing/deleting</bookmark_value>
34cdf0e10cSrcweir<bookmark_value>opening;scenarios</bookmark_value>
35cdf0e10cSrcweir<bookmark_value>selecting;scenarios in Navigator</bookmark_value>
3682a98929Smseidel</bookmark><comment>UFI: removed "sample" from index term: no sample in AOO</comment><comment>MW changed "scenarios;"</comment>
3782a98929Smseidel<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>
38cdf0e10cSrcweir</variable></paragraph>
39cdf0e10cSrcweir<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>
40cdf0e10cSrcweir<paragraph role="heading" id="hd_id3149255" xml-lang="en-US" level="3" l10n="U" oldref="15">Creating Your Own Scenarios</paragraph>
418e9b354dSmseidel<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>
42cdf0e10cSrcweir<list type="ordered">
43cdf0e10cSrcweir<listitem>
44cdf0e10cSrcweir<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>
45cdf0e10cSrcweir</listitem>
46cdf0e10cSrcweir<listitem>
47cdf0e10cSrcweir<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>
48cdf0e10cSrcweir</listitem>
49cdf0e10cSrcweir<listitem>
50cdf0e10cSrcweir<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>
51cdf0e10cSrcweir</listitem>
52cdf0e10cSrcweir</list>
53*9b5c5849Smseidel<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>
54*9b5c5849Smseidel<paragraph role="paragraph" id="par_id3153415" xml-lang="en-US" l10n="CHG" oldref="11">Scenarios can be selected in the Navigator:</paragraph>
55cdf0e10cSrcweir<list type="ordered">
56cdf0e10cSrcweir<listitem>
57cdf0e10cSrcweir<paragraph role="listitem" id="par_id3150752" xml-lang="en-US" l10n="CHG" oldref="12">Open the Navigator with the <emph>Navigator</emph> icon
58cdf0e10cSrcweir<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>
598e9b354dSmseidel</image> on the Standard bar.</paragraph>
60cdf0e10cSrcweir</listitem>
61cdf0e10cSrcweir<listitem>
62cdf0e10cSrcweir<paragraph role="listitem" id="par_id3155764" xml-lang="en-US" l10n="CHG" oldref="13">Click the <emph>Scenarios</emph> icon
63cdf0e10cSrcweir<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>
648e9b354dSmseidel</image> in the Navigator.</paragraph>
65cdf0e10cSrcweir</listitem>
66cdf0e10cSrcweir</list>
67cdf0e10cSrcweir<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>
68cdf0e10cSrcweir<list type="unordered">
69cdf0e10cSrcweir<listitem>
70cdf0e10cSrcweir<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>
71cdf0e10cSrcweir</listitem>
72cdf0e10cSrcweir<listitem>
73cdf0e10cSrcweir<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>
74cdf0e10cSrcweir</listitem>
75cdf0e10cSrcweir<listitem>
76cdf0e10cSrcweir<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>
77cdf0e10cSrcweir</listitem>
78cdf0e10cSrcweir<listitem>
79cdf0e10cSrcweir<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>
80cdf0e10cSrcweir</listitem>
81cdf0e10cSrcweir</list>
82cdf0e10cSrcweir<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>
83cdf0e10cSrcweir<section id="relatedtopics">
84cdf0e10cSrcweir<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>
85cdf0e10cSrcweir<embed href="text/scalc/guide/multioperation.xhp#multioperation"/>
86cdf0e10cSrcweir</section>
87cdf0e10cSrcweir</body>
88cdf0e10cSrcweir</helpdocument>
89