# 統計 第四部分

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.

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.

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.

=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.

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.

=AVERAGE(A1:A50)

## AVERAGEA

#### 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

#### 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.

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

#### 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.

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.

## MIN

#### 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.

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

#### 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

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.

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.

=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.

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.

=MODE(A1:A50)

#### Technical information

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.

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

=MODE(A1:A50)

#### Technical information

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

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

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

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

#### Syntax

PEARSON(Data1; Data2)

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

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

#### Example

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

## PERCENTILE

#### Syntax

PERCENTILE(Data; Alpha)

Data 為資料的陣列。

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

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.

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.

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

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

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

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.

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.

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

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.

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

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.

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

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 = 最大。)

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.

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

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

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

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