18 C
London
Thursday, July 24, 2025
HomeSoftware TutorialsGoogle SheetsHow to Average Filtered Rows in Google Sheets (With Example)

How to Average Filtered Rows in Google Sheets (With Example)

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

The easiest way to take the average of a filtered range in Google Sheets is to use the following syntax:

SUBTOTAL(101, A1:A10)

Note that the value 101 is a shortcut for taking the average of a filtered range of rows.

The following example shows how to use this function in practice.

Example: Average Filtered Rows in Google Sheets

Suppose we have the following spreadsheet that contains information about various basketball teams:

To add a filter to this data, we can highlight cells A1:B10, then click the Data tab, then click Create a filter:

We can then click the Filter icon at the top of the Points column and uncheck the box next to the first three values 84, 89, and 93:

Once we click OK, the data will be filtered to remove these values.

If we attempt to use the AVERAGE() function to average the points column of the filtered rows, it will not return the correct value:

Instead, need to use the SUBTOTAL() function:

average of filtered rows in Google Sheets

This function takes the average of only the visible rows.

We can manually verify this by calculating the average of the visible rows:

Average of Visible Rows: (99 + 94 + 97 + 104 + 109 + 99) / 6 = 100.333.

Additional Resources

The following tutorials explain how to perform other common operations in Google Sheets:

How to Count Filtered Rows in Google Sheets
How to Sum Filtered Rows in Google Sheets

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories