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="textscalcguideformulasxml" indexer="include" status="PUBLISH">
38*cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Calculating With Formulas</title>
39*cdf0e10cSrcweir<filename>/text/scalc/guide/formulas.xhp</filename>
40*cdf0e10cSrcweir</topic>
41*cdf0e10cSrcweir</meta>
42*cdf0e10cSrcweir<body>
43*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3155411"><bookmark_value>formulas;calculating with</bookmark_value>
44*cdf0e10cSrcweir<bookmark_value>calculating; with formulas</bookmark_value>
45*cdf0e10cSrcweir<bookmark_value>examples;formula calculation</bookmark_value>
46*cdf0e10cSrcweir</bookmark><comment>mw changed "formulas;..." entry and addes "examples;..." entry</comment><paragraph role="heading" id="hd_id3155411" xml-lang="en-US" level="1" l10n="U" oldref="20"><variable id="formulas"><link href="text/scalc/guide/formulas.xhp" name="Calculating With Formulas">Calculating With Formulas</link>
47*cdf0e10cSrcweir</variable></paragraph>
48*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3156281" xml-lang="en-US" l10n="CHG" oldref="21">All formulas begin with an equals sign. The formulas can contain numbers, text, arithmetic operators, logic operators, or functions.</paragraph>
49*cdf0e10cSrcweir<paragraph role="tip" id="par_id3145272" xml-lang="en-US" l10n="CHG" oldref="39">Remember that the basic arithmetic operators (+, -, *, /) can be used in formulas using the "Multiplication and Division before Addition and Subtraction" rule. Instead of writing =SUM(A1:B1) you can write =A1+B1.</paragraph>
50*cdf0e10cSrcweir<paragraph role="tip" id="par_id3146119" xml-lang="en-US" l10n="U" oldref="42">Parentheses can also be used. The result of the formula =(1+2)*3 produces a different result than =1+2*3.</paragraph>
51*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3156285" xml-lang="en-US" l10n="U" oldref="23">Here are a few examples of $[officename] Calc formulas:</paragraph>
52*cdf0e10cSrcweir<table id="tbl_id3153878">
53*cdf0e10cSrcweir<tablerow>
54*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
55*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154015" xml-lang="en-US" l10n="U" oldref="24">=A1+10</paragraph>
56*cdf0e10cSrcweir</tablecell>
57*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
58*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146972" xml-lang="en-US" l10n="U" oldref="25">Displays the contents of cell A1 plus 10.</paragraph>
59*cdf0e10cSrcweir</tablecell>
60*cdf0e10cSrcweir</tablerow>
61*cdf0e10cSrcweir<tablerow>
62*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
63*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3145643" xml-lang="en-US" l10n="U" oldref="45">=A1*16%</paragraph>
64*cdf0e10cSrcweir</tablecell>
65*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
66*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154255" xml-lang="en-US" l10n="U" oldref="46">Displays 16% of the contents of A1.</paragraph>
67*cdf0e10cSrcweir</tablecell>
68*cdf0e10cSrcweir</tablerow>
69*cdf0e10cSrcweir<tablerow>
70*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
71*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146917" xml-lang="en-US" l10n="U" oldref="47">=A1 * A2</paragraph>
72*cdf0e10cSrcweir</tablecell>
73*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
74*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146315" xml-lang="en-US" l10n="U" oldref="48">Displays the result of the multiplication of A1 and A2.</paragraph>
75*cdf0e10cSrcweir</tablecell>
76*cdf0e10cSrcweir</tablerow>
77*cdf0e10cSrcweir<tablerow>
78*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
79*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154022" xml-lang="en-US" l10n="U" oldref="26">=ROUND(A1;1)</paragraph>
80*cdf0e10cSrcweir</tablecell>
81*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
82*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150363" xml-lang="en-US" l10n="CHG" oldref="27">Displays the contents of cell A1 rounded to one decimal place.</paragraph>
83*cdf0e10cSrcweir</tablecell>
84*cdf0e10cSrcweir</tablerow>
85*cdf0e10cSrcweir<tablerow>
86*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
87*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150209" xml-lang="en-US" l10n="U" oldref="28">=EFFECTIVE(5%;12)</paragraph>
88*cdf0e10cSrcweir</tablecell>
89*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
90*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150883" xml-lang="en-US" l10n="U" oldref="29">Calculates the effective interest for 5% annual nominal interest with 12 payments a year.</paragraph>
91*cdf0e10cSrcweir</tablecell>
92*cdf0e10cSrcweir</tablerow>
93*cdf0e10cSrcweir<tablerow>
94*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
95*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146114" xml-lang="en-US" l10n="U" oldref="33">=B8-SUM(B10:B14)</paragraph>
96*cdf0e10cSrcweir</tablecell>
97*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
98*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154486" xml-lang="en-US" l10n="U" oldref="34">Calculates B8 minus the sum of the cells B10 to B14.</paragraph>
99*cdf0e10cSrcweir</tablecell>
100*cdf0e10cSrcweir</tablerow>
101*cdf0e10cSrcweir<tablerow>
102*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
103*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3152890" xml-lang="en-US" l10n="U" oldref="35">=SUM(B8;SUM(B10:B14))</paragraph>
104*cdf0e10cSrcweir</tablecell>
105*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
106*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3159171" xml-lang="en-US" l10n="U" oldref="36">Calculates the sum of cells B10 to B14 and adds the value to B8.</paragraph>
107*cdf0e10cSrcweir</tablecell>
108*cdf0e10cSrcweir</tablerow>
109*cdf0e10cSrcweir<comment>removed row with old row limit of 65536</comment>
110*cdf0e10cSrcweir</table>
111*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150109" xml-lang="en-US" l10n="U" oldref="30">It is also possible to nest functions in formulas, as shown in the example. You can also nest functions within functions. The Function Wizard assists you with nested functions.</paragraph>
112*cdf0e10cSrcweir<section id="relatedtopics">
113*cdf0e10cSrcweir<embed href="text/scalc/guide/formula_enter.xhp#formula_enter"/>
114*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150213" xml-lang="en-US" l10n="U" oldref="44"><link href="text/scalc/01/04060100.xhp" name="Functions list">Functions list</link></paragraph>
115*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3152869" xml-lang="en-US" l10n="U" oldref="43"><link href="text/scalc/01/04060000.xhp" name="AutoPilot: Functions">Function Wizard</link></paragraph>
116*cdf0e10cSrcweir</section>
117*cdf0e10cSrcweir</body>
118*cdf0e10cSrcweir</helpdocument>
119