WorksheetFunction.Percentile Method (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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 decide to examine candidates who score above the 90th percentile.

Important note Important

This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. This function is still available for compatibility with earlier versions of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality.

For more information about the new functions, see the Percentile_Inc and Percentile_Exc method.

expression .Percentile(Arg1, Arg2)

expression A variable that represents a WorksheetFunction object.

Parameters

Name

Required/Optional

Data Type

Description

Arg1

Required

Variant

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

Arg2

Required

Double

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

Return Value

Double

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

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

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

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

Show: