If you work with data in Google Sheets, you’ll often need more than a simple average. You may want to calculate the average of only certain values—such as sales from a specific region, test scores above a threshold, or expenses from a single category. That’s exactly where the Google Sheets AVERAGEIF function shines. This guide explains how AVERAGEIF works, when to use it, and how to avoid common mistakes, so you can apply it confidently in real spreadsheets.
What is Google Sheets AVERAGEIF and when should you use it?

Google Sheets AVERAGEIF calculates the average (mean) of a range of numbers that meet a single condition. Instead of averaging everything, you tell Sheets which values matter and ignore the rest. This is especially useful when your data includes categories, labels, or thresholds that determine which rows should be included in the calculation.
You should use AVERAGEIF when you have one condition to evaluate, such as “only include sales from January,” “only average hours worked by a specific employee,” or “only calculate the average score if it’s above 70.” If you need more than one condition, that’s where AVERAGEIFS comes into play, which we’ll cover later.
How does the AVERAGEIF function work in Google Sheets?
At its core, AVERAGEIF scans a range for values that match your criteria and then averages a corresponding set of numbers. The function has three parts: the range to evaluate, the condition to apply, and the range of values to average. If the range to check and the range to average are the same, the formula can be even simpler.
What makes AVERAGEIF powerful is its flexibility. The criteria can be text, numbers, comparison operators, or even wildcard patterns. This lets you build dynamic summaries without filtering or manually editing your data.
What is the syntax for Google Sheets AVERAGEIF?
The basic syntax looks like this:
AVERAGEIF(range, criterion, [average_range])
The range is where Google Sheets looks to see if the condition is met. The criterion defines the condition itself. The optional average_range is the set of numbers that will actually be averaged. If you omit average_range, Google Sheets averages the values in range instead.
AVERAGEIF Formula Examples
Below are practical examples that show how AVERAGEIF works in real-world scenarios.
Example 1: Average numbers greater than a value
AVERAGEIF(A2:A20, “>50”)
This formula averages only the numbers in A2:A20 that are greater than 50. It’s useful for things like calculating the average test score above a passing grade.
Example 2: Average values based on text criteria
AVERAGEIF(B2:B20, “Marketing”, C2:C20)
Here, Google Sheets checks column B for the text “Marketing” and averages the corresponding values in column C. This is common in budget or sales spreadsheets.
Example 3: Using comparison operators with cell references
AVERAGEIF(A2:A20, “>=”&E1)
This example allows you to control the threshold from another cell, making your spreadsheet more interactive and reusable.
How do text criteria and wildcards work in AVERAGEIF?
Text criteria must usually be enclosed in quotation marks. For example, “Completed” or “West Region.” AVERAGEIF also supports wildcards, which help when text isn’t an exact match. An asterisk () matches any number of characters, while a question mark (?) matches a single character.
For example:
AVERAGEIF(A2:A20, “North“, B2:B20)
This averages values in column B where column A starts with “North,” such as “Northwest” or “Northeast.” Wildcards are especially helpful when dealing with inconsistent labels or user-entered data.
What are common mistakes when using Google Sheets AVERAGEIF?
One frequent mistake is mismatched ranges. The range and average_range must be the same size. If they aren’t, Google Sheets will return an error or unexpected results. Another common issue is applying text criteria without quotes, which causes the formula to fail.
Users also sometimes expect AVERAGEIF to work with multiple conditions. It won’t—only one condition is allowed. If you need more, you must use AVERAGEIFS. Finally, remember that blank cells and non-numeric values in the average_range are ignored, which can affect results if your data isn’t clean.
How does AVERAGEIF handle blanks, zeros, and non-numeric values?
AVERAGEIF ignores empty cells and text values in the average_range, which is usually helpful. However, it does include zeros, since zero is a valid number. This distinction matters in financial or performance data. If zero represents “no data” rather than a real value, you may need to clean or adjust your dataset before averaging.
When should you use AVERAGEIFS instead of AVERAGEIF?
AVERAGEIF is ideal for one condition, but many real-world problems involve multiple filters. For example, you might want the average sales for a specific product in a specific month. That’s when AVERAGEIFS becomes necessary.
AVERAGEIFS uses a similar structure but allows multiple criteria ranges and conditions. If you ever find yourself stacking helper columns or creating complex filters just to calculate an average, it’s usually a sign that AVERAGEIFS is the better tool.
Are there any limitations or platform differences to know about?
Google Sheets AVERAGEIF is very similar to its Excel counterpart, but there are small differences. Google Sheets handles array formulas and dynamic ranges more flexibly, which can reduce the need for helper columns. However, AVERAGEIF cannot directly evaluate results of formulas inside the criterion without workarounds.
Another limitation is that AVERAGEIF does not support logical OR conditions in a single formula. If you need to average values that meet one condition or another, you’ll need to combine formulas or restructure your data.
How is AVERAGEIF used in real-world spreadsheets?
In practice, AVERAGEIF is commonly used in dashboards, reports, and templates. A small business owner might use it to calculate average daily revenue for a specific product category. A student could average quiz scores above a certain threshold to track improvement. Managers often rely on it to summarize performance metrics without exposing raw data.
On Sheetrix, many templates use AVERAGEIF behind the scenes to generate clean summaries from messy input data. Understanding how it works makes those templates easier to customize and trust.







