<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
	
<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->
 
	
<meta>
      <topic id="textswriterguidecalculate_intextxml" indexer="include" status="PUBLISH">
         <title xml-lang="en-US" id="tit">Calculating Complex Formulas in Text Documents</title>
         <filename>/text/swriter/guide/calculate_intext.xhp</filename>
      </topic>
   </meta>
   <body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3147406"><bookmark_value>formulas; complex formulas in text</bookmark_value>
      <bookmark_value>calculating;formulas/mean values</bookmark_value>
</bookmark><comment>mw reduced "calculating;"  entries to one entry</comment>
<paragraph xml-lang="en-US" id="hd_id3147406" role="heading" level="1" l10n="U"
                 oldref="20"><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>
</variable></paragraph>
      <paragraph xml-lang="en-US" id="par_id3145245" role="paragraph" l10n="U" oldref="25">You can use predefined functions in a formula, and then insert the result of the calculation into a text document.</paragraph>
      <paragraph xml-lang="en-US" id="par_id3152901" role="paragraph" l10n="U" oldref="26">For example, to calculate the mean value of three numbers, do the following:</paragraph>
      <list type="ordered">
         <listitem>
            <paragraph xml-lang="en-US" id="par_id3145078" role="listitem" l10n="U" oldref="27">Click in the document where you want to insert the formula, and then press F2.</paragraph>
         </listitem>
         <listitem>
            <paragraph xml-lang="en-US" id="par_id3156382" role="listitem" l10n="U" oldref="28">Click the <item type="menuitem">Formula</item>
               icon, and choose "Mean" from the Statistical Functions list.</paragraph>
         </listitem>
         <listitem>
            <paragraph xml-lang="en-US" id="par_id3149692" role="listitem" l10n="U" oldref="30">Type the three numbers, separated by vertical slashes (|).</paragraph>
         </listitem>
         <listitem>
            <paragraph xml-lang="en-US" id="par_id3149481" role="listitem" l10n="U" oldref="32">Press <emph>Enter</emph>. The result is inserted as a field into the document.</paragraph>
         </listitem>
      </list>
      <paragraph xml-lang="en-US" id="par_id3149823" role="paragraph" l10n="U" oldref="35">To edit the formula, double-click the field in the document.</paragraph>
      <embed href="text/shared/00/00000004.xhp#related"/>
      <embed href="text/swriter/guide/calculate_intext2.xhp#calculate_intext2"/>
      <embed href="text/swriter/main0214.xhp#releistename"/>
      <embed href="text/swriter/guide/calculate.xhp#calculate"/>
      <embed href="text/swriter/guide/calculate_clipboard.xhp#calculate_clipboard"/>
      <embed href="text/swriter/guide/calculate_intable.xhp#calculate_intable"/>
      <embed href="text/swriter/guide/calculate_multitable.xhp#calculate_multitable"/>
   </body>
</helpdocument>