1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir 302dbb15cSAndrew Rist<!--*********************************************************** 4bc4ff2acSmseidel * 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 12bc4ff2acSmseidel * 1302dbb15cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 14bc4ff2acSmseidel * 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. 21bc4ff2acSmseidel * 2202dbb15cSAndrew Rist ***********************************************************--> 2302dbb15cSAndrew Rist 24bc4ff2acSmseidel<helpdocument version="1.0"> 25cdf0e10cSrcweir<meta> 26cdf0e10cSrcweir<topic id="textscalcguideformulasxml" indexer="include" status="PUBLISH"> 27cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Calculating With Formulas</title> 28cdf0e10cSrcweir<filename>/text/scalc/guide/formulas.xhp</filename> 29cdf0e10cSrcweir</topic> 30cdf0e10cSrcweir</meta> 31cdf0e10cSrcweir<body> 32*72c4b3b3Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3155411"> 33*72c4b3b3Smseidel<bookmark_value>formulas;calculating with</bookmark_value> 34cdf0e10cSrcweir<bookmark_value>calculating; with formulas</bookmark_value> 35cdf0e10cSrcweir<bookmark_value>examples;formula calculation</bookmark_value> 36*72c4b3b3Smseidel</bookmark><comment>mw changed "formulas;..." entry and addes "examples;..." entry</comment> 37*72c4b3b3Smseidel<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> 38cdf0e10cSrcweir</variable></paragraph> 39cdf0e10cSrcweir<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> 40cdf0e10cSrcweir<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> 41cdf0e10cSrcweir<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> 42cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3156285" xml-lang="en-US" l10n="U" oldref="23">Here are a few examples of $[officename] Calc formulas:</paragraph> 43cdf0e10cSrcweir<table id="tbl_id3153878"> 44cdf0e10cSrcweir<tablerow> 45cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 46cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154015" xml-lang="en-US" l10n="U" oldref="24">=A1+10</paragraph> 47cdf0e10cSrcweir</tablecell> 48cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 49cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146972" xml-lang="en-US" l10n="U" oldref="25">Displays the contents of cell A1 plus 10.</paragraph> 50cdf0e10cSrcweir</tablecell> 51cdf0e10cSrcweir</tablerow> 52cdf0e10cSrcweir<tablerow> 53cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 54cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3145643" xml-lang="en-US" l10n="U" oldref="45">=A1*16%</paragraph> 55cdf0e10cSrcweir</tablecell> 56cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 57cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154255" xml-lang="en-US" l10n="U" oldref="46">Displays 16% of the contents of A1.</paragraph> 58cdf0e10cSrcweir</tablecell> 59cdf0e10cSrcweir</tablerow> 60cdf0e10cSrcweir<tablerow> 61cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 62cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146917" xml-lang="en-US" l10n="U" oldref="47">=A1 * A2</paragraph> 63cdf0e10cSrcweir</tablecell> 64cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 65cdf0e10cSrcweir<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> 66cdf0e10cSrcweir</tablecell> 67cdf0e10cSrcweir</tablerow> 68cdf0e10cSrcweir<tablerow> 69cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 70cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154022" xml-lang="en-US" l10n="U" oldref="26">=ROUND(A1;1)</paragraph> 71cdf0e10cSrcweir</tablecell> 72cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 73cdf0e10cSrcweir<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> 74cdf0e10cSrcweir</tablecell> 75cdf0e10cSrcweir</tablerow> 76cdf0e10cSrcweir<tablerow> 77cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 78cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150209" xml-lang="en-US" l10n="U" oldref="28">=EFFECTIVE(5%;12)</paragraph> 79cdf0e10cSrcweir</tablecell> 80cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 81cdf0e10cSrcweir<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> 82cdf0e10cSrcweir</tablecell> 83cdf0e10cSrcweir</tablerow> 84cdf0e10cSrcweir<tablerow> 85cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 86cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146114" xml-lang="en-US" l10n="U" oldref="33">=B8-SUM(B10:B14)</paragraph> 87cdf0e10cSrcweir</tablecell> 88cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 89cdf0e10cSrcweir<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> 90cdf0e10cSrcweir</tablecell> 91cdf0e10cSrcweir</tablerow> 92cdf0e10cSrcweir<tablerow> 93cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 94cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3152890" xml-lang="en-US" l10n="U" oldref="35">=SUM(B8;SUM(B10:B14))</paragraph> 95cdf0e10cSrcweir</tablecell> 96cdf0e10cSrcweir<tablecell colspan="" rowspan=""> 97cdf0e10cSrcweir<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> 98cdf0e10cSrcweir</tablecell> 99cdf0e10cSrcweir</tablerow> 100cdf0e10cSrcweir<comment>removed row with old row limit of 65536</comment> 101cdf0e10cSrcweir</table> 102cdf0e10cSrcweir<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> 103cdf0e10cSrcweir<section id="relatedtopics"> 104cdf0e10cSrcweir<embed href="text/scalc/guide/formula_enter.xhp#formula_enter"/> 105cdf0e10cSrcweir<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> 106cdf0e10cSrcweir<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> 107cdf0e10cSrcweir</section> 108cdf0e10cSrcweir</body> 109cdf0e10cSrcweir</helpdocument> 110