HomeGoogle DocsSpreadsheetHow to Use the Percentile Function in Google Sheets

How to Use the Percentile Function in Google Sheets

Published on

Percentile is a Statistical function available in Google Docs Sheets. Find below what is Percentile value and how to use the Percentile Function in Google Sheets.

Don’t skip this function as it’s quite useful and very easy to learn. I have also included how to manually find percentile value in Google Sheets.

I hope that can help you better understand this popular statistical function in Sheets.

Syntax:

PERCENTILE(data, percentile)

There are two arguments in this function and they are “data” and “percentile”.

data – The range containing the dataset (number values) to consider.

percentile – The percentile (l will explain it below) whose value within data will be calculated and returned.

What is Percentile then?

A percentile aka centile is a value below which a ‘given percentage’ of data falls.

Understand how to calculate the percentile in Google Sheets without using the dedicated function first.

How to ‘Manually’ Calculate Percentile in Google Sheets

For example, consider the weight of a group of 9 people. To calculate the percentile ‘manually’ in Sheets, follow the below steps.

Step 1:

Enter the Name and Weight in Kg. as below. The values in the columns must be sorted from smallest to largest. I mean sort column B in ascending order.

sample data to learn the Percentile function

Step 2:

The whole values in B2:B10 is considered 100%. What we want to find is the k th percentile and k is no doubt any number between 0 and 100.

Multiply k percent (here I am taking 80%) by the count of values in column B to get the ‘index’ number.

=80%*count(B2:B)

This formula returns 7.2 which is not a whole number.

Step 3:

Round the number 7.2 up to the nearest whole number which is 7. You can use the below formula to round.

=round(80%*count(B2:B))

In cell C2:C10 enter the sequential number starting from 1 to 9 (9 rows). The below formula in cell C2 will auto-generate the serial numbers.

=ArrayFormula(if(B2:B="","",row(B1:B)))
Percentile rounded index number

Find the value 7 (index number) in column C or count down the range B2:B until you reach 7th row. The value in that row in column B is the 80th percentile value.

That means 63 is the percentile value and 80% of people are below the weight of “Kathy”.

Note: if you get a whole number in the above step 2, count the rows from B2:B until you reach that number.

Then pick the value and the value in the next cell and find the average. That will be the percentile value.

=average(B8:B9)

Result: 64

Percentile whole index number

Formula Example to the Percentile Function in Google Sheets

There is certain advantages of using the Percentile function in Google Sheets.

  1. You can find the percentile value of a large set of data.
  2. No need to sort the data.

See the use of Percentile function in Google Sheets. Please refer to the above screenshot and then the formula below.

=PERCENTILE(B2:B11,70%)

This will return the value 63.6, a value between 63 (cell B8) and 65 (cell B9). Albeit the manual method returns 64, that value also comes between this two values. The minor difference is negligible.

The percentile splits the whole data into two portions. One below the percentile value and the other above.

Filter Rows that Contain Values Above and Below the Percentile Value

You can use the function Filter/Query to filter the values below/above the percentile value.

To filter the rows below the Percentile value in Google Sheets, you can use a formula similar to the one below.

=filter(A2:B,B2:B<=PERCENTILE(B2:B,70%))
Filter with Percentile Function in Google Sheets

Here is the formula to filter above the Percentile value.

=filter(A2:B,B2:B>PERCENTILE(B2:B,70%))

Hope you could learn how to use Percentile function in Google Sheets. Enjoy!

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Running Total By Month in Excel

This tutorial demonstrates how to calculate the running total by month in a range...

SORT and SORTBY – Excel Vs Google Sheets

While Excel offers the SORT and SORTBY functions for sorting a table, Google Sheets...

Get Top N Values Using Excel’s FILTER Function

When using the FILTER function in Excel to extract the top N values, it's...

More like this

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

2 COMMENTS

  1. Once I have a Sum of numbers what is the formula I use to calculate a specific percentage of that SUM?

    Such as an employee gets reimbursed 60% of their expenses so I want to make a column to have all the total amounts entered with the function for the Sum cell, and then I want to make a separate cell to show what the reimbursement amount due to the employee would be for receivables and payables.

    • Hi, BRANDI SZABLE,

      I may be able to help you if you share a mockup sheet.

      To share, make a sample sheet (should contain your expected result too) and share the link preferably in EDIT mode.

      Use the ‘Reply’ to this comment to share the link. The link will be opened, not published.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.