Share via


WorksheetFunction.Percentile_Inc Method

Returns the k-th percentile of values in a range. You can use this function to establish a threshold of acceptance. For example, you can examine candidates who score above the 90th percentile.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Percentile_Inc ( _
    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.Percentile_Inc(Arg1, _
    Arg2)
double Percentile_Inc(
    Object Arg1,
    double Arg2
)

Parameters

  • Arg1
    Type: System.Object

    Array - The array or range of data that defines relative standing.

  • Arg2
    Type: System.Double

    K - The percentile value in the range 0..1, inclusive.

Return Value

Type: System.Double

Remarks

If array is empty, Percentile_Inc returns the #NUM! error value.

If k is nonnumeric, Percentile_Inc returns the #VALUE! error value.

If k is < 0 or if k > 1, Percentile_Inc returns the #NUM! error value.

If k is not a multiple of 1/(n - 1), Percentile_Inc interpolates to determine the value at the k-th percentile.

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace