The PERCENTRANK function in Google Sheets is a powerful tool for determining the percentile rank of a specific value in a dataset. This function returns the relative standing of the value compared to the rest of the dataset, expressed as a percentage. It is particularly useful in statistical analysis, enabling users to identify how a specific number compares to a larger group.
Syntax
PERCENTRANK(data, value, [significance])
- data: The array or range of values in which the percentile rank is to be calculated.
- value: The specific value for which the percentile rank is being determined.
- significance: (Optional) The number of significant digits to which the result should be rounded. It defaults to 3 if not specified.
Example #1
=PERCENTRANK(A1:A10, 45)
This function calculates the percentile rank of 45 within the range A1 to A10. If the values in that range indicate that 45 is higher than 40% of the data, the result would be 0.4 or 40%.
Example #2
=PERCENTRANK(A1:A10, 30, 2)
This function finds the percentile rank of 30 in the same range, rounded to two decimal places. If 30 is better than 25% of the data, the output will be 0.25.
Example #3
=PERCENTRANK(B1:B20, 70)
This function assesses the percentile rank of 70 in the range B1 to B20. If 70 exceeds 65% of the values, the result will be 0.65 or 65%.
Error handling
- N/A: This error occurs if the specified value is not found in the data range.
- NUM!: This indicates that the data range is empty or that the significance argument is less than 1.
- VALUE!: This happens if non-numeric values are included in the data range.