Excel AVERAGEIFS Formula: Averaging Sales with Multiple Criteria

📅 Oct 13, 2026 📝 Sarah Miller

Manually segmenting sales data to find precise averages across multiple variables can be an administrative bottleneck. When preparing performance metrics for standard funding sources, such as traditional bank loans or private investors, data accuracy is paramount. Utilizing the AVERAGEIFS formula grants financial leaders the ability to isolate and evaluate specific revenue streams instantly. Under the stipulation that all criteria ranges are identically sized, this tool seamlessly handles complex scenarios, such as averaging Q3 sales for specific regional divisions. Below, we provide the step-by-step formula syntax and practical application methods to streamline your reporting.

Excel AVERAGEIFS Formula: Averaging Sales with Multiple Criteria

Excel Formula to Average Sales with Multiple Criteria

In data analysis, calculating a simple average often only tells half the story. If you are managing a sales team, tracking retail performance, or analyzing e-commerce transactions, you frequently need to dig deeper. You don't just want to know your average sales; you want to know your average sales for a specific region, during a specific quarter, for a specific product line.

Fortunately, Microsoft Excel provides a robust, built-in function designed exactly for this purpose: AVERAGEIFS. This tutorial will guide you step-by-step through mastering the AVERAGEIFS formula, handling complex multi-criteria scenarios, dealing with dates, and troubleshooting common errors.

The Powerhouse: Understanding the AVERAGEIFS Function

The AVERAGEIFS function calculates the average (arithmetic mean) of all cells that meet multiple, user-defined conditions. It is important to distinguish this from the singular AVERAGEIF function, which only allows for a single condition.

The Syntax

To use AVERAGEIFS effectively, you must understand its exact syntax structure:

=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
  • average_range: (Required) The actual group of cells you want to average. This must contain numbers, as text and empty cells are ignored.
  • criteria_range1: (Required) The first range of cells that Excel will evaluate against your first condition.
  • criteria1: (Required) The condition or criteria that defines which cells in criteria_range1 will be included. It can be a number, expression, cell reference, or text.
  • criteria_range2, criteria2, ...: (Optional) Additional ranges and their associated criteria. You can add up to 127 range/criteria pairs.
Important Rule: Unlike AVERAGEIF, where the range to average comes last, in AVERAGEIFS, the average_range always comes first. Additionally, every criteria range must be the exact same size and shape as the average_range.

Setting Up Our Sample Dataset

To illustrate these formulas in action, we will use the following sales database. This table tracks sales transactions across different dates, sales representatives, regions, products, and total revenues.

Row A (Date) B (Sales Rep) C (Region) D (Product) E (Revenue)
2 2023-01-15 Sarah North Widget A $1,200
3 2023-01-18 John South Widget B $850
4 2023-02-05 Sarah North Widget B $2,100
5 2023-02-12 Michael East Widget A $1,500
6 2023-03-01 Sarah North Widget A $1,800
7 2023-03-10 John South Widget A $950
8 2023-03-22 Michael East Widget B $3,200
9 2023-04-05 Sarah North Widget B $1,400

Example 1: Averaging Sales by Region and Product (Text Criteria)

Let's say we want to find the average revenue generated specifically by Sarah in the North region.

To write this formula:

  1. Identify the range to average: Revenue is in E2:E9.
  2. Identify the first criteria range and criteria: Sales Reps are in B2:B9, and we want "Sarah".
  3. Identify the second criteria range and criteria: Regions are in C2:C9, and we want "North".
=AVERAGEIFS(E2:E9, B2:B9, "Sarah", C2:C9, "North")

How it works: Excel looks down columns B and C. It identifies rows 2, 4, 6, and 9 as matching "Sarah" and "North". It then takes the corresponding values from Column E ($1,200, $2,100, $1,800, and $1,400) and calculates their average, returning $1,625.

Example 2: Using Logical Operators and Date Ranges

Often, criteria aren't just exact text matches; they require logical evaluations like "greater than" (>), "less than" (<), or date range constraints.

Suppose we want to find the average sales revenue for transactions that occurred after February 1, 2023, and were greater than $1,000.

When writing logical expressions in Excel formulas, you must enclose the comparison operators in double quotation marks.

=AVERAGEIFS(E2:E9, A2:A9, ">2023-02-01", E2:E9, ">1000")

Pro Tip (Cell Referencing): Hardcoding dates and numbers into your formulas makes your spreadsheets rigid. Instead, you can reference other cells. If your target date is in cell G1 and target minimum revenue is in cell G2, construct the formula using the concatenation operator (&):

=AVERAGEIFS(E2:E9, A2:A9, ">"&G1, E2:E9, ">"&G2)

Example 3: Excluding Specific Criteria (Not Equal To)

In some analytical scenarios, it is easier to define what you don't want to include. To exclude a specific criterion, use the "not equal to" operator (<>).

For instance, if you want to find the average sales across all regions excluding the North region, for the product Widget B:

=AVERAGEIFS(E2:E9, C2:C9, "<>North", D2:D9, "Widget B")

Excel will evaluate this by looking for rows that do not contain "North" in Column C and do contain "Widget B" in Column D (Rows 3 and 8), averaging $850 and $3,200 to return $2,025.

Example 4: Using Wildcards for Partial Matches

If you need to average sales based on flexible text criteria, Excel allows the use of wildcards:

  • The asterisk (*) represents any number of characters.
  • The question mark (?) represents a single character.

If you have products named "Widget A", "Widget B", and "Super Widget", and you want to average all types of "Widgets" sold by Sarah:

=AVERAGEIFS(E2:E9, B2:B9, "Sarah", D2:D9, "*Widget*")

Troubleshooting Common AVERAGEIFS Errors

Even seasoned Excel users run into errors when constructing complex multi-criteria formulas. Here is how to diagnose and fix the most common issues:

1. The dreaded #DIV/0! Error

This error occurs when no records in your dataset meet all specified criteria. Because Excel cannot divide by zero, it returns this error. You can eleganty handle this by wrapping your formula in an IFERROR function:

=IFERROR(AVERAGEIFS(E2:E9, B2:B9, "Sarah", C2:C9, "West"), "No Sales Found")

Instead of displaying an ugly error code, Excel will now display "No Sales Found" if the criteria are not met.

2. The #VALUE! Error

This occurs when your criteria ranges are not perfectly aligned with your average range. For example, if your average range is E2:E9 (8 rows) but your criteria range is B2:B10 (9 rows), Excel will fail to calculate and output a #VALUE! error. Ensure all ranges span the exact same row/column boundaries.

The Modern Alternative: AVERAGE & FILTER (Office 365)

If you are using modern Excel (Office 365 or Excel 2021+), you have access to dynamic arrays. You can combine the AVERAGE and FILTER functions to achieve the same results with an alternative, highly readable syntax:

=AVERAGE(FILTER(E2:E9, (B2:B9="Sarah") * (C2:C9="North")))

In this formula, the multiplication asterisk (*) acts as an AND operator. This method is incredibly powerful because it allows you to easily perform complex logical operations (like OR logic, using addition +) that traditional AVERAGEIFS cannot natively handle.

Conclusion

Averaging sales with multiple criteria is a core skill for any business analyst. By mastering the AVERAGEIFS function and understanding how to apply wildcards, cell references, and logical operators, you can quickly transform large, complex tables of transactional data into clean, actionable business intelligence.

Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.