AVERAGEIF and AVERAGEIFS: Conditional Averages Explained

AVERAGEIF and AVERAGEIFS in Excel turn a plain average into a focused answer by averaging only the rows that meet your conditions. Average sales per month, average order value, average salary per department. But simple AVERAGE quickly becomes inadequate. “Average sales” is useful, but “average sales for the North region where the order was delivered” is what real reports actually need.

That is where AVERAGEIF and AVERAGEIFS come in. They calculate averages based on one or more conditions, without needing helper columns or complex array formulas. Once you learn them, you will find yourself using them in every report.

In this article, I will explain both functions, walk through practical examples, and share the small details that make them reliable. Averages are simple until you need to filter them — then these functions become essential. Once you start using AVERAGEIF and AVERAGEIFS in Excel, you will wonder how you reported without them.

AVERAGEIF and AVERAGEIFS in Excel

What Is AVERAGEIF?

AVERAGEIF returns the average of a range where a single condition is met. The syntax is:

=AVERAGEIF(range, criteria, [average_range])

  • range: the cells to check
  • criteria: the condition
  • average_range: the cells to average (optional — defaults to range)

Example:

=AVERAGEIF(B2:B100, “North”, D2:D100)

This averages values in D2:D100 where B2:B100 equals “North”.

The third argument is optional. If omitted, the function averages the criteria range itself. That is rarely what you want, but it is useful when the criteria range and the average range are the same. That is the kind of detail that makes AVERAGEIF and AVERAGEIFS in Excel reliable in real reports.

What Is AVERAGEIFS?

AVERAGEIFS returns the average of a range where multiple conditions are met. The syntax is:

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

Notice that the average range comes first in AVERAGEIFS, unlike AVERAGEIF where it comes last. This is a common source of errors. If you mix them up, the formula either errors or returns wrong results.

Example:

=AVERAGEIFS(D2:D100, B2:B100, “North”, C2:C100, “Delivered”)

This averages values in D2:D100 where B2:B100 is “North” AND C2:C100 is “Delivered”.

The Main Difference

AVERAGEIF handles one condition.

AVERAGEIFS handles multiple conditions.

AVERAGEIF argument order: range, criteria, average_range

AVERAGEIFS argument order: average_range, range1, criteria1, range2, criteria2, …

This difference in argument order trips up even experienced users. Get used to it by using AVERAGEIFS for all conditional averages — it can handle one condition too, and the argument order stays consistent. Keep that order in mind, and AVERAGEIF and AVERAGEIFS in Excel will soon feel natural.

Practical Example: Average Salary by Department

You have an employee table:

A: Name, B: Department, C: Salary

To get the average salary in Sales:

=AVERAGEIF(B2:B100, “Sales”, C2:C100)

To get the average salary in Sales for employees with more than 3 years tenure (assuming tenure is in column D):

=AVERAGEIFS(C2:C100, B2:B100, “Sales”, D2:D100, “>3”)

This is the standard pattern. AVERAGEIF for one filter, AVERAGEIFS for two or more. — the core idea behind AVERAGEIF and AVERAGEIFS in Excel.

Practical Example: Average Order Value by Region and Status

You have an order table with Region, Status, and Order Value.

Average order value for North:

=AVERAGEIF(A2:A1000, “North”, C2:C1000)

Average order value for North with status “Delivered”:

=AVERAGEIFS(C2:C1000, A2:A1000, “North”, B2:B1000, “Delivered”)

Average order value for North, Delivered, where order value is above 5000:

=AVERAGEIFS(C2:C1000, A2:A1000, “North”, B2:B1000, “Delivered”, C2:C1000, “>5000”)

Each formula asks a slightly more specific question. This is how real reporting works: you start general, then add conditions until you get the insight you need. with AVERAGEIF and AVERAGEIFS in Excel.

Using Cell References as Criteria

Hardcoding criteria works for one-off reports. Cell references make the formula reusable.

Instead of:

=AVERAGEIF(B2:B100, “North”, C2:C100)

Use:

=AVERAGEIF(B2:B100, F2, C2:C100)

Where F2 contains “North”. Change F2 to “South” and the average updates.

For multiple criteria with references:

=AVERAGEIFS(D2:D100, B2:B100, F2, C2:C100, G2)

This pattern is the foundation of interactive dashboards. Users pick values from dropdowns, and the averages update.

Criteria with Operators

AVERAGEIF and AVERAGEIFS accept comparison operators in the criteria:

“>1000” — greater than 1000

“<=500” — less than or equal to 500

“<>North” — not equal to North

For dates:

“>=”&DATE(2026,1,1)

“<=”&DATE(2026,12,31)

For wildcards:

“*Pro*” — contains “Pro”

Example: Average sales for orders above 10,000:

=AVERAGEIF(D2:D100, “>10000”, D2:D100)

Since the criteria range and average range are the same, you can omit the third argument:

=AVERAGEIF(D2:D100, “>10000”)

Example: Average salary for employees whose name starts with “A”:

=AVERAGEIF(A2:A100, “A*”, C2:C100)

The asterisk matches any characters, so “Amit”, “Anita”, “Arjun” all match.

Averaging with Date Ranges

Dates in AVERAGEIFS are powerful for reporting. That is why AVERAGEIF and AVERAGEIFS in Excel are a staple of monthly reports.

Average sales in January 2026:

=AVERAGEIFS(D2:D100, A2:A100, “>=”&DATE(2026,1,1), A2:A100, “<=”&DATE(2026,1,31))

Average sales for orders in the last 30 days:

=AVERAGEIFS(D2:D100, A2:A100, “>=”&TODAY()-30)

The second formula uses TODAY() so it stays current. Every day, the average shows the last 30 days without manual adjustment.

Averaging with Multiple Criteria Ranges

AVERAGEIFS can handle many conditions. Each condition adds a range and criteria pair.

Average sales where:

  • Region is North
  • Status is Delivered
  • Order value is above 5,000
  • Order date is in 2026

=AVERAGEIFS(D2:D100, B2:B100, “North”, C2:C100, “Delivered”, D2:D100, “>5000”, A2:A100, “>=”&DATE(2026,1,1), A2:A100, “<=”&DATE(2026,12,31))

The formula is long but readable. Each condition is a pair: a range and a criteria. That structure is what makes AVERAGEIF and AVERAGEIFS in Excel easy to audit.

If the formula is becoming hard to read, consider using named ranges. It makes the formula shorter and clearer:

=AVERAGEIFS(Revenue, Region, “North”, Status, “Delivered”, Revenue, “>5000”)

Try It on Your Own Data

The best way to make these functions stick is to use them on a table you already have. Open any sheet with a category column and a numbers column — sales by region, expenses by month, marks by subject. AVERAGEIF and AVERAGEIFS in Excel work on any of these tables.

Start with one question you actually care about, such as the average order value for your best region. Write the AVERAGEIF formula with the region typed directly in the formula, then check the answer by filtering the table by hand and comparing. If the numbers do not match, the mismatch usually comes from the range or the spelling of the criteria, and finding it teaches you more than getting it right the first time.

Next, add a second condition with AVERAGEIFS — the same region, but only delivered orders. Notice how the average range moves to the front of the formula. Type it slowly, one pair at a time: a range, then its criteria, then the next range, then its criteria.

Now make the criteria live. Put the region in a separate cell and point the formula at it, then change the cell value and watch the average update. Try a date range too, using the DATE function for a single month.

Finally, build a small summary table: list each category in one column and an AVERAGEIF formula beside each one, copying it down the list. In fifteen minutes you will have a report you can reuse every month — and conditional averages will feel like a habit.

Averaging with OR Logic

AVERAGEIFS uses AND logic. Every condition must be true. For OR logic, you have to combine formulas:

=(SUMIF(B2:B100,”North”,D2:D100) + SUMIF(B2:B100,”South”,D2:D100)) / (COUNTIF(B2:B100,”North”) + COUNTIF(B2:B100,”South”))

This calculates total revenue for both regions, then divides by the count. The result is the average across both.

Alternatively, use SUMPRODUCT or FILTER with AVERAGE:

=AVERAGE(FILTER(D2:D100, (B2:B100=”North”)+(B2:B100=”South”)))

The FILTER approach is cleaner in Excel 365. It filters all North or South rows, then AVERAGEs them. One formula, one clear result.

Practical Example: Average Delivery Time

You have a delivery log with: Order Date, Dispatch Date, Delivery Date, Region.

Average delivery time for North:

=AVERAGEIF(B2:B100, “North”, C2:C100) – AVERAGEIF(B2:B100, “North”, A2:A100)

Or, if you have a calculated days column:

=AVERAGEIF(B2:B100, “North”, E2:E100)

The second approach is cleaner. Always calculate days in a separate column, then average that column with AVERAGEIF.

For North in Q1 2026:

=AVERAGEIFS(E2:E100, B2:B100, “North”, A2:A100, “>=”&DATE(2026,1,1), A2:A100, “<=”&DATE(2026,3,31))

This is a real reporting question and a real answer — one line, no helper columns. — that is the payoff of AVERAGEIF and AVERAGEIFS in Excel.

Practical Example: Average Score by Category

You have exam scores with Category and Score columns.

Average score for each category, shown in a summary table:

Category in F2:F5 (Science, Maths, English, History)

Average formula in G2: =AVERAGEIF($B$2:$B$100, F2, $C$2:$C$100)

Copy down.

Each category gets its own average. The $ signs lock the ranges so they do not shift when copied. This is a standard summary table pattern. — one you will reuse often with AVERAGEIF and AVERAGEIFS in Excel.

AVERAGEIF vs AVERAGE vs AVERAGEA

AVERAGE averages all numbers in a range.

AVERAGEIF averages numbers that meet a condition.

AVERAGEIFS averages numbers that meet multiple conditions.

AVERAGEA treats text as zero (rarely what you want).

For daily reporting, AVERAGEIF and AVERAGEIFS are the functions worth knowing. That is why AVERAGEIF and AVERAGEIFS in Excel belong in every analyst’s toolkit.

Frequently Asked Questions

What is the difference between AVERAGEIF and AVERAGEIFS?

AVERAGEIF handles one condition, AVERAGEIFS handles multiple. AVERAGEIFS argument order is different: average_range comes first.

Can I use AVERAGEIF with dates?

Yes. Use the DATE function in the criteria, like “>=”&DATE(2026,1,1).

Why does my AVERAGEIF return #DIV/0!?

No rows match the criteria. Wrap with IFERROR to display a friendlier message.

Can AVERAGEIFS handle OR logic?

Not directly. Use two SUMIFs divided by two COUNTIFs, or use FILTER with AVERAGE in Excel 365.

Does AVERAGEIF ignore blanks?

Yes. Blanks in the average range are ignored, which is usually what you want.

Can I average with multiple criteria across multiple sheets?

Yes. Reference each sheet separately or consolidate the data first. The function works across sheets if ranges are explicit.

Related guide: SUMIF vs SUMIFS

Related guide: COUNTIF vs COUNTIFS

Final Thoughts

AVERAGEIF and AVERAGEIFS turn a simple average into a real analysis. Instead of one number for the whole dataset, you get averages per region, per status, per time period. This is how reports start to tell stories. The functions are easy to learn but the argument order trips people up — remember that AVERAGEIFS starts with the average range. Once you get that right, these functions become second nature. Use them alongside SUMIFS and COUNTIFS, and you have the full conditional toolkit for any business report. That is the real value of AVERAGEIF and AVERAGEIFS in Excel.

Leave a Comment