Formualizer Docs

PERCENTRANK.INC

Returns the inclusive percentile rank of x within a numeric data array.

PERCENTRANK.INC maps values to [0, 1] and interpolates linearly between data points.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=PERCENTRANK.INC(array, x, [significance])

Arguments

ArgumentTypeRequiredDefault
arraynumber (range)Required—
xnumber (range)Required—
significancenumber (range)Optional—

Remarks

  • Optional significance controls decimal truncation and defaults to 3.
  • significance must be at least 1.

Error cases

  • x must be within the observed min/max range; otherwise returns #N/A.
  • Returns #NUM! for invalid setup such as empty numeric input.

Examples

Find the percentile rank of an observation in the sample.

Formula =PERCENTRANK.INC({10,20,30,40,50},30)

Expected result 0.5

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Interpolate between two observations and request five digits of significance.

Formula =PERCENTRANK.INC({10,20,30,40,50},25,5)

Expected result 0.375

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Evaluate the rank of the smallest observed value.

Formula =PERCENTRANK.INC({10,20,30,40,50},10)

Expected result 0

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

A value below every observation is outside the input data.

Formula =PERCENTRANK.INC({10,20,30,40,50},5)

Expected result #N/A

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Exact inclusive percentile rank

Formula =PERCENTRANK.INC({1,2,3,4,5},3)

Expected result 0.5

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Interpolated inclusive percentile rank

Formula =PERCENTRANK.INC({1,2,3,4,5},2.5)

Expected result 0.375

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Implementation

Engine source

On this page