統計 第四部分

[text/scalc/01/func_averageif.xhp#averageif_head not found].

Returns the arithmetic mean of all cells in a range that satisfy a given condition. The AVERAGEIF function sums up all the results that match the logical test and divides this sum by the quantity of selected values.

[text/scalc/01/func_averageifs.xhp#averageifs_head not found].

Returns the arithmetic mean of all cells in a range that satisfy given multiple criteria. The AVERAGEIFS function sums up all the results that match the logical tests and divides this sum by the quantity of selected values.

AVEDEV

傳回其中數的資料點之絕對偏差的平均。 顯示資料集中的擴散。

Syntax

AVEDEV(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

=AVEDEV(A1:A50)

AVERAGE

傳回引數的平均值。

Syntax

AVERAGE(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

=AVERAGE(A1:A50)

AVERAGEA

傳回引數的平均值。文字的值為 0。

Syntax

AVERAGEA(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

Example

=AVERAGEA(A1:A50)

MAX

傳回引數清單中的最大值。

若沒有任何數值且傳送為儲存格參照的儲存格範圍中未發生任何錯誤,即會傳回 0。MIN() 和 MAX() 會忽略文字儲存格。若沒有任何值 (數值或文字) 且沒有發生任何錯誤,MINA() 和 MAXA() 函式即會傳回 0。將文字字串引數傳送給 MIN() 或 MAX() (例如 MIN("string")) 仍會產生錯誤。

Syntax

MAX(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

=MAX(A1;A2;A3;50;100;200) 傳回清單中的最大值。

=MAX(A1:B100) 傳回清單中的最大值。

MAXA

傳回引數清單中的最大值。相對於最大值,您可以在此處輸入文字。文字的值為 0。

若沒有任何值 (數值或文字) 且沒有發生任何錯誤,MINA() 和 MAXA() 函式即會傳回 0。

Syntax

MAXA(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

Example

=MAXA(A1;A2;A3;50;100;200;"Text") 傳回清單中的最大值。

=MAXA(A1:B100) 傳回清單中的最大值。

MEDIAN

傳回一組數字的中位數。在包含奇數值的組中,中位數將是該組數中間的數字,而在包含偶數值的組中,中位數將是組數中間兩個值的平均值。

Syntax

MEDIAN(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

若是奇數:=MEDIAN(1;5;9;20;21) 會傳回 9 作為中間值。

若為偶數:=MEDIAN(1;5;9;20) 會傳回兩個中間值 5 與 9 的平均值,結果為 7。

MIN

傳回引數清單中的最小值。

若沒有任何數值且傳送為儲存格參照的儲存格範圍中未發生任何錯誤,即會傳回 0。MIN() 和 MAX() 會忽略文字儲存格。若沒有任何值 (數值或文字) 且沒有發生任何錯誤,MINA() 和 MAXA() 函式即會傳回 0。將文字字串引數傳送給 MIN() 或 MAX() (例如 MIN("string")) 仍會產生錯誤。

Syntax

MIN(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

=MIN(A1:B100) 傳回清單中的最小值。

MINA

傳回引數清單中的最小值。您也可以在此處輸入文字。文字的值為 0。

若沒有任何值 (數值或文字) 且沒有發生任何錯誤,MINA() 和 MAXA() 函式即會傳回 0。

Syntax

MINA(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

Example

=MINA(1;"Text";20) 傳回 0。

=MINA(A1:B100) 傳回清單中的最小值。

MODE

傳回資料集中的最大共用值。 如果有好幾個值具有相同頻率,則會傳回最小值。值不出現兩次時發生錯誤。

note

This function is part of the Open Document Format for Office Applications (OpenDocument) standard Version 1.2. (ISO/IEC 26300:2-2015)


Syntax

MODE(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

=MODE(A1:A50)

MODE.MULT

Returns a vertical array of the statistical modes (the most frequently occurring values) within a list of supplied numbers.

Syntax

MODE.MULT(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

warning

As the MODE.MULT function returns an array of values, it must be entered as an array formula. If the function is not entered as an array formula, only the first mode is returned, which is the same as using the MODE.SNGL function.


Example

=MODE(A1:A50)

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.MODE.MULT

MODE.SNGL

傳回資料集中的最大共用值。 如果有好幾個值具有相同頻率,則會傳回最小值。值不出現兩次時發生錯誤。

Syntax

MODE.SNGL(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

warning

If the data set contains no duplicate data points, MODE.SNGL returns the #VALUE! error value.


Example

=MODE(A1:A50)

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.MODE.SNGL

NEGBINOMDIST

傳回負二項式分佈。

Syntax

NEGBINOMDIST(X; R; SP)

X 為試驗失敗所傳回的值。

R 為試驗成功所傳回的值。

SP 為嘗試成功的機率。

Example

=NEGBINOMDIST(1;1;0.5) 傳回 0.25。

NEGBINOMDIST

傳回負二項式分佈。

Syntax

NEGBINOM.DIST(X; R; SP; Cumulative)

X 為試驗失敗所傳回的值。

R 為試驗成功所傳回的值。

SP 為嘗試成功的機率。

Cumulative (選擇性) = 0 計算密度函式,Cumulative = 1 計算分佈。

Example

=NEGBINOMDIST(1;1;0.5) 傳回 0.25。

=NEGBINOMDIST(1;1;0.5) 傳回 0.25。

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.NEGBINOM.DIST

NORMDIST

傳回密度函式或一般累計分佈。

Syntax

NORMDIST(Number; Mean; StDev [; C])

Number 是據以計算常態分佈之分佈的數值。

Mean 為分佈的平均值。

StDev 是指分佈的標準差。

C 為選用項目。C = 0 計算密度函式;若 C = 1 則計算分佈。

Example

=NORMDIST(70;63;5;0) 傳回 0.03。

=NORMDIST(70;63;5;1) 傳回 0.92。

NORMDIST

傳回密度函式或一般累計分佈。

Syntax

NORMDIST(Number; Mean; StDev; C)

Number 是據以計算常態分佈之分佈的數值。

Mean 為分佈的平均值。

StDev 是指分佈的標準差。

C 為選用項目。C = 0 計算密度函式;若 C = 1 則計算分佈。

Example

=NORMDIST(70;63;5;0) 傳回 0.03。

=NORMDIST(70;63;5;1) 傳回 0.92。

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.NORM.DIST

NORMINV

傳回一般累計分佈的逆運算。

Syntax

NORMINV(Number; Mean; StDev)

Number 為用以決定常態逆分佈的機率值。

Mean 為常態分佈的平均值。

StDev 表示常態分佈的標準差。

Example

=NORMINV(0.9;63;5) 傳回 69.41。若蛋的平均重量為 63 公克,標準差為 5,則會有 90% 的機率,蛋的重量不會超過 69.41 公克。

NORMINV

傳回一般累計分佈的逆運算。

Syntax

NORMINV(Number; Mean; StDev)

Number 為用以決定常態逆分佈的機率值。

Mean 為常態分佈的平均值。

StDev 表示常態分佈的標準差。

Example

=NORMINV(0.9;63;5) 傳回 69.41。若蛋的平均重量為 63 公克,標準差為 5,則會有 90% 的機率,蛋的重量不會超過 69.41 公克。

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.NORM.INV

PEARSON

傳回 Pearson 乘積時刻相關係數 r。

Syntax

PEARSON(Data1; Data2)

Data1 代表第一個資料集的陣列。

Data2 表示第二個資料集的陣列。

Example

=PEARSON(A1:A30;B1:B30) 傳回兩個資料集的普松相關係數。

PERCENTILE

傳回陣列中資料值的字母-百分位數。百分位數會傳回資料序列的比例值,從資料序列的最小值 (Alpha=0) 到最大值 (Alpha=1)。若是 Alpha = 25%,百分位數表示第一四分位;Alpha = 50% 表示中位數。

Syntax

PERCENTILE(Data; Alpha)

Data 為資料的陣列。

Alpha 為比例的百分比,介於 0 和 1 之間。

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

=PERCENTILE(A1:A50;0.1) 表示資料集中的數值,等於 A1:A50 中總資料比例的 10%。

PERCENTILE.EXC

Returns the Alpha'th percentile of a supplied range of values for a given value of Alpha, within the range 0 to 1 (exclusive). A percentile returns the scale value for a data series which goes from the smallest (Alpha=0) to the largest value (Alpha=1) of a data series. For Alpha = 25%, the percentile means the first quartile; Alpha = 50% is the MEDIAN.

warning

If Alpha is not a multiple of 1/(n+1), (where n is the number of values in the supplied array), the function interpolates between the values in the supplied array, to calculate the percentile value. However, if Alpha is less than 1/(n+1) or Alpha is greater than n/(n+1), the function is unable to interpolate, and so returns an error.


note

The difference between PERCENTILE.INC and PERCENTILE.EXC is that, in the PERCENTILE.INC function the value of alpha is within the range 0 to 1 inclusive, and in the PERCENTILE.EXC function, the value of alpha is within the range 0 to 1 exclusive.


Syntax

PERCENTILE(Data; Alpha)

Data 為資料的陣列。

Alpha 為比例的百分比,介於 0 和 1 之間。

Example

=PERCENTILE(A1:A50;0.1) 表示資料集中的數值,等於 A1:A50 中總資料比例的 10%。

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.PERCENTILE.EXC

PERCENTILE.INC

傳回陣列中資料值的字母-百分位數。百分位數會傳回資料序列的比例值,從資料序列的最小值 (Alpha=0) 到最大值 (Alpha=1)。若是 Alpha = 25%,百分位數表示第一四分位;Alpha = 50% 表示中位數。

note

The difference between PERCENTILE.INC and PERCENTILE.EXC is that, in the PERCENTILE.INC function the value of alpha is within the range 0 to 1 inclusive, and in the PERCENTILE.EXC function, the value of alpha is within the range 0 to 1 exclusive.


Syntax

PERCENTILE(Data; Alpha)

Data 為資料的陣列。

Alpha 為比例的百分比,介於 0 和 1 之間。

Example

=PERCENTILE(A1:A50;0.1) 表示資料集中的數值,等於 A1:A50 中總資料比例的 10%。

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.PERCENTILE.INC

PERCENTRANK

傳回範例中值的百分比排名。

Syntax

PERCENTRANK(Data; Value [; Significance])

Data 為樣本中的資料陣列。

Value 為須確定其百分比等級的數值。

Significance An optional argument that specifies the number of significant digits that the returned percentage value is rounded to. If omitted, a value of 3 is used.

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

=PERCENTRANK(A1:A50;50) 從包含位於 A1:A50 中所有值的總範圍中,傳回值 50 的百分比等級。若 50 落在總範圍之外,會顯示錯誤訊息。

PERCENTRANK.EXC

Returns the relative position, between 0 and 1 (exclusive), of a specified value within a supplied array.

note

The difference between PERCENTRANK.INC and PERCENTRANK.EXC is that PERCENTRANK.INC calculates a value in the range 0 to 1 inclusive, whereas the PERCENTRANK.EXC function calculates a value in the range 0 to 1 exclusive.


Syntax

PERCENTRANK.EXC(Data; Value [; Significance])

Data 為樣本中的資料陣列。

Value 為須確定其百分比等級的數值。

Significance An optional argument that specifies the number of significant digits that the returned percentage value is rounded to.

Example

=PERCENTRANK(A1:A50;50) 從包含位於 A1:A50 中所有值的總範圍中,傳回值 50 的百分比等級。若 50 落在總範圍之外,會顯示錯誤訊息。

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.PERCENTRANK.EXC

PERCENTRANK.INC

Returns the relative position, between 0 and 1 (inclusive), of a specified value within a supplied array.

note

The difference between PERCENTRANK.INC and PERCENTRANK.EXC is that PERCENTRANK.INC calculates a value in the range 0 to 1 inclusive, whereas the PERCENTRANK.EXC function calculates a value in the range 0 to 1 exclusive.


Syntax

PERCENTRANK.INC(Data; Value [; Significance])

Data 為樣本中的資料陣列。

Value 為須確定其百分比等級的數值。

Significance An optional argument that specifies the number of significant digits that the returned percentage value is rounded to.

Example

=PERCENTRANK(A1:A50;50) 從包含位於 A1:A50 中所有值的總範圍中,傳回值 50 的百分比等級。若 50 落在總範圍之外,會顯示錯誤訊息。

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.PERCENTRANK.INC

PHI

Returns the value of the probability density function for a given value considering the standard normal distribution.

Syntax

PHI(Number)

Number is the value for which the probability density function is calculated.

Example

=PHI(2.25) returns 0.0317.

=PHI(-2.25) also returns 0.0317 because the normal distribution is symmetrical.

=PHI(0) returns 0.3989.

tip

Calling PHI(Number) is equivalent to calling NORMDIST(Number,0,1,FALSE()) or NORM.S.DIST(Number;FALSE()), hence using the standard normal distribution with mean equal to 0 and standard deviation equal to 1 with the Cumulative argument set to False.


POISSON

傳回普松分佈。

Syntax

POISSON(Number; Mean [; C])

Number 為應據以計算普松分佈的數值。

Mean 為普松分佈的中間值。

C (選擇性) = 0 或 False 計算密度函式。C = 1 或 True 計算分佈。省略時,會於儲存文件時插入預設值 True,與其他程式及舊版的 LibreOffice 具有最佳相容性。

Example

=POISSON(60;50;1) 傳回 0.93。

POISSON.DIST

傳回普松分佈。

Syntax

POISSON.DIST(Number; Mean ; Cumulative)

Number 為應據以計算普松分佈的數值。

Mean 為普松分佈的中間值。

Cumulative = 0 or False to calculate the probability mass function; Cumulative = 1, True, or any other non-zero value to calculate the cumulative distribution function.

Example

=POISSON(60;50;1) 傳回 0.93。

Technical information

tip

This function is available since LibreOffice 4.2.


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

COM.MICROSOFT.POISSON.DIST

QUARTILE

傳回資料集的四分位數。

Syntax

QUARTILE(Data; Type)

Data 為樣本中的資料陣列。

Type 是四分位數的類型。 (0 = 最小,1 = 25%,2 = 50% (中間),3 = 75% 和 4 = 最大。)

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

=QUARTILE(A1:A50;2) 傳回數值,其中 50% 的比例對應至範圍 A1:A50 中的最低值到最高值。

QUARTILE.EXC

Returns a requested quartile of a supplied range of values, based on a percentile range of 0 to 1 exclusive.

note

The difference between QUARTILE.INC and QUARTILE.EXC is that the QUARTILE.INC function bases its calculation on a percentile range of 0 to 1 inclusive, whereas the QUARTILE.EXC function bases its calculation on a percentile range of 0 to 1 exclusive.


Syntax

QUARTILE(Data; Type)

Data represents the range of data values for which you want to calculate the specified quartile.

Type An integer between 1 and 3, representing the required quartile. (if type = 1 or 3, the supplied array must contain more than 2 values)

Example

=QUARTILE(A1:A50;2) 傳回數值,其中 50% 的比例對應至範圍 A1:A50 中的最低值到最高值。

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.QUARTILE.EXC

QUARTILE.INC

傳回資料集的四分位數。

note

The difference between QUARTILE.INC and QUARTILE.EXC is that the QUARTILE.INC function bases its calculation on a percentile range of 0 to 1 inclusive, whereas the QUARTILE.EXC function bases its calculation on a percentile range of 0 to 1 exclusive.


Syntax

QUARTILE(Data; Type)

Data 為樣本中的資料陣列。

Type 是四分位數的類型。 (0 = 最小,1 = 25%,2 = 50% (中間),3 = 75% 和 4 = 最大。)

Example

=QUARTILE(A1:A50;2) 傳回數值,其中 50% 的比例對應至範圍 A1:A50 中的最低值到最高值。

Technical information

tip

This function is available since LibreOffice 4.3.


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

COM.MICROSOFT.QUARTILE.INC

Please support us!