统计函数第四部分

AVERAGEIF

返回满足给定条件的区域中所有单元格的算术平均值。AVERAGEIF 函数求与逻辑测试匹配的所有结果之和, 然后除以选中值的数量.

AVERAGEIFS

返回满足给定多个条件的区域中所有单元格的算术平均值。AVERAGEIFS 函数求与逻辑测试匹配的所有结果之和, 然后除以选中值的数量.

AVEDEV

返回一组数据点到其算术平均值的绝对偏差的平均值。由此体现一个数据集的离散状况。

语法

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.


示例

=AVEDEV(A1:A50)

AVERAGE

返回参数的平均值。

语法

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.


示例

=AVERAGE(A1:A50)

AVERAGEA

返回自变量平均值。文本的值为 0。

语法

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

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

示例

=AVERAGEA(A1:A50)

MAX

返回参数列表中的最大值。

如果作为单元格引用传递的单元格区域没有数字值而且没有错误出现,返回 0。MIN() 和 MAX() 忽略含有文字的单元格。如果没有值 (数字的或文字的) 而且没有错误出现,函数 MINA() 和 MAXA() 返回 0。为 MIN() 或 MAX() 传递一个字符串参数,例如,MIN("string"),仍然产生错误。

语法

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.


示例

=MAX(A1;A2;A3;50;100;200)」返回该列表中的最大值。

=MAX(A1:B100)」返回该列表中的最大值。

MAXA

返回参数列表中的最大值。与 MAX 函数不同的是,您可以输入文字,输入的文字将被视为零。

如果没有值 (数字的或文字的) 而且没有错误出现,函数 MINA() 和 MAXA() 返回 0。

语法

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

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

示例

=MAXA(A1;A2;A3;50;100;200;"Text")」返回该列表中的最大值。

=MAXA(A1:B100)」返回该列表中的最大值。

MEDIAN

返回一组数字的中位数。集合内数字个数为奇数时,中位数为居于中间的数。当数字个数为偶数时,中位数为居于中间的两个数的平均值。

语法

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.


示例

若为奇数:「=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"),仍然产生错误。

语法

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.


示例

=MIN(A1:B100)」返回该列表中的最小值。

MINA

返回自变量列表中的最小值。也可在此输入文本。文本值为 0。

如果没有值 (数字的或文字的) 而且没有错误出现,函数 MINA() 和 MAXA() 返回 0。

语法

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

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

示例

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

=MINA(A1:B100)」返回该列表中的最小值。

MODE

返回数组中出现频率最高的数值。如果有多个值出现次数相同,便给出其中最小的数值。如果一个数值没有出现两次,则报错。

note

此功能是「用于 Office 应用程序的开放文档格式 (OpenDocument)」标准 1.2 版本的一部分。(ISO/IEC 26300:2-2015)


语法

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.


示例

=MODE(A1:A50)

MODE.MULT

返回所提供数字列表中统计模式 (最常见的值) 的垂直数组。

语法

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

由于 MODE.MULT 函数返回值的数组, 它必须作为数组公式输入。如果函数未作为数组公式输入, 则只返回第一个模式, 这与使用 MODE.SNGL 函数相同。


示例

=MODE.MULT(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

返回数组或数据区域中出现频率最高或重复次数最多的值。如果有多个值出现次数相同,则返回其中最小的数值。如果没有一个数值出现两次,则报错。

语法

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

如果数据集里没有重复的数据点,MODE.SNGL 函数将返回错误值「#VALUE!」。


示例

=MODE.SNGL(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

NEGBINOM.DIST

返回负二项分布密度或分布函数。

语法

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

X」表示失败测试的返回值。

R」表示成功测试的返回值。

SP」是尝试成功的概率。

Cumulative = 0 计算密度函数,Cumulative = 1 计算分布。

示例

=NEGBINOM.DIST(1,1,0.5,0)」返回 0.25。

=NEGBINOM.DIST(1,1,0.5,1)」返回 0.75。

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

NEGBINOMDIST

返回负二项式分布函数值。

语法

NEGBINOMDIST(X; R; SP)

X」表示失败测试的返回值。

R」表示成功测试的返回值。

SP」是尝试成功的概率。

示例

=NEGBINOMDIST(1;1;0.5)」返回 0.25。

NORM.DIST

返回密度函数或正态累积分布。

语法

NORM.DIST(Number, Mean, StDev, C)

数字」是用于计算正态分布的分布值。

Mean」是分布的平均值。

StDev」是正态分布的标准差。

C = 0 计算密度函数,C = 1 计算分布。

示例

=NORM.DIST(70,63,5,0)」返回 0.029945493。

=NORM.DIST(70,63,5,1)」返回 0.9192433408。

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

NORM.INV

返回正态累积分布的逆函数。

语法

NORM.INV(Number, Mean, StDev)

数字」表示用于计算正态分布逆函数的概率值。

Mean」表示正态分布的平均值。

StDev」表示正态分布的标准偏差。

示例

=NORMINV(0.9;63;5)」返回 69.41。如果鸡蛋的平均重量为 63 克,标准偏差为 5,则鸡蛋不超过 69.41 克的概率为 90%。

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

NORMDIST

返回密度函数或正态累积分布。

语法

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

数字」是用于计算正态分布的分布值。

Mean」是分布的平均值。

StDev」是正态分布的标准差。

C」是可选的。C = 0 计算密度函数,C = 1 计算分布。

示例

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

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

NORMINV

返回正态累积分布的逆函数。

语法

NORMINV(Number; Mean; StDev)

数字」表示用于计算正态分布逆函数的概率值。

Mean」表示正态分布的平均值。

StDev」表示正态分布的标准偏差。

示例

=NORMINV(0.9;63;5)」返回 69.41。如果鸡蛋的平均重量为 63 克,标准偏差为 5,则鸡蛋不超过 69.41 克的概率为 90%。

PEARSON

返回皮尔逊积矩相关系数 r。

语法

PEARSON(数据1; 数据2)

Data1」表示第一个数据集的数组。

Data2」表示第二个数据集的数组。

示例

=PEARSON(A1:A30;B1:B30)」返回两个数据集的 皮尔逊相关系数。

PERCENTILE

返回数组中数值的 alpha 百分点。此百分点返回数据序列最小值 (Alpha = 0),最大值 (alpha = 1) 的刻度值。Alpha = 25% 表示第一个四分位数;Alpha = 50% 为 MEDIAN。

语法

PERCENTILE(数据; α)

数据」表示数据的数组。

α」表示 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.


示例

=PERCENTILE(A1:A50;0.1)」表示数据集中等于 A1:A50 中的整个数据刻度的 10% 的值。

PERCENTILE.EXC

对于给定的介于 0 与 1 之间 (不含) 的数值「α」,返回提供的值范围的第「α」个百分位数。百分位数返回数据系列的比例值, 从数据序列的最小值 (α=0) 到数据序列的最大值 (α=1)。对于 α = 25%, 百分位数表示第一个四分位数; α = 50% 是中位数 (MEDIAN)。

warning

如果「α」不是「1/(n+1)」(其中 n 是提供的数组的值的个数) 的倍数, 则该函数将在提供的数组的值之间进行插值, 以计算百分位值。但是, 如果「α」小于「1/(n+1)」或「α」大于 n/(n+1), 则函数无法插值, 因此返回错误。


note

PERCENTILE.INC」与「PERCENTILE.EXC」的区别在于,「PERCENTILE.INC」函数中的 α 值在 0 到 1 范围 (含),而「PERCENTILE.EXC」函数中的 α 在 0 到 1 之间 (不含)。


语法

PERCENTILE.EXC(数据; α)

数据」表示数据的数组。

α」表示 0 到 1 之间的刻度百分比。

示例

=PERCENTILE.EXC(A1:A50;10%)」表示数据集中等于 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

返回数组中数值的 ɑ 百分点。百分点指数据序列从最小值 (ɑ = 0) 到最大值 (ɑ = 1) 的刻度值。ɑ = 25% 时,百分点为第一四分位值;ɑ = 50% 时,为中位数 (MEDIAN 函数)。

note

PERCENTILE.INC」与「PERCENTILE.EXC」的区别在于,「PERCENTILE.INC」函数中的 ɑ 值在 0 到 1 范围 (含),而「PERCENTILE.EXC」函数中的 ɑ 在 0 到 1 之间 (不含)。


语法

PERCENTILE.INC(数据; α)

数据」表示数据的数组。

ɑ」为 0 到 1 之间的刻度百分比。

示例

=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

返回一个数值在抽样中所占的百分比排位。

语法

PERCENTRANK(Data; Value [; Significance])

Data」表示样本中数据的数组。

」是要确定其百分比排位的数值。

有效位」可选参数, 指定返回的百分比值舍入到的有效位数。如果省略, 则使用值 3。

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.


示例

=PERCENTRANK(A1:A50;50)」返回数值 50 在 A1:A50 区域所有数值中的百分比排位。如果 50 不在该单元格区域内,则显示错误消息。

PERCENTRANK.EXC

返回指定数值在给定数组中的相对位置,介于 0 到 1 之间 (不含)。

note

PERCENTRANK.INC」与「PERCENTRANK.EXC」的区别在于,「PERCENTRANK.INC」计算的值在 0 到 1 范围 (含),而「PERCENTRANK.EXC」计算的值在 0 到 1 之间 (不含)。


语法

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

array」表示抽样中的数据数组。

」是要确定其百分比排位的数值。

有效位」可选参数, 指定返回的百分比值舍入到的有效位数。

示例

=PERCENTRANK(A1:A50;50)」返回数值 50 在 A1:A50 区域所有数值中的百分比排位。如果 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

返回指定数值在所提供数组中的相对位置,介于 0 到 1 之间 (含)。

note

PERCENTRANK.INC」与「PERCENTRANK.EXC」的区别在于,「PERCENTRANK.INC」计算的值在 0 到 1 范围 (含),而「PERCENTRANK.EXC」计算的值在 0 到 1 之间 (不含)。


语法

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

array」表示抽样中的数据数组。

」是要确定其百分比排位的数值。

有效位」可选参数, 指定返回的百分比值舍入到的有效位数。

示例

=PERCENTRANK(A1:A50;50)」返回数值 50 在 A1:A50 区域所有数值中的百分比排位。如果 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.

语法

PHI(Number)

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

示例

=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

返回泊松分布的函数值。

语法

POISSON(Number; Mean [; C])

数字」是用于计算泊松分布的数值。

Mean」表示泊松分布的平均值。

C」 (可选) = 0 或 False 计算密度函数;C = 1 或 True 计算分布。如果忽略,将在您保存文档时插入默认值 True,这是为了最好地兼容其他程序或 LibreOffice 的早期版本。

示例

=POISSON(60;50;1)」返回 0.93。

POISSON.DIST

返回泊松分布。

语法

POISSON.DIST(Number; Mean ; Cumulative)

数字」是用于计算泊松分布的数值。

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.

示例

=POISSON.DIST(60,50,1)」返回 0.9278398202。

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

返回数据集的分位数。

语法

QUARTILE(array; type)

array」表示抽样中的数据数组。

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.


示例

=QUARTILE(A1:A50;2)」返回 A1:A50 区域内从小到大排列的数据中刻度为 50% 处的数值。

QUARTILE.EXC

根据 0 到 1 (不含) 的百分位数范围,返回所提供数值范围中请求的四分位数。

note

QUARTILE.INC」与「QUARTILE.EXC」的区别在于,「QUARTILE.INC」函数的计算根据 0 到 1 范围 (含) 的百分位数,而「QUARTILE.EXC」函数的计算根据 0 到 1 范围 (不含) 的百分位数。


语法

QUARTILE.EXC(Data, Type)

数据」表示要计算指定四分位数的数据值的区域。

类型 1 到 3 之间的整数, 表示所需的四分位数。(如果类型 = 1 或 3, 则提供的数组必须包含 2 个以上的值)

示例

=QUARTILE(A1:A50;2)」返回 A1:A50 区域内从小到大排列的数据中刻度为 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.QUARTILE.EXC

QUARTILE.INC

返回数据集的四分位数。

note

QUARTILE.INC」与「QUARTILE.EXC」的区别在于,「QUARTILE.INC」函数的计算根据 0 到 1 范围 (含) 的百分位数,而「QUARTILE.EXC」函数的计算根据 0 到 1 范围 (不含) 的百分位数。


语法

QUARTILE.INC(Data; Type)

array」表示抽样中的数据数组。

Type」是四分位值的类型。(0 = 最小值,1 = 25%,2 = 50% (中位数),3 = 75%,4 = 最大值。)

示例

=QUARTILE(A1:A50;2)」返回 A1:A50 区域内从小到大排列的数据中刻度为 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.QUARTILE.INC

请支持我们!