beginner 6 min read

AVERAGE, AVERAGEIF, AVERAGEIFS in Google Sheets

Learn how to use AVERAGE, AVERAGEIF, and AVERAGEIFS in Google Sheets. Covers syntax, conditional averages, multiple criteria, and common errors.

SB

Sheets Bootcamp

February 19, 2026 · Updated November 5, 2026

Reviewed by Ryan

Quick Answer

=AVERAGE(F2:F19) returns the mean of the numbers in a range and skips blank and text cells. In the sample sales data it returns $388.55 across 18 records. To average only rows that meet a condition, use =AVERAGEIF(C2:C19, "Scotland Yard", F2:F19). For several conditions, use AVERAGEIFS, which puts the average range first: =AVERAGEIFS(F2:F19, C2:C19, "Baker Street", E2:E19, ">10").

The AVERAGE function in Google Sheets calculates the arithmetic mean of a range of numbers. AVERAGEIF and AVERAGEIFS extend this by averaging only the values that meet one or more conditions, like the average revenue for a specific region or the average salary above a certain threshold.

This guide covers all three functions: AVERAGE for basic means, AVERAGEIF for single-condition averages, and AVERAGEIFS for multiple criteria.

In This Guide

Syntax and Parameters

AVERAGE

Formula
=AVERAGE(value1, [value2], ...)
ParameterDescriptionRequired
value1A number, cell reference, or rangeYes
value2Additional values or rangesNo

AVERAGEIF

Formula
=AVERAGEIF(criteria_range, criterion, [average_range])
ParameterDescriptionRequired
criteria_rangeThe range to evaluate against the criterionYes
criterionThe condition to match (number, text, or expression)Yes
average_rangeThe range of values to average. If omitted, criteria_range is averagedNo

AVERAGEIFS

Formula
=AVERAGEIFS(average_range, criteria_range1, criterion1, [criteria_range2], [criterion2], ...)
ParameterDescriptionRequired
average_rangeThe range of values to averageYes
criteria_range1The first range to evaluateYes
criterion1The condition for criteria_range1Yes
criteria_range2Additional range to evaluateNo
criterion2The condition for criteria_range2No

Important

AVERAGEIF and AVERAGEIFS have different argument order. In AVERAGEIF, the average_range comes last. In AVERAGEIFS, it comes first. Mixing them up is the most common mistake.

Try it yourself

Question 1 of 3

3 quick questions. No account needed.

In B13, use AVERAGE to find the mean score of every game in D2:D9.

A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Bowler
Team
Week
Score
Dana
Pins
W1
162
Luis
Strikes
W1
188
Kim
Pins
W1
141
Omar
Strikes
W1
205
Dana
Pins
W2
177
Luis
Strikes
W2
159
Kim
Pins
W2
150
Omar
Strikes
W2
196
Team
Week
Average
B13

How to Use AVERAGE: Step-by-Step

We’ll calculate the average revenue from a sales dataset.

1

Select the cell for your result

Click cell F21 below the Revenue column. This is where the average will appear.

Sales data with Revenue column F and an empty cell F21 selected for the formula

2

Enter the AVERAGE formula

Type the formula to average all revenue values:

Formula
=AVERAGE(F2:F19)

AVERAGE formula in cell F21 with formula bar showing =AVERAGE(F2:F19)

3

Review the result

The formula returns $388.55, the mean revenue across all 18 sales records. AVERAGE adds up every value in F2:F19 and divides by 18.

Summary table showing the AVERAGE revenue result of $388.55

AVERAGEIF: Average with One Condition

AVERAGEIF calculates the average of values that meet a single condition. Average revenue for a specific region:

Formula
=AVERAGEIF(C2:C19, "Scotland Yard", F2:F19)

This checks each cell in C2:C19 for “Scotland Yard” and averages the corresponding values in F2:F19. Only the revenue from Scotland Yard sales is included in the calculation.

AVERAGEIF formula result showing average revenue for Scotland Yard region

You can also use comparison operators. Average revenue for sales above 10 units:

Formula
=AVERAGEIF(E2:E19, ">10", F2:F19)

Note

Comparison operators like ">10" and "<>0" must be wrapped in quotes. Without quotes, Google Sheets interprets them as cell references or math operations instead of conditions.

AVERAGEIFS: Average with Multiple Conditions

AVERAGEIFS works like AVERAGEIF but accepts multiple criteria. All conditions must be true for a value to be included.

Average revenue where region is Baker Street AND units are greater than 10:

Formula
=AVERAGEIFS(F2:F19, C2:C19, "Baker Street", E2:E19, ">10")

AVERAGEIFS formula result showing average revenue for Baker Street with more than 10 units

Average salary for employees in Investigations hired after 2018:

Formula
=AVERAGEIFS(F2:F12, C2:C12, "Investigations", D2:D12, ">=1/1/2019")

Each criteria_range/criterion pair narrows the data further. Only rows matching every condition contribute to the average.

Practical Examples

Average Excluding Zeros

Calculate the average of a range while ignoring zero values:

Formula
=AVERAGEIF(F2:F19, "<>0")

When average_range is omitted, AVERAGEIF averages the criteria_range itself. The "<>0" criterion excludes zero-value cells from the calculation.

Average by Salesperson

Average commission earned by Sherlock Holmes:

Formula
=AVERAGEIF(B2:B19, "Sherlock Holmes", G2:G19)

This returns the mean commission across all of Sherlock Holmes’s sales records. Combine with SUMIF to get the total instead.

Weighted Average (Manual)

Google Sheets doesn’t have a WEIGHTEDAVERAGE function. Calculate it with SUMPRODUCT and SUM:

Formula
=SUMPRODUCT(E2:E19, F2:F19) / SUM(E2:E19)

This multiplies each unit count by its revenue, sums the products, then divides by total units, giving a units-weighted average revenue.

Common Errors and How to Fix Them

#DIV/0! Error

No values match the criteria (AVERAGEIF/AVERAGEIFS), or the range contains no numbers (AVERAGE). Check your criterion for typos. If the condition legitimately might match zero rows, wrap in IFERROR: =IFERROR(AVERAGEIF(C2:C19, "North", F2:F19), 0).

#VALUE! Error

The ranges in AVERAGEIFS are different sizes. All criteria_range and average_range arguments must have the same number of rows. Check that your ranges match: F2:F19 (18 rows) paired with C2:C19 (18 rows), not C2:C20 (19 rows).

Tip

Wrap AVERAGEIF in IFERROR when the criteria might match zero rows: =IFERROR(AVERAGEIF(C2:C19, "North", F2:F19), "No data"). This prevents #DIV/0! from appearing in dashboards and reports.

Wrong Result (Includes Text Cells)

AVERAGE ignores text cells, but a cell containing “100” as text (not a number) is skipped. If your average seems too low, check that number cells are formatted as numbers. Select the range and go to Format > Number to verify.

Tips and Best Practices

  1. AVERAGE ignores blanks but includes zeros. An empty cell doesn’t affect the average, but a cell containing 0 does. Use AVERAGEIF with "<>0" when zeros should be excluded.

  2. Use AVERAGEIFS for date ranges. Combine two date criteria: =AVERAGEIFS(F2:F19, A2:A19, ">=1/1/2026", A2:A19, "<=1/31/2026") to average January values only.

  3. Wildcards work in AVERAGEIF. Use * for any characters and ? for a single character: =AVERAGEIF(D2:D19, "Ext*", F2:F19) averages revenue for all products starting with “Ext”.

  4. Pair with COUNTIF for context. Showing an average without the count can be misleading. Display both: “Average: $450 (based on 5 records)” gives the reader confidence in the number.

  5. Use SUBTOTAL for filtered data. =SUBTOTAL(101, F2:F19) averages only visible cells. Regular AVERAGE includes hidden rows, which produces wrong results when filters are active.

FAQ

How do I calculate an average in Google Sheets?

Use =AVERAGE(range) where range is the cells containing numbers. For example, =AVERAGE(B2:B50) returns the arithmetic mean of all numeric values in B2 through B50. The function ignores text and empty cells.

What is the difference between AVERAGE and AVERAGEIF?

AVERAGE calculates the mean of all numbers in a range. AVERAGEIF calculates the mean of only the numbers that meet a specific condition. For example, =AVERAGEIF(A2:A10, “North”, B2:B10) averages values in column B only where column A equals North.

How do I use AVERAGEIFS with multiple criteria?

Use =AVERAGEIFS(average_range, criteria_range1, criterion1, criteria_range2, criterion2). For example, =AVERAGEIFS(F2:F19, C2:C19, “Scotland Yard”, E2:E19, “>10”) averages revenue where region is Scotland Yard AND units are greater than 10.

Does AVERAGE ignore blank cells?

Yes. AVERAGE skips blank cells and text values entirely. A cell containing 0 is included in the calculation, but an empty cell is not. This means blank cells do not lower your average.

How do I average only visible cells in Google Sheets?

Use =SUBTOTAL(101, range) instead of AVERAGE. The SUBTOTAL function with function number 101 calculates the average of only visible cells, ignoring rows hidden by filters.

Why does AVERAGE return #DIV/0!?

The range contains no numeric values. If every cell in the range is blank or text, AVERAGE has nothing to divide and returns #DIV/0!. Check that your range contains at least one number. An error in the range works differently: AVERAGE passes it through, so a range holding #N/A returns #N/A.

Frequently Asked Questions

How do I calculate an average in Google Sheets?
Use =AVERAGE(range) where range is the cells containing numbers. For example, =AVERAGE(B2:B50) returns the arithmetic mean of all numeric values in B2 through B50. The function ignores text and empty cells.
What is the difference between AVERAGE and AVERAGEIF?
AVERAGE calculates the mean of all numbers in a range. AVERAGEIF calculates the mean of only the numbers that meet a specific condition. For example, =AVERAGEIF(A2:A10, "North", B2:B10) averages values in column B only where column A equals North.
How do I use AVERAGEIFS with multiple criteria?
Use =AVERAGEIFS(average_range, criteria_range1, criterion1, criteria_range2, criterion2). For example, =AVERAGEIFS(F2:F19, C2:C19, "Scotland Yard", E2:E19, ">10") averages revenue where region is Scotland Yard AND units are greater than 10.
Does AVERAGE ignore blank cells?
Yes. AVERAGE skips blank cells and text values entirely. A cell containing 0 is included in the calculation, but an empty cell is not. This means blank cells do not lower your average.
How do I average only visible cells in Google Sheets?
Use =SUBTOTAL(101, range) instead of AVERAGE. The SUBTOTAL function with function number 101 calculates the average of only visible cells, ignoring rows hidden by filters.
Why does AVERAGE return #DIV/0!?
The range contains no numeric values. If every cell in the range is blank or text, AVERAGE has nothing to divide and returns #DIV/0!. Check that your range contains at least one number. An error in the range works differently: AVERAGE passes it through, so a range holding #N/A returns #N/A.

You read it. Now type it.

Unit 1 of the course is free: 6 short lessons in a grid that checks every formula. They teach the Google Sheets skills you'll actually use.

Start the course free

First 6 lessons free. No card needed. See plans

Keep going

Continue learning

Unit 2 is next. Get full access

Practice this in the app

Continue learning

Spot an error on this page? Tell us.

First 6 lessons free. No credit card required.

Start the course free
Continue learning

Cookie policy · Privacy policy