For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 than 0 and less than 1.

    • 0.25: Returns the 25th percentile.

    • 0.5: Returns the median (50th percentile).

    • 0.75: Returns the 75th percentile.

Note

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

PERCENTILE.EXC

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 between 0 and 1.

    • 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.

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

PERCENTILE.INC

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

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

PERCENTRANK.EXC

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

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

PERCENTRANK.INC

Last updated

Was this helpful?