Our Service


In this comprehensive guide, we will explore everything you need to know about the AVERAGEIFS function in Excel. AVERAGEIFS is a powerful formula that allows you to calculate the average of a range of cells based on multiple criteria. This function is particularly useful when you need to analyze large datasets and find the average value for a specific subset of data. We will cover the syntax, examples, tips and tricks, common mistakes, troubleshooting, and related formulae for the AVERAGEIFS function.


The AVERAGEIFS function has the following syntax:

=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)

Here’s a breakdown of the arguments:

  • average_range: This is the range of cells that you want to calculate the average for. It is required.
  • criteria_range1: This is the first range of cells that you want to apply the criteria to. It is required.
  • criteria1: This is the first condition that must be met for a cell to be included in the average calculation. It is required.
  • criteria_range2, criteria2, …: These are additional ranges and criteria that can be applied to further filter the data. They are optional and can be added as needed.


Let’s look at some examples of how to use the AVERAGEIFS function in Excel:

Example 1: You have a dataset with sales data for different products and regions. You want to calculate the average sales for Product A in the North region. Assuming the sales data is in column C, product names are in column A, and regions are in column B, you can use the following formula:

=AVERAGEIFS(C1:C100, A1:A100, “Product A”, B1:B100, “North”)

Example 2: You have a dataset with test scores for students in different classes and subjects. You want to find the average test score for students in Class 1 who scored above 80 in Math. Assuming test scores are in column D, class names are in column A, subjects are in column B, and student names are in column C, you can use the following formula:

=AVERAGEIFS(D1:D100, A1:A100, “Class 1”, B1:B100, “Math”, D1:D100, “>80”)

AVERAGEIFS Tips & Tricks

Here are some tips and tricks to help you get the most out of the AVERAGEIFS function:

  1. Use wildcards in your criteria to match partial text. For example, use “*A” to match any text ending with “A” or “A*” to match any text starting with “A”.
  2. Use logical operators like “=”, “<“, “>”, “<=”, “>=”, and “<>” in your criteria to specify conditions based on numeric values or dates.
  3. Combine AVERAGEIFS with other functions like SUMIFS and COUNTIFS to perform more complex calculations based on multiple criteria.
  4. Use named ranges to make your formulas easier to read and maintain.

Common Mistakes When Using AVERAGEIFS

Here are some common mistakes to avoid when using the AVERAGEIFS function:

  1. Not using the same size ranges for all criteria ranges and the average range. This will result in a #VALUE! error.
  2. Using incorrect logical operators or wildcards in your criteria. This can lead to unexpected results or errors.
  3. Forgetting to include all required arguments in the formula.
  4. Not using absolute cell references when copying the formula to other cells. This can cause the ranges to shift and produce incorrect results.

Why Isn’t My AVERAGEIFS Working?

If your AVERAGEIFS formula isn’t working as expected, consider the following troubleshooting steps:

  1. Check for any errors in the formula, such as incorrect cell references, missing arguments, or incorrect syntax.
  2. Ensure that all criteria ranges and the average range are the same size.
  3. Verify that your criteria are correctly specified, including the use of logical operators and wildcards.
  4. Make sure that your data is formatted consistently, especially when working with dates or text.
  5. Double-check your data for any errors or inconsistencies that may be affecting the results.

AVERAGEIFS: Related Formulae

Here are some related formulae that you might find useful when working with the AVERAGEIFS function:

  1. AVERAGEIF: This function calculates the average of a range based on a single criterion. It has a simpler syntax than AVERAGEIFS, but is less versatile.
  2. SUMIFS: This function calculates the sum of a range based on multiple criteria, similar to AVERAGEIFS but for summation instead of averaging.
  3. COUNTIFS: This function counts the number of cells in a range that meet multiple criteria, which can be useful for determining the number of data points included in an AVERAGEIFS calculation.
  4. MAXIFS: This function returns the maximum value in a range based on multiple criteria, allowing you to find the highest value that meets your conditions.
  5. MINIFS: This function returns the minimum value in a range based on multiple criteria, allowing you to find the lowest value that meets your conditions.

By mastering the AVERAGEIFS function and its related formulae, you can perform powerful data analysis and calculations in Excel. With this comprehensive guide, you should now have a solid understanding of how to use AVERAGEIFS effectively and avoid common mistakes.


Did you find this article useful?

Share it with your friends or colleagues

About Aepoch Advisors

We are a boutique accounting and consulting firm servicing international businesses operating in China. We offers book keeping and business advisory service. We also help our clients select and implement SAAS business applications
Cloud technology significantly reduces cost foreign companies traditionally spent on tax compliance and ERP systems. Our cloud professionals can help with streamlining your management and controling structure, as well as advising you on how to reduce risks and maximize profits with software purposely built for Chinese business. Contact us today to learn more about our services.