The quickest way to find a percentile rank in Google Sheets is with the PERCENTRANK function: =PERCENTRANK(A2:A100, 85) returns the percentile rank of the value 85 within the range A2:A100. For example, if the result is 0.9, it means 90% of the values in that range are less than or equal to 85.
What Percentile Rank Actually Means
A percentile rank tells you the percentage of scores in a dataset that fall at or below a given value. It is not the same as a percentage score on a test. If you scored 85 on an exam and your percentile rank is 90, it means you scored higher than (or equal to) 90% of the other test-takers—not that you got 90% of the questions right. In Google Sheets, the PERCENTRANK function returns a decimal between 0 and 1, so you often multiply by 100 to express it as a percentage.
This concept is widely used in education (class rank), finance (returns compared to a benchmark), and data analysis (identifying outliers). Unlike a simple rank (1st, 2nd, 3rd), a percentile rank is normalized, making it easy to compare values from different-sized datasets.
How PERCENTRANK Works in Google Sheets
Google Sheets offers two related functions: PERCENTRANK and PERCENTRANK.EXC. The basic PERCENTRANK uses an inclusive definition: it includes the value itself in the ranking. PERCENTRANK.EXC uses an exclusive definition, which excludes the value itself, giving a range strictly between 0 and 1.
The syntax is the same for both:
PERCENTRANK(data, value, [significant_digits])PERCENTRANK.EXC(data, value, [significant_digits])
data is the range of numbers (e.g., A2:A100). value is the number you want to rank. significant_digits is optional—it controls how many decimal places the result has (default is 3). For example, =PERCENTRANK(A2:A100, 85, 4) returns a result like 0.9000.
If the exact value you search for is not in the dataset, Google Sheets interpolates between the two closest values. This is different from RANK, which gives a whole-number position.
How to Choose Between PERCENTRANK and PERCENTRANK.EXC
The choice depends on how you define “percentile.” In most standard statistics, the inclusive method (PERCENTRANK) is used when you want to include the value itself. For example, if you want to know what percentage of students scored at or below a certain score, use PERCENTRANK. If you want to know what percentage scored strictly below that score, use PERCENTRANK.EXC.
Here is a practical example:
- Dataset: 10, 20, 30, 40, 50 (in cells A1:A5)
=PERCENTRANK(A1:A5, 30)returns 0.5 (50% of values are ≤ 30)=PERCENTRANK.EXC(A1:A5, 30)returns 0.4 (40% of values are strictly < 30)
For most everyday uses, PERCENTRANK is the safer choice because it matches the common interpretation of “percentile rank” (e.g., “90th percentile” means at least 90% scored below you, but you might be included).
Step-by-Step: Using PERCENTRANK in a Real Sheet
Suppose you have a list of test scores in column A (A2:A100) and you want to find the percentile rank of a specific score, say 88.
- Click on an empty cell, say C2.
- Type
=PERCENTRANK(A2:A100, 88)and press Enter. - The result appears as a decimal, e.g., 0.82. To show it as a percentage, click Format > Number > Percent.
If you want to see percentile ranks for every value in the list, you can use an array formula. In Google Sheets, you can enter =ARRAYFORMULA(PERCENTRANK(A2:A100, A2:A100)) in cell B2, and it will fill down. This gives each score’s percentile rank relative to the whole set.
Note: On Excel, the function is the same, but the array formula requires Ctrl+Shift+Enter in older versions; in Microsoft 365 it works as a dynamic array. In Google Sheets, ARRAYFORMULA is always needed for this kind of operation.
Common Problems and How to Fix Them
Here are frequent issues users run into:
- #N/A error: This happens if the value is outside the range of the dataset. For example, if your data goes from 50 to 100 and you ask for PERCENTRANK of 10, Sheets returns #N/A. Check that the value is between the min and max of the data.
- #VALUE! error: This occurs if the data range contains text or empty cells. Ensure the range only contains numbers. If you have blanks, use
FILTERto remove them:=PERCENTRANK(FILTER(A2:A100, ISNUMBER(A2:A100)), 85). - Interpolation confusion: If your value isn’t in the list, the result may not be a round number. For instance, data 10,20,30 and value 25 returns 0.5 because 25 is halfway between 20 and 30. This is correct but can surprise users who expect a simple rank.
If you need to rank values by their position (1st, 2nd, etc.) instead of percentile, use RANK or RANK.EQ.
Comparing PERCENTRANK with Other Ranking Functions
Google Sheets has several ranking functions, each with a different purpose:
- RANK / RANK.EQ: Returns the ordinal position (1, 2, 3…). For example,
=RANK(85, A2:A100, 0)gives the rank in descending order (1 = highest). - PERCENTILE: The reverse of PERCENTRANK.
=PERCENTILE(A2:A100, 0.9)returns the value below which 90% of the data falls. PERCENTRANK gives the percentile for a value; PERCENTILE gives the value for a percentile. - QUARTILE: A special case of PERCENTILE that divides data into quarters.
=QUARTILE(A2:A100, 1)gives the 25th percentile.
In Excel, the same functions exist, but note that Excel’s PERCENTRANK has the same syntax. The main difference is that Google Sheets’ ARRAYFORMULA is not needed in Excel for simple formulas, but dynamic arrays in Excel 365 behave similarly.
Frequently Asked Questions
Q: How do I get the percentile rank as a percentage instead of a decimal?
A: Multiply the result by 100, or format the cell as a percentage. For example, =PERCENTRANK(A2:A100, 85)*100 gives 90 if the rank is 0.9. Alternatively, select the cell and go to Format > Number > Percent.
Q: What is the difference between PERCENTRANK and PERCENTRANK.EXC?
A: PERCENTRANK includes the value itself in the calculation, so the result can be 1 (if the value is the maximum). PERCENTRANK.EXC excludes the value, so the result is always between 0 and 1, never exactly 1. For most purposes, PERCENTRANK is what you want.
Q: Can I use PERCENTRANK with text or dates?
A: No, PERCENTRANK only works with numeric data. For dates, you can convert them to numbers (e.g., using DATEVALUE) or use a workaround. For text, you would need to assign numeric codes first.
Q: Why does my formula return #N/A if the value is in the list?
A: This usually happens when the value is not exactly in the list, or when the data range includes non-numeric entries. Check for hidden text or errors in the range. Use the FILTER method shown above to clean the data.
Q: How do I calculate percentile rank for a whole column without dragging the formula?
A: Use ARRAYFORMULA. In cell B2, enter =ARRAYFORMULA(PERCENTRANK(A2:A100, A2:A100)) and it will fill down automatically. This works even if you add more data later, as long as the range is correct.
Alternatives and When to Use Them
If you need a simpler rank (like top 10 list), RANK is more straightforward. If you want to find the value at a given percentile, use PERCENTILE. For conditional ranking (e.g., rank within a group), combine RANK with FILTER or use COUNTIFS to compute a custom percentile.
For example, to find the percentile rank of a score only among female students, you could use:
=COUNTIFS(B2:B100, "F", A2:A100, "<="&D2)/COUNTIF(B2:B100, "F")
This counts the number of females with scores less than or equal to the value in D2, then divides by the total number of females. This gives an exclusive percentile rank (strictly less than).
Remember, PERCENTRANK is a built-in, fast, and accurate way to get percentile ranks. Use it unless you have a special condition that requires a custom formula.
Related
- Balloon with Number 1 Birthday: Meaning & Ideas
- Split String in Java 8: Methods and Examples
- STRING_SPLIT SQL Server Syntax & Examples
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Change View Settings in Windows 11Changing view settings in Windows 11 lets you control how files and folders appear in File Explorer—whether you…
- PowerPoint Animate Bold Text: Steps, Effects, and TipsYes. To animate bold text in PowerPoint, put the phrase in its own text box, make it bold,…
- Lock Cell References in Excel With Dollar Signs EasilyTo lock a cell reference in an Excel formula, add a dollar sign before the column letter, the…
- Excel Conditional Formatting Per Row: How ToThe simplest way to apply conditional formatting per row in Excel is to use a formula rule with…
- Insert a Line in Word for the Web: Easy Steps and FixesTo insert a line in Word for the web, choose Insert > Shapes, select a straight line, and…
- How to Edit Custom Number Formats in Excel Step by StepTo edit a custom number format in Excel for Microsoft 365 on Windows, select the cells, press Ctrl+1,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.