Google Sheets AVERAGEIFS Function

Last Updated : 23 Jul, 2025

Handling large datasets often requires tools that can provide specific insights, and the AVERAGEIFS function in Google Sheets is an excellent option for targeted data analysis. This function calculates the average of values that meet multiple criteria, making it especially useful for complex scenarios like evaluating trends or comparing data points across various categories. In this guide, we’ll explore how the AVERAGEIFS function works, its syntax, and tips to maximize its utility in Google Sheets.

Google Sheets AVERAGEIFS Function

The AVERAGEIFS function in Google Sheets calculates the average of a range of numbers based on multiple criteria. It is ideal for filtering and analyzing data when you need to apply more than one condition, such as average sales for a specific region and date range simultaneously.

How It Works

  • Define the range to average (the target data you want to calculate the mean for).
  • Specify one or more criteria ranges to evaluate.
  • Provide the conditions that the values in the criteria ranges must meet.
  • The function applies all the criteria and computes the average of the values that match every condition.

Google Sheets AVERAGEIFS Function Syntax

Below is the syntax of the AVERAGEIFS Function in Google Sheets:

AVERAGEIFS(average_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])
  • average_range: The range containing numbers to average.
  • criteria_range1, criteria_range2, ...: Ranges to test against the conditions.
  • criterion1, criterion2, ...: Conditions the values must satisfy (e.g., ">50", "East").

How to use the AVERAGEIFS Google Sheets Formula

To apply AVERAGEIFS formula in the Google Sheets follow the steps given below:

Step 1: Select the Cell for the Result

Choose the cell where you want the average result to appear, e.g., D2.

Google Sheets AVERAGEIFS Function
Select the Cell

Step 2: Identify the Data Ranges

Determine the following:

  • Average Range: The range containing the numbers you want to average (e.g., B2:B10 for sales).
  • Criteria Ranges: The ranges to apply conditions (e.g., A2:A10 for regions and C2:C10 for products).

Step 3: Define the Criteria

Decide the conditions for filtering your data:

  • First Criteria: Region equals "North" for the range A2:A10.
  • Second Criteria: Product equals "Widget" for the range C2:C10.

Step 4: Write the AVERAGEIFS Formula

In the selected cell (e.g., D2), type the formula:

=AVERAGEIFS(B2:B10, A2:A10, "North", C2:C10, "Widget")
  • B2:B10: The range to average.
  • A2:A10, "North": The first criteria range and its condition.
  • C2:C10, "Widget": The second criteria range and its condition.
Google Sheets AVERAGEIFS Function
Enter the AVERAGEIFS Formula

Step 5: Press Enter

Press Enter to apply the formula. The cell will display the average of the values in B2:B10 that meet both conditions ("North" in A2:A10 and "Widget" in C2:C10).

Google Sheets AVERAGEIFS Function
Press Enter

Tips for Using AVERAGEIFS in Google Sheets

1. Case Sensitivity: AVERAGEIFS is not case-sensitive for text criteria.

2. Multiple Criteria: You can add more criteria ranges and conditions by extending the formula:

=AVERAGEIFS(B2:B10, A2:A10, "North", C2:C10, "Widget", D2:D10, ">100")

3. Handling Errors: If no data matches the criteria, the formula returns #DIV/0!. Use IFERROR to handle it:

=IFERROR(AVERAGEIFS(B2:B10, A2:A10, "North", C2:C10, "Widget"), "No matching data")

Also Read:

Conclusion

The AVERAGEIFS function in Google Sheets is an essential feature for analyzing data with multiple conditions. By applying this function effectively, you can focus on specific subsets of data, allowing for more meaningful insights and improved decision-making. With a clear understanding of its syntax and practical examples, you can harness the full potential of this tool for both simple and advanced data analysis needs.

Comment