<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
	
<!--
***********************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * 
 * Copyright 2000, 2010 Oracle and/or its affiliates.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************
 -->
 
	
<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>
               <emph/>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>