home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <html><head><title>通过公式计算</title><meta name="filename" content="text/scalc/guide/formulas"/><meta name="language" content="zh-CN"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
-
- table.Tabelle1{
- }
- span.Tabelle1A{
- width:1.499cm;}
- span.Tabelle1B{
- width:16.501cm;}
- tr.Tabelle11{
- }
- td.Tabelle1A1{
- }
- table.Tabelle2{
- }
- span.Tabelle2A{
- width:7.497cm;}
- span.Tabelle2B{
- width:10.504cm;}
- td.Tabelle2A1{
- }
- td.Tabelle2B1{
- border-width:0.002cm; border-style:solid; border-color:#000000;}
- td.Tabelle2A2{
- }
- td.Tabelle2B2{
- }
- p.P1{
- }
- span.fr1{
- }
- </style></head><body>
-
-
- <p class="P1"/>
- <p class="Head1"><help:key-word value="公式; 在单元格内" tag="kw68081_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="计算; 通过公式" tag="kw68081_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="引用; 在工作表公式内" tag="kw68081_2" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="formulas" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68081">通过公式计算</help:link></help:to-be-embedded></p>
- <p class="Paragraph">所有公式都以等号开头。公式中可以包含数字,文字以及其它元素(比如:确定数字如何格式化的格式)。当然公式中也可以包含运算符号,逻辑运算符号或者函数名称。</p>
- <table><tr class="Tabelle11"><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
- <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="66732" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
- </span></th><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
- <p class="Paragraph">在公式中使用基本运算符号时,如加减乘除(+, -, *, /),请注意数学运算准则“先乘除后加减”。在计算数据的总和时您除了能够用公式:=SUM(A1:B1)来表达,还能够用公式:=A1+B1表达。</p>
- <p class="Paragraph">您可以往公式中键入括号。公式:=1+2*3的计算结果与公式:=(1+2)*3的计算结果是不同的。</p>
- </span></th></tr></table>
- <p class="Paragraph">下面是一些 <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc 公式的示例:</p>
- <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><td class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
- <p class="Paragraph">=A1+10</p>
- </span></td><td class="Tabelle2B1" style="text-align:left;"><span class="Tabelle2B">
- <p class="Paragraph">单元格A1的数据加上10。</p>
- </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
- <p class="Paragraph">=A1*16%</p>
- </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
- <p class="Paragraph">单元格 A1 的数据的百分之十六。</p>
- </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
- <p class="Paragraph">=A1 * A2</p>
- </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
- <p class="Paragraph">单元格 A1 和单元格 A2 中数据的乘积。</p>
- </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
- <p class="Paragraph">=ROUND(A1;1)</p>
- </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
- <p class="Paragraph">将单元格A1中的数据舍入至只具备一个小数点位数。</p>
- </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
- <p class="Paragraph">=EFFECTIVE(5%;12)</p>
- </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
- <p class="Paragraph">计算名义利率为 5% ,且每年支付12次时的实际利率。</p>
- </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
- <p class="Paragraph">=B8-SUM(B10:B14)</p>
- </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
- <p class="Paragraph">用单元格B8中的数值减去单元格B10至B14中数值的总和。</p>
- </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
- <p class="Paragraph">=SUM(B8;SUM(B10:B14))</p>
- </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
- <p class="Paragraph">将单元格B10 至 B14中数值的总和与单元格B8中的数值相加。</p>
- </span></td></tr></table>
- <p class="Paragraph">如同示例中的第五个公式,您可以在计算公式中复合加入函数。程序除了能够计算公式:=ROUND(A1;1)的结果外,还能够计算公式:=RUND(SIN(A1);2)的结果。函数自动助理能够帮助您往公式中加入函数。</p>
- <p class="ParaList"><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p>
- <p class="ParaList"><help:embedded Id="68298" Eid="formula_enter" xmlns:help="http://openoffice.org/2000/help"/></p>
- <p class="ParaList"><help:link Id="66815" xmlns:help="http://openoffice.org/2000/help">函数列单</help:link></p>
- <p class="ParaList"><help:link Id="66841" xmlns:help="http://openoffice.org/2000/help">函数自动助理</help:link></p>
- </body></html>