Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets PERCENTILE.EXC Function Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The PERCENTILE.EXC function in Google Sheets calculates the k-th percentile of a data set, excluding the 0 and 1 boundaries. This means it finds the value below which a given percentage of data falls, but it specifically excludes the absolute minimum and maximum extremes from the calculation range, making it ideal for datasets where you want to avoid the influence of extreme outliers at the very edges of the distribution.

What You'll Need

  • A Google account with access to Google Sheets.
  • A dataset consisting of numerical values (integers or decimals).
  • A target percentile value (expressed as a decimal between 0 and 1).

Step-by-Step

  1. Prepare Your Data: Enter your numerical data into a continuous range of cells. For example, enter your test scores or sales figures into cells A2 through A21. Ensure there are no text strings or empty cells within the range that could interfere with the calculation, although Google Sheets generally ignores non-numeric values in this specific function.
  2. Select the Output Cell: Click on the empty cell where you want the result of the percentile calculation to appear (e.g., cell C2).
  3. Enter the Function Start: Type =PERCENTILE.EXC( into the cell. This tells Google Sheets you are initiating the exclusive percentile formula.
  4. Define the Data Range: While the parenthesis is open, highlight the range of cells containing your numbers with your mouse, or type the range manually. For our example, type A2:A21. Follow this with a comma to move to the next argument.
  5. Specify the Percentile (k): Enter the percentile you are looking for as a decimal. For instance, if you want to find the 90th percentile, type 0.9. If you want the 25th percentile (the first quartile), type 0.25. The value must be greater than 0 and less than 1.
  6. Close and Execute: Type the closing parenthesis ) and press Enter. Your result will now be displayed in the cell. The full formula should look like this: =PERCENTILE.EXC(A2:A21, 0.9).
  7. Verify the Result: To ensure the calculation is correct, you can sort your data range from smallest to largest. The result of the PERCENTILE.EXC function should be a value that sits at the indicated percentage mark of the list, excluding the very first and very last items from the boundary logic.

Common Mistakes

One of the most frequent errors is entering the percentile value as a whole number instead of a decimal. For example, typing 90 instead of 0.9 will result in a #NUM! error because the function requires a value between 0 and 1. If you prefer to use whole numbers in a separate cell (like typing 90 in cell B1), you must divide that cell by 100 within the formula: =PERCENTILE.EXC(A2:A21, B1/100).

Another common mistake is confusing PERCENTILE.EXC with PERCENTILE.INC. The "INC" version includes the 0 and 1 boundaries, meaning it can return the absolute minimum or maximum of your dataset. The "EXC" version cannot. If you attempt to find the 0th or 100th percentile using PERCENTILE.EXC, the formula will fail because those boundaries are explicitly excluded from the calculation.

Users also occasionally include header rows in their range selection. While PERCENTILE.EXC is designed to ignore text, including large amounts of non-numeric data in the range can sometimes lead to confusion when auditing the formula or calculating the total count of the dataset. It is best practice to select only the cells containing the numbers.

Tips

To make your spreadsheet dynamic, avoid hard-coding the percentile decimal into the formula. Instead, place the desired percentile (e.g., 0.75) in a specific cell and reference that cell in your formula. This allows you to change the percentile and see the result update instantly without editing the formula string itself.

If you are working with a very large dataset spread across multiple sheets, you can use named ranges. Go to Data > Named ranges and name your data set "SalesData". Your formula then becomes =PERCENTILE.EXC(SalesData, 0.8), which is much easier to read and maintain than long cell references like 'Quarterly Report'!A2:A5000.

Combine PERCENTILE.EXC with the ARRAYFORMULA function if you need to calculate multiple percentiles at once. If you have a list of percentiles (0.25, 0.5, 0.75) in cells B2:B4, you can use =ARRAYFORMULA(PERCENTILE.EXC(A2:A21, B2:B4)) to populate all three results simultaneously.

Troubleshooting

If your formula returns a #NUM! error, first check your k value. Ensure it is strictly greater than 0 and strictly less than 1. If you have entered 0 or 1, change the value to something like 0.01 or 0.99, or switch to the PERCENTILE.INC function if you specifically need the boundaries.

If the result seems mathematically incorrect, check for hidden characters in your data. Sometimes numbers imported from other software are formatted as text. You can check this by using the =ISNUMBER(cell) function on your data. If it returns FALSE, highlight your data, go to Format > Number, and select "Number" to force the correct data type.

If the formula returns a #VALUE! error, ensure that the range you selected actually contains numbers. If the range is entirely empty or contains only text, the function cannot perform the calculation. Ensure your range references are accurate and that there are no broken links if you are referencing another sheet.

In cases where the result is a long decimal and you need a clean number, wrap your function in the ROUND function. For example: =ROUND(PERCENTILE.EXC(A2:A21, 0.9), 2) will limit the result to two decimal places, which is often necessary for financial reporting.

Frequently Asked Questions

What is the difference between PERCENTILE.EXC and PERCENTILE.INC?

PERCENTILE.EXC (exclusive) excludes the 0 and 1 boundaries, meaning it cannot calculate the 0% or 100% percentile. PERCENTILE.INC (inclusive) includes these boundaries, allowing you to find the absolute minimum and maximum of the set.

Can I use this function with a range of cells from different sheets?

Yes, but you must wrap the ranges in curly brackets to create an array. For example: =PERCENTILE.EXC({Sheet1!A2:A10; Sheet2!A2:A10}, 0.5). This combines the two ranges into one virtual list for the function to analyze.

Does PERCENTILE.EXC ignore blank cells?

Yes, the function automatically ignores empty cells and cells containing text within the specified range, calculating the percentile based only on the available numerical values.

Why does my result change when I add one new number to the list?

Percentiles are based on the relative position of values. Adding a new number changes the total count of the dataset and potentially the rank of existing numbers, which shifts the calculated boundary for the exclusive percentile.

What happens if my dataset is too small?

PERCENTILE.EXC requires a minimum number of data points to calculate a specific percentile. If your dataset is too small to satisfy the exclusive boundary logic for the k value you chose, Google Sheets will return a #NUM! error.