公式

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.

公式會出現在輸入行。若要指定表格儲存格範圍,請使用滑鼠選取所需的儲存格。對應的儲存格參照文也會出現在輸入行。依需要輸入其他參數,並按一下[採用]以確認輸入的條目。如果您知道相應的語法,您也可以直接輸入公式。這是必要的,例如,在[插入欄位指令][編輯欄位指令]對話方塊中。

若要使用此指令...

Go to Table - Edit Formula.

In the Table toolbar, press the Insert or Edit Formula icon.

In a text document, press F2.

Formula icon in Table toolbar

公式


公式-項目的工作表

基本運算類型

Operation

Name

Example

加法

+

計算總計

示例:<A1> + 8

減法

-

Calculates the difference.

示例:10 - <B5>

乘法

MUL 或 *

計算乘積

Example: 7 MUL 9 displays 63

除法

DIV 或 /

Calculates the quotient.

Example: 100 DIV 15 displays 6.67


子功能表中的基本函式

Function

Name

Example

求和

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.

Example: SQRT 25 displays 5

乘冪

POW

Calculates the power of a number.

Example: 2 POW 8 displays 256


運算子

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

Operator

Name

Example

清單分隔符

|

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.

Example: <A1> EQ 2 displays 1, if the content of A1 equals 2

不等於

NEQ 或 !=

Tests for inequality between selected values.

Example: <A1> NEQ 2 displays 0 (wrong), if the content of A1 equals 2

小於或等於

LEQ

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

Example: <A1> LEQ 2 displays 1 (true), if the content of A1 is less than or equal to 2

大於或等於

GEQ

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

Example: <A1> GEQ 2 displays 1 (true), if the content of A1 is greater than or equal to 2

小於

L

Tests for values less than a specified value.

Example: <A1> L 2 displays 1 (true), if the content of A1 is less than 2

大於

G

Tests for values greater than a specified value.

Example: <A1> G 2 displays 1 (true), if the content of A1 is greater than 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:

Function

Name

Example

平均值

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.

Example: MAX 10|30|20 displays 30

Product

PRODUCT

Calculates the product of the selected cells.

Example: PRODUCT <A2:C2> displays the product of the values in cells A2 to C2

Count

COUNT

Counts the number of non empty cells.

Example: COUNT <A2:C2> displays the number of non empty cells in A2 to C2


Functions

You can choose from the following functions:

Function

Name

Example

正弦

SIN

Calculates the sine in radians.

Example: SIN (PI/2) displays 1

餘弦

COS

Calculates the cosine in radians.

Example: COS 1 displays 0.54

正切

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

Absolute value

ABS

Returns the absolute value of the number.

Example: ABS -34 returns 34

Sign

SIGN

Returns the algebraic sign of the number.

Example: SIGN -23 returns -1


用於文件屬性的變量

您可在「檔案」-「屬性」-「統計」下找到下列文件屬性。

Name

Description

CHAR

文件中的字元數

WORD

文件中的字數

PARA

文件中的段落數目

GRAPH

文件中的圖形數目

TABLES

文件中的表格數目

OLE

文件中的 OLE 物件數目

PAGE

文件的總頁數


其它的定義值

Description

Name

Value

PI

PI

3.1415...

Eulersche 數

E

2.71828...

TRUE

TRUE

不等於 0

FALSE

FALSE

0


Please support us!