Calculate percentiles and percent ranks
Plan provides functions to calculate percentiles and percentage ranks in a dataset. Use the functions in this section to determine the relative position of values and analyze their distribution within a set of numerical data.
PERCENTILEEXC
The PERCENTILEEXC function returns the k-th percentile of a set of numbers using the exclusive method. The function accepts k values greater than 0 and less than 1, excluding the minimum and maximum values from the calculation.
Syntax
PERCENTILEEXC(array, k)Arguments
array: The list or range of numeric values used to determine the percentile.k: Specifies the percentile to return as a decimal value greater than0and less than1.0.25: Returns the 25th percentile.0.5: Returns the median (50th percentile).0.75: Returns the 75th percentile.
Note
The exclusive method supports only k values greater than 0 and less than 1. If a value less than or equal to 0, or greater than or equal to 1, is specified, the PERCENTILEEXC function returns a #ERR error.
Return value
Returns the value corresponding to the specified percentile from the given set of numbers.
Examples
Returns the 25th percentile of the specified set of numbers. In this example, the function returns 22.5.
Returns the 50th percentile (median) of the specified set of numbers. In this example, the function returns 45.
Returns the 75th percentile of the specified set of numbers. In this example, the function returns 67.5.
You can use the PERCENTILEEXC function to determine the relative standing of values within a dataset by calculating exclusive percentiles for metrics such as sales, revenue, or performance scores.

Excel equivalent
PERCENTILEINC
The PERCENTILEINC function returns the k-th percentile of a set of numbers using the inclusive method. The function accepts k values from 0 to 1, including the minimum and maximum values in the calculation.
Syntax
Arguments
array: The list or range of numeric values used to determine the percentile.k: Specifies the percentile to return as a decimal value between0and1.0: Returns the minimum value.0.25: Returns the 25th percentile.0.5: Returns the median (50th percentile).0.75: Returns the 75th percentile.1: Returns the maximum value.
The inclusive method supports k values from 0 to 1, inclusive. If a value outside this range is specified, the PERCENTILEINC function returns a #ERR error.
Return value
Returns the value corresponding to the specified percentile from the given set of numbers.
Examples
Returns the 25th percentile of the specified set of numbers. In this example, the function returns 27.5.
Returns the 50th percentile (median) of the specified set of numbers. In this example, the function returns 45.
Returns the 75th percentile of the specified set of numbers. In this example, the function returns 62.5.
You can use the PERCENTILEINC function to determine the relative standing of values within a dataset by calculating percentiles for metrics such as sales, revenue, or performance scores.

Excel equivalent
PERCENTRANKEXC
The PERCENTRANKEXC function returns the percentage rank of a value within a set of numbers using the exclusive method. It indicates the relative position of a value compared to other values and excludes the minimum and maximum values from the calculation.
Syntax
Arguments
array: The list or range of numeric values used to determine the percentage rank.x: The value used to determine the percentage rank.significance(optional): Specifies the number of significant digits in the returned value.
Return value
Returns the percentage rank of the specified value as a decimal greater than 0 and less than 1.
Note
If the specified value is less than the minimum value in the dataset, the PERCENTRANKEXC function returns 0. If the specified value is greater than the maximum value in the dataset, the function returns a #ERR error.
Examples
Returns the percentage rank of the specified value. In this example, the function returns 0.5.
Returns the percentage rank of the specified value. In this example, the function returns 0.25.
Returns the percentage rank of the specified value. In this example, the function returns 0.75.
You can use the PERCENTRANKEXC function to determine the relative standing of a value within a dataset when excluding the minimum and maximum values.

Excel equivalent
PERCENTRANKINC
The PERCENTRANKINC function returns the percentage rank of a value within a set of numbers using the inclusive method. It indicates the relative position of a value compared to other values and includes both the minimum and maximum values in the calculation.
Syntax
Arguments
array: The list or range of numeric values used to determine the percentage rank.x: The value used to determine the percentage rank.significance(optional): Specifies the number of significant digits in the returned value.
Return value
Returns the percentage rank of the specified value as a decimal between 0 and 1, inclusive.
Note
If the specified value is less than the minimum value in the dataset, the PERCENTRANKINC function returns 0. If the specified value is greater than the maximum value in the dataset, the function returns a #ERR error.
Examples
Returns the percentage rank of the specified value. In this example, the function returns 0.
Returns the percentage rank of the specified value. In this example, the function returns 0.5.
Returns the percentage rank of the specified value. In this example, the function returns 1.
You can use the PERCENTRANKINC function to determine the relative standing of a value within a dataset for metrics such as sales, revenue, or performance scores.

Excel equivalent
Last updated
Was this helpful?