WorksheetFunction.Quartile(Object, Double) 方法

定义

返回数据集的四分位数。 四分位数通常用于在销售额和调查数据中对总体进行分组。 例如,可以使用 四分位数 查找人口中收入的前 25%。

public:
 double Quartile(System::Object ^ Arg1, double Arg2);
public double Quartile (object Arg1, double Arg2);
Public Function Quartile (Arg1 As Object, Arg2 As Double) As Double

参数

Arg1
Object

array - 要计算其四分位数值的数值数组或单元格区域。

Arg2
Double

Quart - 指示要返回哪一个值。

返回

注解

重要提示:此函数已替换为一个或多个新函数,这些函数可提供更高的准确性,并且其名称更能反映其用法。 此函数仍可用于与早期版本的 Excel 兼容。 但是,如果不需要向后兼容性,则应考虑从现在起使用新函数,因为它们更准确地描述了其功能。 有关新函数的详细信息,请参阅 Quartile_Inc(Object, Double)Quartile_Exc(Object, Double) 方法。

0最小值
1第一个四分位数(第 25 个百分点值)
2中值(第 50 个百分点值)
3第三个四分位数(第 75 个百分点值)
4最大值

如果数组为空, 四分位数 返回 #NUM! 。

如果 quart 不为整数,则将被截尾取整。

如果 quart < 0 或 quart > 4, 则四分位数 返回 #NUM! 。

Min(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)Median(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)四分位数分别等于 0 (零) 、2 和 4 时, 和 返回与四分位数相同的Max(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)值。

适用于