公式

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> EQ 2 表示為 1,若 A1 的內容等於 2。

不等於

NEQ 或 !=

Tests for inequality between selected values.

示例:<A1> NEQ 2 表示為 0 (FALSE),若 A1 的內容等於 2。

小於或等於

LEQ

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

示例:<A1> LEQ 2 表示為 1 (TRUE),若 A1 的內容小於或等於 2。

大於或等於

GEQ

Tests for values greater than or equal to a specified value

示例:<A1> GEQ 2 表示為 1 (TRUE),若 A1 的內容大於或等於 2。

小於

L

Tests for values less than a specified value

示例:<A1> L 2 表示為 1 (TRUE),若 A1 的內容小於 2。

大於

G

Tests for values greater than a specified value

示例:<A1> G 2 表示為 1 (TRUE),若 A1 的內容大於 2。

邏輯的 OR

OR

Tests for values matching the Boolean OR

示例:0 OR 0 表示為 0 (FALSE),所有其他則表示為 1 (TRUE)

邏輯的除外的 OR

XOR

Tests for values matching the Boolean exclusive OR

示例:1 XOR 0 表示為 1 (TRUE)

邏輯 AND

AND

Tests for values matching the Boolean AND

示例:1 AND 2 表示為 1 (TRUE)

邏輯的 NOT

NOT

Tests for values matching the Boolean NOT

示例:NOT 1 (TRUE) 表示為 0 (FALSE)


統計功能

You can choose from the following statistical functions:

平均值

MEAN

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

示例:MEAN 10|30|20 表示為 20,00

最小值

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

文件中的段落數目

GRAF

文件中的圖形數目

TABLES

文件中的表格數目

OLE

文件中的 OLE 物件數目

PAGE

文件的總頁數


其它的定義值

PI

PI

3.1415...

Eulersche 數

E

2.71828...

TRUE

TRUE

不等於 0

FALSE

FALSE

0