Excel Percentile Formula: How to Calculate Percentiles
In this article
To determine a percentile in Excel, use the =PERCENTILE.INC(array, k) formula, where "array" is the range of your data and "k" is the percentile value you want to find (expressed as a decimal between 0 and 1). For example, to find the 90th percentile of data in cells A1 through A10, you would enter =PERCENTILE.INC(A1:A10, 0.9). This calculation tells you the value below which a given percentage of your data falls, which is essential for standardized testing, financial analysis, and performance benchmarking.
What You'll Need
- A computer with Microsoft Excel installed (works in Excel 2010 and newer, and Excel for the Web).
- A dataset consisting of numerical values (text or blank cells within the range are ignored).
- A clear understanding of whether you need an inclusive or exclusive percentile calculation.
Step-by-Step
- Organize Your Data: Place your numerical data in a single column or row. For this guide, assume your data is located in cells
A2throughA100. Ensure there are no non-numeric characters (like currency symbols typed manually instead of formatted) in these cells, as this can lead to errors. - Select the Target Cell: Click on the empty cell where you want the result of the percentile calculation to appear.
- Choose Your Formula Type: Decide between
PERCENTILE.INCandPERCENTILE.EXC.- Use
PERCENTILE.INC(Inclusive) if you want the range to include 0 and 1 (0% and 100%). This is the most common version used in general business reporting. - Use
PERCENTILE.EXC(Exclusive) if you want to exclude the extreme ends of the data set, which is often preferred in high-level statistical academic research.
- Use
- Enter the Formula: Type
=PERCENTILE.INC(into the cell. - Define the Array: While the parenthesis is open, click and drag your mouse from cell
A2toA100, or manually typeA2:A100. Then, type a comma to separate the arguments. - Enter the k-Value: Type the percentile you are looking for as a decimal.
- For the 25th percentile (1st quartile), type
0.25. - For the 50th percentile (median), type
0.5. - For the 75th percentile (3rd quartile), type
0.75. - For the 90th percentile, type
0.9.
- For the 25th percentile (1st quartile), type
- Close and Execute: Type the closing parenthesis
)and press Enter. Excel will now return the specific value from your dataset that represents that percentile. - Optional: Dynamic Referencing: Instead of typing
0.9directly into the formula, type the number 0.9 into cellB1. Then, change your formula to=PERCENTILE.INC(A2:A100, B1). Now, whenever you change the value inB1, the percentile result will update automatically without you having to edit the formula.
Common Mistakes
One of the most frequent errors users make is entering the percentile as a whole number. For instance, typing =PERCENTILE.INC(A2:A100, 90) will result in a #NUM! error because Excel expects a value between 0 and 1. Always convert your percentage to a decimal (90% = 0.9).
Another common mistake is confusing the PERCENTILE function with the PERCENTRANK function. PERCENTILE answers the question: "What is the value at the 90th percentile?" whereas PERCENTRANK answers the question: "What percentile does this specific value represent relative to the rest of the group?" If you are trying to find a rank, you are using the wrong formula.
Users also frequently forget to handle empty cells or text strings within their data range. While Excel generally ignores blanks, if a cell contains a formula that returns an empty string ("") or a text-based error, it can sometimes skew results or cause the formula to fail depending on the version of Excel being used.
Tips
To make your analysis more professional, use the ROUND function in conjunction with your percentile formula. Percentile calculations often result in long decimals that are not practical for reporting. For example, =ROUND(PERCENTILE.INC(A2:A100, 0.9), 2) will round the result to two decimal places.
If you are working with a very large dataset that changes frequently, consider converting your data range into an official Excel Table (select data and press Ctrl + T). Once it is a table, you can use structured references like =PERCENTILE.INC(Table1[Sales], 0.9). This ensures that as you add new rows of data to the bottom of the table, the percentile formula automatically includes the new data without you having to update the cell range manually.
For those needing to find multiple percentiles at once (e.g., 25th, 50th, and 75th), create a small table with the decimals 0.25, 0.5, and 0.75 in one column. Use an absolute reference for the data range (using dollar signs, like $A$2:$A$100) and a relative reference for the k-value. This allows you to drag the formula down to fill all three percentiles instantly.
Troubleshooting
If your formula returns a #NUM! error, first check your k-value. This error almost always occurs because the k-value is less than 0 or greater than 1. Ensure you have used 0.9 instead of 90. If you are using PERCENTILE.EXC, remember that the k-value must be strictly greater than 0 and less than 1; it cannot be exactly 0 or 1.
If the result seems mathematically incorrect, check for "numbers stored as text." This happens often when data is imported from a CSV or a database. If you see small green triangles in the corners of your data cells, Excel is treating those numbers as text, and the PERCENTILE function will ignore them. To fix this, select the range, click the warning icon that appears, and select "Convert to Number."
If you receive a #VALUE! error, check that your array range is valid and does not contain unexpected data types that the function cannot process. Ensure there are no merged cells within the range A2:A100, as merged cells can confuse range selections in certain versions of Excel.
Frequently Asked Questions
What is the difference between PERCENTILE.INC and PERCENTILE.EXC?
PERCENTILE.INC (Inclusive) includes the 0th and 100th percentiles in the calculation, meaning it can return the absolute minimum or maximum of your dataset. PERCENTILE.EXC (Exclusive) excludes these extremes and is used when you want to find a value that is strictly within the boundaries of the data, which is more common in specific statistical sampling methods.
Can I find the percentile of a filtered list?
The standard PERCENTILE functions include all cells in the range, even those hidden by a filter. To calculate the percentile of only visible cells, you must use a more complex formula involving SUMPRODUCT or AGGREGATE, as there is no built-in "PERCENTILE.VISIBLE" function.
Does the data need to be sorted for the formula to work?
No, you do not need to sort your data in ascending or descending order. Excel's PERCENTILE functions perform the sorting internally as part of the calculation process, so the original order of your list will not affect the result.
Why is the 50th percentile the same as the MEDIAN function?
By definition, the 50th percentile is the middle value of a dataset. Therefore, =PERCENTILE.INC(A2:A100, 0.5) will always yield the exact same result as =MEDIAN(A2:A100).
What happens if my dataset is very small?
With very small datasets, PERCENTILE.INC and PERCENTILE.EXC may produce significantly different results because they use different interpolation methods to estimate values between data points. In small samples, it is recommended to stick to PERCENTILE.INC for consistency with standard business reporting.