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="textscalcguideformula_enterxml" indexer="include" status="PUBLISH">
32*b1cdbd2cSJim Jagielski<title id="tit" xml-lang="en-US">Entering Formulas </title>
33*b1cdbd2cSJim Jagielski<filename>/text/scalc/guide/formula_enter.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_id3150868"><bookmark_value>formula bar; input line</bookmark_value>
38*b1cdbd2cSJim Jagielski<bookmark_value>input line in formula bar</bookmark_value>
39*b1cdbd2cSJim Jagielski<bookmark_value>formulas; inputting</bookmark_value>
40*b1cdbd2cSJim Jagielski<bookmark_value>inserting;formulas</bookmark_value>
41*b1cdbd2cSJim Jagielski</bookmark>
42*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3150868" xml-lang="en-US" level="1" l10n="U" oldref="9"><variable id="formula_enter"><link href="text/scalc/guide/formula_enter.xhp" name="Entering Formulas">Entering Formulas</link>
43*b1cdbd2cSJim Jagielski</variable></paragraph>
44*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id6848353" xml-lang="en-US" l10n="NEW">You can enter formulas in several ways: using the icons, or by typing on the keyboard, or by a mixture of both methods.</paragraph>
45*b1cdbd2cSJim Jagielski<list type="ordered">
46*b1cdbd2cSJim Jagielski<listitem>
47*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3145364" xml-lang="en-US" l10n="U" oldref="10">Click the cell in which you want to enter the formula.</paragraph>
48*b1cdbd2cSJim Jagielski</listitem>
49*b1cdbd2cSJim Jagielski<listitem>
50*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3150012" xml-lang="en-US" l10n="U" oldref="11">Click the <emph>Function</emph> icon on the Formula Bar.</paragraph>
51*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3156441" xml-lang="en-US" l10n="U" oldref="12">You will now see an equals sign in the input line and you can begin to input the formula.</paragraph>
52*b1cdbd2cSJim Jagielski</listitem>
53*b1cdbd2cSJim Jagielski<listitem>
54*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3153726" xml-lang="en-US" l10n="U" oldref="3">After entering the required values, press Enter or click <emph>Accept</emph> to insert the result in the active cell. If you want to clear your entry in the input line, press Escape or click <emph>Cancel</emph>.</paragraph>
55*b1cdbd2cSJim Jagielski</listitem>
56*b1cdbd2cSJim Jagielski</list>
57*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3147394" xml-lang="en-US" l10n="U" oldref="8">You can also enter the values and the formulas directly into the cells, even if you cannot see an input cursor. Formulas must always begin with an equals sign.</paragraph>
58*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id4206976" xml-lang="en-US" l10n="NEW">You can also press the + or - key on the numerical keyboard to start a formula. NumLock must be "on". For example, press the following keys in succession:</paragraph>
59*b1cdbd2cSJim Jagielski<paragraph role="code" id="par_id1836909" xml-lang="en-US" l10n="NEW">+ 5 0 - 8 Enter</paragraph>
60*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id8171330" xml-lang="en-US" l10n="NEW">You see the result <item type="literal">42</item> in the cell. The cell contains the formula <item type="literal">=+50-8</item>.</paragraph>
61*b1cdbd2cSJim Jagielski<paragraph role="note" id="par_id3155764" xml-lang="en-US" l10n="U" oldref="6">If you are editing a formula with references, the references and the associated cells will be highlighted with the same color. You can now resize the reference border using the mouse, and the reference in the formula displayed in the input line also changes. <emph>Show references in color</emph> can be deactivated under <switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - <link href="text/shared/optionen/01060300.xhp" name="Spreadsheet - View">%PRODUCTNAME Calc - View</link>.</paragraph>
62*b1cdbd2cSJim Jagielski<paragraph role="tip" id="par_id3149210" xml-lang="en-US" l10n="U" oldref="7"><variable id="tip">If you would like to view the calculation of individual elements of a formula, select the respective elements and press F9. For example, in the formula =SUM(A1:B12)*SUM(C1:D12) select the section SUM(C1:D12) and press F9 to view the subtotal for this area.
63*b1cdbd2cSJim Jagielski</variable></paragraph>
64*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3150304" xml-lang="en-US" l10n="U" oldref="5">If an error occurs when creating the formula, an <link href="text/scalc/05/02140000.xhp" name="error message">error message</link> appears in the active cell.</paragraph>
65*b1cdbd2cSJim Jagielski<section id="relatedtopics">
66*b1cdbd2cSJim Jagielski<embed href="text/scalc/guide/formulas.xhp#formulas"/>
67*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3152993" xml-lang="en-US" l10n="U" oldref="13"><link href="text/scalc/main0206.xhp" name="Formula bar">Formula bar</link></paragraph>
68*b1cdbd2cSJim Jagielski<embed href="text/scalc/guide/cell_enter.xhp#cell_enter"/>
69*b1cdbd2cSJim Jagielski<embed href="text/scalc/guide/multitables.xhp#multitables"/>
70*b1cdbd2cSJim Jagielski<embed href="text/scalc/guide/multi_tables.xhp#multi_tables"/>
71*b1cdbd2cSJim Jagielski</section>
72*b1cdbd2cSJim Jagielski</body>
73*b1cdbd2cSJim Jagielski</helpdocument>
74