WorksheetFunction.Small Method
Returns the k-th smallest value in a data set. Use this function to return values with a particular relative standing in a data set.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Small ( _
Arg1 As Object, _
Arg2 As Double _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Object
Dim Arg2 As Double
Dim returnValue As Double
returnValue = instance.Small(Arg1, Arg2)
double Small(
Object Arg1,
double Arg2
)
Parameters
Arg1
Type: System.ObjectArray - an array or range of numerical data for which you want to determine the k-th smallest value.
Arg2
Type: System.DoubleK - the position (from the smallest) in the array or range of data to return.
Return Value
Type: System.Double
Remarks
If array is empty, Small returns the #NUM! error value.
If k ≤ 0 or if k exceeds the number of data points, Small returns the #NUM! error value.
If n is the number of data points in array, SMALL(array,1) equals the smallest value, and SMALL(array,n) equals the largest value.