Category: FUNCTION | Updated: 2026-11-22

How to Use the PERCENTRANK Function in Google Sheets | Calculate Percentile Rank

Syntax

=PERCENTRANK(data, value, [significant_digits])
  • data: The array or cell range containing the dataset to consider.
  • value: The value whose percentage rank will be determined.
  • significant_digits (optional): The number of significant digits to use in the calculation. If omitted, 3 (three decimal places) is used.

Example with a Table

In the following list of test scores (A2:A6), we find the relative position (percentile rank) of each score within the entire dataset.

Cell A (Score) B (Formula) C (Result)
1 Score Formula Percentile Rank
2 50 =PERCENTRANK($A$2:$A$6, A2) 0.000
3 65 =PERCENTRANK($A$2:$A$6, A3) 0.250
4 75 =PERCENTRANK($A$2:$A$6, A4) 0.500
5 80 =PERCENTRANK($A$2:$A$6, A5) 0.750
6 95 =PERCENTRANK($A$2:$A$6, A6) 1.000

Tip: When copying the formula, use an absolute reference like $A$2:$A$6 so the data range stays fixed.

Common Errors and Notes

  • #N/A Error: Occurs if the specified value is smaller than the minimum or larger than the maximum in data, or if data contains no numeric values.
  • #NUM! Error: Occurs if significant_digits is less than 1.
  • Displaying as a percentage: The result is returned as a decimal such as 0.75. To display it as a percentage (75.0%), select the “Percent” format from the toolbar.

Frequently Asked Questions

Q. What is the difference between PERCENTRANK and PERCENTRANK.INC?

A. The calculation results are identical. PERCENTRANK.INC was introduced for compatibility with Excel, and both return a percentile rank between 0 and 1 inclusive.

Q. What happens if I specify a value that does not exist in the dataset?

A. As long as the value is between the minimum and maximum of the dataset, the percentile rank is automatically calculated using linear interpolation between adjacent values. Values outside that range return a #N/A error.