To calculate a percentile in Excel, use =PERCENTILE.INC(range, k) (or the older =PERCENTILE(range, k)), where range is your data range and k is the percentile you want as a decimal or fraction between 0 and 1. For example, =PERCENTILE.INC(A2:A101, 0.9) returns the 90th percentile of the values in A2 through A101. Excel interprets the result as "this value or below," so the 90th percentile is the point at which roughly 90% of your data falls at or under that number. That one formula covers most everyday needs. The rest of this guide explains how to set it up correctly, which of the two percentile functions to choose, why your numbers may look off, and how to check your answer.
What You'll Need
- Excel for Windows, Mac, or Excel for the web (all current versions include the percentile functions).
- A column of numeric data with one value per row, ideally with a header row so ranges are easy to read.
- A separate cell for each percentile you want to display — do not put formulas inside the data column itself.
- A decision on which percentile function matches the convention you need (explained below).
Step-by-Step
- Lay out your data cleanly. Put all the values you want to analyse in a single column or row, with no blank cells, no text notes, and no subtotal or total rows mixed in. A blank cell is skipped by Excel, but text or an accidental label in the range can return an error. If you have headers, keep them in row 1 and start your data in row 2.
- Pick an empty cell for the result. Click a cell outside the data range, such as a cell to the right of your column or below the data with a blank row in between. Type a label next to it, for example "90th percentile," so the output is readable later.
- Enter the formula. In the result cell type
=PERCENTILE.INC(, then either drag-select your data range or type it, for exampleA2:A101. Type a comma, then the percentile as a decimal:0.9for the 90th,0.5for the median,0.25for the 25th. Close the parenthesis and press Enter. The finished formula looks like=PERCENTILE.INC(A2:A101, 0.9). - Use absolute references if you plan to copy the formula. Convert the range to absolute by pressing F4 after selecting it, so it becomes
$A$2:$A$101. Without the dollar signs, copying the formula down will shift the range and give wrong results. Put each percentile value in its own small cell, then reference that cell as the k argument so you can change it without editing every formula. - Choose the right function.
PERCENTILE.INCincludes 0 and 1 in the interpolation and is the modern default.PERCENTILE.EXCexcludes the extremes and requires k to fall strictly between 0 and 1; it is used for some statistical and exam-score conventions. The legacyPERCENTILEbehaves likePERCENTILE.INCand still works for compatibility. Pick one and use it consistently across your sheet, because the two functions give slightly different answers for the same data. - Format the result. The percentile formula returns a value on the same scale as your data, not a percentage label. If your data is revenue in dollars, the 90th percentile is a dollar amount. Apply the same number format as your source column so it displays consistently, and set decimal places by going to the Home tab and using the number format controls.
- Check the answer with a quick sanity test. The percentile result should sit between your minimum and maximum values. For the 50th percentile, compare it to
=MEDIAN(range)— the two should match (or be extremely close) when you usePERCENTILE.INC. If the output is far outside the data range, you almost certainly have a range typo or a k value entered as a whole number like 90 instead of 0.9. - Build the full percentile table. In adjacent cells, repeat the formula for the percentiles you care about — for example 10th, 25th, 50th, 75th, and 90th. Put the labels in one column and the formulas in the next. This gives you a distribution summary you can reuse, and you can copy it to other columns of data by adjusting the range reference.
- Optionally chart it. Select your table of percentile values and insert a column or line chart to visualise how the distribution spreads. Keep the source data out of the chart selection so the chart shows only the percentile markers.
Common Mistakes
- Entering 90 instead of 0.9. The k argument must be between 0 and 1. A whole number like 90 triggers a #NUM! error. If you want to type percent-style values, divide by 100 in the formula:
=PERCENTILE.INC(A2:A101, 90/100). - Forgetting dollar signs before copying. Dragging the formula down without absolute references moves the range and silently produces wrong numbers with no error message.
- Including totals or headers in the range. A summary row or a text header inside the selection can cause an error or bias the result. Select only the raw values.
- Mixing up percentile and percentage rank. Percentile returns a value from your data. If you want the rank of a value (what percentage scored below it), use
PERCENTRANK.INCinstead. - Using
PERCENTILE.EXCwithout checking the convention. It can return an error for very small datasets or extreme k values. Confirm which convention your audience expects before switching.
Tips
- Store the desired percentile in its own cell (for example 0.9) and reference that cell in the formula. Changing one cell then updates the whole table, which makes what-if analysis easy.
- Use
PERCENTILE.INCwith the full data range and let Excel do the interpolation. Round only the display, not the underlying value, so later calculations stay accurate. - Name your data range using the Name Box (type a name on the left of the formula bar) so formulas read as
=PERCENTILE.INC(Sales, 0.9). - Sort a copy of the data to eyeball the result. The 90th percentile should sit where roughly nine out of ten values fall below it.
- Apply the same number format as the source column to avoid the percentile looking like a stray small number.
Troubleshooting
You get #NUM!. The k value is outside the allowed range for the function, or your dataset is too small for PERCENTILE.EXC. Check that k is between 0 and 1 (inclusive for INC, exclusive for EXC) and switch to PERCENTILE.INC if the dataset is tiny.
You get #VALUE!. The range contains text, an error value, or a stray label. Clear anything non-numeric from the selected range, or narrow the range to just the numbers.
The result looks impossible. Re-read the range reference. A missing colon, an extra row, or a range pointing at the wrong column is the usual cause. Test with a small known set of numbers where you can work out the answer by hand.
The copied formula gives different answers per row. Your range is relative. Add the dollar signs and copy again.
The number displays oddly. This is a formatting issue, not a maths one. Apply the same format as the source column.
If that did not work, rebuild the formula in a fresh cell from scratch and enter the range by dragging rather than typing, which removes typos.
Frequently Asked Questions
What is the difference between PERCENTILE.INC and PERCENTILE.EXC?
INC includes the 0 and 1 endpoints and is the common default. EXC excludes them, requires k strictly between 0 and 1, and follows a different interpolation convention used in some statistical contexts. For typical business reporting, use INC.
Can I use a whole number for the percentile?
No. The k argument must be between 0 and 1. Enter 0.9 for the 90th percentile, or divide a whole number by 100 inside the formula.
How do I get the percentile as a percentage instead of a value?
Percentile returns a data value, not a percentage. If you want a rank or percentage position, use PERCENTRANK.INC(range, value) instead.
Does the old PERCENTILE function still work?
Yes. PERCENTILE remains available for compatibility and behaves like PERCENTILE.INC, but the newer functions are the preferred choice for new sheets.
Why is my 50th percentile different from the average?
They measure different things. The median (50th percentile) is the middle value; the average can be pulled higher or lower by extreme values. That difference is useful information about your data's skew.