添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

傳回某一引用儲存格的試算表名稱及檔案名。

=CELL("FILENAME";D2) returns 'file:///X:/dr/own.ods'#$Sheet1, if the formula in the current document X:\dr\own.ods is located in Sheet1.

=CELL("FILENAME";'X:\dr\test.ods'#$Sheet1.D2) returns 'file:///X:/dr/test.ods'#$Sheet1.

S = 指數表示方式,如 1.234+E56

P = 百分數

在上述格式中,小數分隔符後的小數位數以數字形式指定。範例:數字格式 #,##0.0 傳回 ,1,而數字格式 00.000% 傳回 P3

D1 = MMM-D-YY, MM-D-YY 及類似的格式。

D2 = DD-MM

D3 = MM-YY

D4 = DD-MM-YYYY HH:MM:SS

D5 = MM-DD

D6 = HH:MM:SS AM/PM

D7 = HH:MM AM/PM

D8 = HH:MM:SS

D9 = HH:MM

G = 所有其它格式

- (負號)在結尾 = 負數字用顏色顯示出來。

() (一對括號)在結尾 = 一個格式碼之中使用的開口式括號

=1+2+CURRENT()

範例傳回 6。從左至右計算公式:1 + 2 = 3,得出發生 CURRENT() 時的迄今結果;CURRENT() 由此得出 3,加上原始的 3 等於 6。

=A2+B2+STYLE(IF(CURRENT()>10;"Red";"Default"))

範例傳回 A2 + B2 (STYLE 在此傳回 0)。若總和大於 10,會將 Red 樣式套用至儲存格。如需更多說明,請參閱 STYLE 函式。

="choo"&CURRENT()

範例傳回 choochoo。

Technical information

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.CURRENT

ISBLANK

如果儲存格的參照是空白的,則傳回 TRUE。 此函式用於確定儲存格的內容是否為空。內部具有公式的儲存格,其內容不為空。

If an error occurs, the function returns a logical or numerical value.

Syntax

ISBLANK(Value)

value 是指要測試的內容。

Example

=ISBLANK(D2) 傳回結果為 FALSE。

ISERR

測試錯誤條件 (#N/A 錯誤值除外),並傳回 TRUE 或 FALSE。

If an error occurs, the function returns a logical or numerical value.

Syntax

ISERR(Value)

Value 可以是任何值或表示式,透過測試這個值或表示式可查看是否存在 #N/A 之外的錯誤值。

Example

=ISERR(C8) (其中儲存格 C8 包含 =1/0 ) 傳回 TRUE,因為 1/0 是錯誤。

=ISERR(C9) (其中儲存格 C9 包含 =NA() ) 傳回 FALSE,因為 ISERR() 忽略 #N/A 錯誤。

ISERROR

測試錯誤條件 (包括 #N/A 錯誤值),並傳回 TRUE 或 FALSE。

If an error occurs, the function returns a logical or numerical value.

Syntax

ISERROR(Value)

Value 是 (或代表) 要測試的數值。若有錯誤,ISERROR() 傳回 TRUE,沒有錯誤則傳回 FALSE。

Example

=ISERROR(C8) (其中儲存格 C8 包含 =1/0 ) 傳回 TRUE,因為 1/0 是錯誤。

=ISERROR(C9) (其中儲存格 C9 包含 =NA() ) 傳回 TRUE。

IFERROR(Value; Alternate_value)

Value is the value or expression to be returned if it is not equal or results in an error.

Alternate_value is the value or expression to be returned if the expression or value of Value is equal or results in an error.

Example

=ISERROR(C8) (其中儲存格 C8 包含 =1/0 ) 傳回 TRUE,因為 1/0 是錯誤。

=ISERROR(C8) (其中儲存格 C8 包含 =1/0 ) 傳回 TRUE,因為 1/0 是錯誤。

ISFORMULA

如果儲存格是公式儲存格則傳回 TRUE。

If an error occurs, the function returns a logical or numerical value.

Syntax

ISFORMULA(Reference)

[參照] 指定要在其中進行測試以決定是否包含公式的儲存格參照。

Example

若儲存格 C4 包含數字 5 ,則 =ISFORMULA(C4) 傳回 FALSE。

IFNA(Value; Alternate_value)

Value is the value or expression to be returned if it is not equal or results in an #N/A error.

Alternate_value is the value or expression to be returned if the expression or value of Value is equal or results in an #N/A error.

Example

=IFNA(D3;D4) returns the value of D3 if D3 does not result in an #N/A error, or D4 if it does.

ISNUMBER

如果值表示數字則傳回 TRUE。

If an error occurs, the function returns a logical or numerical value.

Syntax

ISNUMBER(Value)

value 是指要被測試以確定其是數字還是文字的任意表達式。

Example

若儲存格 C3 包含數字 4 ,則 =ISNUMBER(C3) 傳回 TRUE。

若儲存格 C2 包含文字 abcdef ,則 =ISNUMBER(C2) 傳回 FALSE。

ISREF

測試引數是否為參照。 若引數為參照,會傳回 TRUE;否則會傳回 FALSE。指定參照時,此函式不會檢查正在參照的值。

If an error occurs, the function returns a logical or numerical value.

Syntax

ISREF(Value)

value 是指要被測試以確定其是否為參照的值。

Example

=ISREF(C5) 傳回結果為 TRUE,因為 C5 是有效的參照。

=ISREF("abcdef") 一律會傳回 FALSE,因為文字永遠不可能成為參照。

=ISREF(4) 傳回 FALSE。

=ISREF(INDIRECT("A6")) 傳回 TRUE,因為 INDIRECT 是傳回參照的函式。

=ISREF(ADDRESS(1; 1; 2;"Sheet2")) 傳回 FALSE,因為儘管看起來像是參照,ADDRESS 其實是傳回文字的函式。

Returns the numeric value of the given parameter. Returns 0 if parameter is text or FALSE.

If an error occurs the function returns the error value.

Syntax

N(Value)

Value is the parameter to be converted into a number. N() returns the numeric value if it can. It returns the logical values TRUE and FALSE as 1 and 0 respectively. It returns text as 0.

Example

=N(123) 傳回 123

=N(TRUE) 傳回 1

=N(FALSE) 傳回 0

=N("abc") 傳回 0

=N(1/0) 傳回 #DIV/0!

Returns the type of value, where 1 = number, 2 = text, 4 = Boolean value, 8 = formula, 16 = error value, 64 = array.

If an error occurs, the function returns a logical or numerical value.

Syntax

TYPE(Value)

Value is a specific value for which the data type is determined.

範例 (請參照上方範例表格)

=TYPE(C2) 傳回結果為 2。

=TYPE(D9) 傳回結果為 1。

傳回目前工作環境的特定資訊。此函式會收到單一文字引數,並視該參數傳回資料。

This function is always recalculated whenever a recalculation occurs.

Syntax

INFO("Type")

下表列出文字參數 Type 的值,以及 INFO 函式的傳回值。

「Type」的值

The type of the operating system:
"ANDROID" for Google mobile operating system
"DRAGONFLY" for DragonFly operating system forked from FreeBSD
"EMSCRIPTEN" for browser WebAssembly system
"FREEBSD", "OPENBSD" or "NETBSD" for operating systems based on the Berkeley Software Distribution (BSD)
"HAIKU" for BeOS compatible operating system
"iOS" for Apple mobile operating system
"LINUX" for GNU/Linux based operating systems
"MACOSX" for Apple Mac OS X
"SOLARIS" for Oracle Solaris operating system
"WNT" for Microsoft Windows

=INFO("release") 傳回使用中的 LibreOffice 之產品版本編號。

若儲存格 D5 包含文字字串 system ,則 =INFO(D5) 會傳回作業系統類型。

Help content debug info:

This page is: /text/scalc/01/04060104.xhp

Title is: 資訊函式