1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir 30e4b25e7SAndrew Rist<!--*********************************************************** 4cdf0e10cSrcweir * 50e4b25e7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 60e4b25e7SAndrew Rist * or more contributor license agreements. See the NOTICE file 70e4b25e7SAndrew Rist * distributed with this work for additional information 80e4b25e7SAndrew Rist * regarding copyright ownership. The ASF licenses this file 90e4b25e7SAndrew Rist * to you under the Apache License, Version 2.0 (the 100e4b25e7SAndrew Rist * "License"); you may not use this file except in compliance 110e4b25e7SAndrew Rist * with the License. You may obtain a copy of the License at 12cdf0e10cSrcweir * 130e4b25e7SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 14cdf0e10cSrcweir * 150e4b25e7SAndrew Rist * Unless required by applicable law or agreed to in writing, 160e4b25e7SAndrew Rist * software distributed under the License is distributed on an 170e4b25e7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 180e4b25e7SAndrew Rist * KIND, either express or implied. See the License for the 190e4b25e7SAndrew Rist * specific language governing permissions and limitations 200e4b25e7SAndrew Rist * under the License. 21cdf0e10cSrcweir * 220e4b25e7SAndrew Rist ***********************************************************--> 230e4b25e7SAndrew Rist 24046da525Smseidel<helpdocument version="1.0"> 25cdf0e10cSrcweir<meta> 26cdf0e10cSrcweir<topic id="textswriterguidecalculate_intextxml" indexer="include" status="PUBLISH"> 27cdf0e10cSrcweir<title xml-lang="en-US" id="tit">Calculating Complex Formulas in Text Documents</title> 28cdf0e10cSrcweir<filename>/text/swriter/guide/calculate_intext.xhp</filename> 29cdf0e10cSrcweir</topic> 30cdf0e10cSrcweir</meta> 31cdf0e10cSrcweir<body> 32046da525Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3147406"> 33046da525Smseidel<bookmark_value>formulas; complex formulas in text</bookmark_value> 34cdf0e10cSrcweir<bookmark_value>calculating;formulas/mean values</bookmark_value> 35cdf0e10cSrcweir</bookmark><comment>mw reduced "calculating;" entries to one entry</comment> 36*a6c18e7cSmseidel<paragraph xml-lang="en-US" id="hd_id3147406" role="heading" level="1" l10n="U"><variable id="calculate_intext"><link href="text/swriter/guide/calculate_intext.xhp" name="Calculating Complex Formulas in Text Documents">Calculating Complex Formulas in Text Documents</link> 37cdf0e10cSrcweir</variable></paragraph> 38*a6c18e7cSmseidel<paragraph xml-lang="en-US" id="par_id3145245" role="paragraph" l10n="U">You can use predefined functions in a formula, and then insert the result of the calculation into a text document.</paragraph> 39*a6c18e7cSmseidel<paragraph xml-lang="en-US" id="par_id3152901" role="paragraph" l10n="U">For example, to calculate the mean value of three numbers, do the following:</paragraph> 40cdf0e10cSrcweir<list type="ordered"> 41cdf0e10cSrcweir<listitem> 42*a6c18e7cSmseidel<paragraph xml-lang="en-US" id="par_id3145078" role="listitem" l10n="U">Click in the document where you want to insert the formula, and then press F2.</paragraph> 43cdf0e10cSrcweir</listitem> 44cdf0e10cSrcweir<listitem> 45*a6c18e7cSmseidel<paragraph xml-lang="en-US" id="par_id3156382" role="listitem" l10n="U">Click the <item type="menuitem">Formula</item> icon, and choose "Mean" from the Statistical Functions list.</paragraph> 46cdf0e10cSrcweir</listitem> 47cdf0e10cSrcweir<listitem> 48*a6c18e7cSmseidel<paragraph xml-lang="en-US" id="par_id3149692" role="listitem" l10n="U">Type the three numbers, separated by vertical slashes (|).</paragraph> 49cdf0e10cSrcweir</listitem> 50cdf0e10cSrcweir<listitem> 51*a6c18e7cSmseidel<paragraph xml-lang="en-US" id="par_id3149481" role="listitem" l10n="U">Press <emph>Enter</emph>. The result is inserted as a field into the document.</paragraph> 52cdf0e10cSrcweir</listitem> 53cdf0e10cSrcweir</list> 54*a6c18e7cSmseidel<paragraph xml-lang="en-US" id="par_id3149823" role="paragraph" l10n="U">To edit the formula, double-click the field in the document.</paragraph> 55cdf0e10cSrcweir<embed href="text/shared/00/00000004.xhp#related"/> 56cdf0e10cSrcweir<embed href="text/swriter/guide/calculate_intext2.xhp#calculate_intext2"/> 57cdf0e10cSrcweir<embed href="text/swriter/main0214.xhp#releistename"/> 58cdf0e10cSrcweir<embed href="text/swriter/guide/calculate.xhp#calculate"/> 59cdf0e10cSrcweir<embed href="text/swriter/guide/calculate_clipboard.xhp#calculate_clipboard"/> 60cdf0e10cSrcweir<embed href="text/swriter/guide/calculate_intable.xhp#calculate_intable"/> 61cdf0e10cSrcweir<embed href="text/swriter/guide/calculate_multitable.xhp#calculate_multitable"/> 62cdf0e10cSrcweir</body> 63cdf0e10cSrcweir</helpdocument> 64