WorksheetFunction.Small(Object, Double) 方法

定义

返回数据集中第 k 个最小值。 使用此函数可以返回数据集中特定位置上的数值。

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

参数

Arg1
Object

Array - 需要确定第 k 个最小值的数值数据数组或区域。

Arg2
Double

K - 要返回的数据在数组或区域中的位置(从最小值开始)。

返回

注解

如果数组为空, Small 将返回 #NUM! 。

如果 k ≤ 0 或 k 超过数据点数, Small 将返回 #NUM! 。

如果 n 为数组中数据点的个数,则 SMALL(array,1) 等于最小值,SMALL(array,n) 等于最大值。

适用于