公式

Opens a submenu, from which you can insert a formula into the cell of a table. Place the cursor in a cell in the table or at the position in the document where you want the result to appear. Click the Formula icon and choose the desired formula from the submenu.

公式将显示在输入行中。要指定表格单元格区域,请使用鼠标选择所需的单元格。对应的单元格引用也会显示在输入行中。根据需要输入其他参数,并单击应用以确认输入的条目。如果您知道相应的语法,也可以直接输入公式。这是必要的,例如,在插入字段编辑字段对话框中。

Icon

公式

公式选项摘要

基本计算函数

加法

+

计算总和。

示例:<A1> + 8

减法

-

计算差。

示例:10 - <B5>

乘法

MUL 或 *

计算乘积。

示例:7 MUL 9

除法

DIV或/

计算商。

示例:100 DIV 15


子菜单中的基本函数

求和

SUM

Calculates the sum of the selected cells.

示例:SUM <A2:C2> 显示单元格 A2 到 C2 中数值总和

取整

ROUND

Rounds a number to the specified decimal places.

示例:15.678 ROUND 2 显示为 15.68

百分比

PHD

Calculates a percentage

示例:10 + 15 PHD 的结果显示为 10.15

平方根

SQRT

Calculates the square root.

示例:SQRT 25 结果显示为 5.00

POW

Calculates the power of a number.

示例:2 POW 8 结果显示为 256.00


运算符

You can insert various operators in your formula. Choose from the following functions:

列表分隔符

|

Separates the elements in a list.

使用列表的示例:

MIN 10|20|50|<C6>|<A2:B6>|20

等于

EQ 或 ==

Checks if selected values are equal. If they are unequal, the result is zero, otherwise 1 (true) appears.

示例:如果 A1 中的内容等于 2,<A1> EQ 2 显示 1。

不等于

NEQ 或 !=

Tests for inequality between selected values.

示例:如果 A1 中的内容等于 2,<A1> NEQ 2 结果显示为 0(假)。

小于等于

LEQ

Tests for values less than or equal to a specified value.

示例:如果 A1 中的内容小于或等于 2,<A1> LEQ 2 显示 1(真)。

大于或等于

GEQ

Tests for values greater than or equal to a specified value

示例:如果 A1 中的内容大于或等于 2,<A1> LEQ 2 结果显示为 1(真)。

小于

L

Tests for values less than a specified value

示例:如果 A1 中的内容小于 2,<A1> L 2 结果显示为 1(真)。

大于

G

Tests for values greater than a specified value

示例:如果 A1 中的内容大于 2,<A1> G 2 结果显示为 1(真)。

布尔型 Or

Tests for values matching the Boolean OR

示例:0 OR 0 结果显示为 0(假),所有其它结果显示为 1(真)

逻辑的除外的或

XOR

Tests for values matching the Boolean exclusive OR

示例:1 XOR 0 结果显示为 1(真)

布尔型 And

AND

Tests for values matching the Boolean AND

示例:1 AND 2 结果显示为 1(真)

布尔型 Not

NOT

Tests for values matching the Boolean NOT

示例:NOT 1 (真)结果显示为 0(假)


统计函数

You can choose from the following statistical functions:

Mean

MEAN

Calculates the arithmetic mean of the values in an area or a list.

示例:MEAN 10|30|20 结果显示为 20

最小值

MIN

Calculates the minimum value in an area or a list.

示例:MIN 10|30|20 显示为 10.00

最大值

MAX

Calculates the maximum value in an area or a list.

示例:MAX 10|30|20 结果显示为 30.00


三角函数

You can choose from the following trigonometric functions:

正弦

SIN

Calculates the sine in radians

示例:SIN (PI/2)

余弦

COS

Calculates the cosine in radians.

示例:COS 1

正切

TAN

Calculates the tangent in radians.

示例:TAN <A1>

反正弦

ASIN

Calculates the arc sine in radians.

示例:ASIN 1

反余弦

ACOS

Calculates the arc cosine in radians.

示例:ACOS 1

反正切

ATAN

Calculates the arc tangent in radians.

示例:ATAN 1


文档属性变量

文档的以下属性也可在文件 - 属性 - 统计中找到。

CHAR

文档中的字符数

WORD

文档中的单词数

PARA

文档中的段落数

图表

文档中的图形数

TABLES

文档中的表格数

OLE

文档中的 OLE 对象数

PAGE

文档中的总页数


其他被定义的值

PI

PI

3.1415...

欧拉数

E

2.71828...

TRUE

不等于 0

FALSE

0