Google Sheets PERCENTILE.INC Guide and Examples
In this article
The PERCENTILE.INC function in Google Sheets calculates the k-th percentile of a data set, where k is a value between 0 and 1 inclusive. This means it can find the value below which a certain percentage of your data falls, including the absolute minimum (0th percentile) and the absolute maximum (100th percentile). It is primarily used by analysts to understand the distribution of a dataset, such as determining the score that separates the top 10% of students from the rest or identifying the 90th percentile of website load times to optimize performance.
What You'll Need
- A Google account with access to Google Sheets.
- A dataset consisting of numerical values (integers or decimals).
- A specific percentile target (expressed as a decimal between 0 and 1).
Step-by-Step
- Prepare Your Data: Open your Google Sheet and ensure your numerical data is organized in a continuous range. For example, if you have a list of sales figures, place them in column A from cell A2 to A100. Ensure there are no text strings or error messages within this range, as these can sometimes lead to unexpected results or errors depending on how the range is referenced.
- Select Your Output Cell: Click on the empty cell where you want the percentile result to appear. This is typically a cell adjacent to your data or in a summary table at the top of your sheet.
- Enter the Function Start: Type
=PERCENTILE.INC(into the cell. This tells Google Sheets that you are initiating a percentile calculation that is "inclusive" of the 0 and 1 boundaries. - Define the Data Range: While the parenthesis is still open, highlight the cells containing your numbers with your mouse, or type the range manually (e.g.,
A2:A100). Follow this with a comma to separate the first argument from the second. - Specify the Percentile Value: Enter the percentile you are looking for as a decimal. For example, if you want the 75th percentile, type
0.75. If you want the median (50th percentile), type0.5. - Close and Execute: Type the closing parenthesis
)and press Enter. The cell will now display the numerical value that represents that specific percentile of your dataset. - Verify the Result: To ensure the function is working correctly, you can temporarily sort your data from smallest to largest. The result of the
PERCENTILE.INCfunction should logically sit at the position indicated by your decimal value relative to the total number of entries.
Common Mistakes
One of the most frequent errors is entering the percentile as a whole number rather than a decimal. For instance, entering 75 instead of 0.75 will result in a #NUM! error because the function strictly requires a value between 0 and 1. If you prefer to use whole numbers in your sheet, you must divide the cell reference by 100 within the formula (e.g., =PERCENTILE.INC(A2:A100, B1/100) where B1 contains the number 75).
Another common mistake is confusing PERCENTILE.INC with PERCENTILE.EXC. The "INC" stands for inclusive, meaning it includes the 0th and 100th percentiles. The "EXC" version is exclusive and cannot calculate the 0 or 1 boundaries. If you attempt to find the 0th percentile using PERCENTILE.EXC, the formula will fail. Using the wrong version can lead to slight discrepancies in the resulting value, especially in smaller datasets, because the interpolation methods differ.
Users also frequently include non-numeric data in their range. While Google Sheets is generally good at ignoring blank cells, cells containing text that looks like a number (numbers stored as text) may not be counted correctly. This can skew the percentile calculation, making the result inaccurate without triggering a formal error message.
Tips
To make your spreadsheet more dynamic, avoid hard-coding the percentile decimal into the formula. Instead, point the formula to a cell. For example, use =PERCENTILE.INC(A2:A100, C1). Now, whenever you change the value in cell C1 from 0.75 to 0.90, the percentile result will update automatically without you having to edit the formula itself.
If you are working with a massive dataset that spans multiple sheets, you can use named ranges. Highlight your data, go to Data > Named ranges, and name your set "SalesData". Your formula then becomes =PERCENTILE.INC(SalesData, 0.9), which is much easier to read and maintain than complex cell references like 'Quarterly Reports'!B2:B5000.
For those needing to find multiple percentiles at once (e.g., the 25th, 50th, and 75th), you can combine PERCENTILE.INC with an array formula or simply create a small table. List 0.25, 0.5, and 0.75 in a column, and use a relative cell reference for the percentile argument. You can then drag the fill handle down to calculate all three values instantly.
Troubleshooting
If your formula returns a #NUM! error, first check your percentile argument. Ensure it is a number between 0 and 1. If the value is 1.1 or -0.1, the function will break. If the value is stored in another cell, check that cell for hidden characters or formatting that might make Google Sheets treat it as text.
If you see a #VALUE! error, it usually indicates that the formula is encountering data it cannot process. Check your data range for cells that contain errors like #REF! or #N/A. The PERCENTILE.INC function cannot ignore existing errors within the range; you must first clean the data using the IFERROR function or by manually removing the problematic cells.
If the result seems mathematically incorrect, check for duplicate values in your dataset. Percentiles in small datasets with many repeating numbers can sometimes feel counterintuitive because the function interpolates between values. If you have a very small sample size, the difference between PERCENTILE.INC and PERCENTILE.EXC becomes more pronounced; try switching to the exclusive version to see if the result aligns better with your specific statistical requirements.
If the formula simply does not update when you change the data, check your calculation settings. While Google Sheets usually calculates in real-time, ensure you aren't in a filtered view that is hiding the cells you think you are editing, or check if there are any script-based triggers interfering with the sheet's recalculation.
Frequently Asked Questions
What is the difference between PERCENTILE.INC and PERCENTILE?
In Google Sheets, PERCENTILE is essentially an alias for PERCENTILE.INC. They perform the same calculation, but PERCENTILE.INC is the more explicit, modern naming convention used to distinguish it from the exclusive version.
Can I use PERCENTILE.INC with a range of cells that contains blanks?
Yes, PERCENTILE.INC ignores empty cells within the specified range. However, it does not ignore cells that contain a zero. If a cell is truly empty, it won't affect the count; if it contains a 0, it will be treated as a data point and will lower the overall percentile values.
How do I find the top 10% of my data?
To find the value that marks the start of the top 10%, you need to calculate the 90th percentile. Use the formula =PERCENTILE.INC(range, 0.9). Any value in your dataset greater than this result is in the top 10%.
Does the data need to be sorted before using this function?
No, the data does not need to be sorted. Google Sheets handles the sorting internally as part of the calculation process. You can leave your data in any order, and the function will still return the correct percentile value.
What happens if my dataset only has one number?
If the range contains only one numerical value, PERCENTILE.INC will return that single value regardless of the percentile argument (0.1, 0.5, 0.9, etc.), as that value represents both the 0th and 100th percentile of the set.
Can I use this function across different tabs?
Yes, you can reference data on another tab by including the sheet name followed by an exclamation point. For example: =PERCENTILE.INC('Sheet2'!A2:A100, 0.5). Ensure the sheet name is wrapped in single quotes if it contains spaces.