Skip to content
getgriddy.ai/blog/how-to-use-averageif-in-excel
Excel

How to Use AVERAGEIF in Excel

AVERAGEIF calculates the average of cells that meet one condition. Learn the syntax, practical budget examples, and when to use AVERAGEIFS instead.

·4 min read

Reviewed by Griddy

Updated for current Excel and Google Sheets workflows, with examples chosen to map back to real spreadsheet tasks rather than abstract formula syntax.

AVERAGEIF calculates an average only for rows that meet one condition. Use it when you need the average deal size for one region, the average expense for one category, or the average monthly revenue for a specific channel.

It is the average version of SUMIF: one range gets checked, and Excel averages the matching values.

The syntax

fx
=AVERAGEIF(range, criteria, [average_range])
  • range — the cells Excel checks against the condition
  • criteria — the condition to match
  • [average_range] — the cells to average; if omitted, Excel averages the range itself

Step 1. Average expenses by category

Suppose column A contains expense categories and column B contains amounts. To calculate the average software expense:

fx
=AVERAGEIF(A2:A100, "Software", B2:B100)

This checks categories in A2:A100 and averages the matching amounts in B2:B100.

That pattern works well in an expense tracker when you want to understand whether one category is drifting higher over time.

Step 2. Average values over a threshold

If column B contains deal values, average only deals over $10,000:

fx
=AVERAGEIF(B2:B100, ">10000")

Because there is no separate average range, Excel averages the values in B2:B100 directly.

TIP

Comparison criteria like ">10000" must be wrapped in quotes.

Step 3. Use a cell reference for criteria

If D2 contains the category to review, use:

fx
=AVERAGEIF(A2:A100, D2, B2:B100)

This makes the formula easier to reuse in a summary table. Change the category in D2 and the average updates automatically.

Step 4. Use AVERAGEIFS for multiple criteria

AVERAGEIF handles one condition. If you need category and month, use AVERAGEIFS:

fx
=AVERAGEIFS(C2:C100, A2:A100, "Software", B2:B100, "May")

In that formula, C2:C100 is the range being averaged. The rest of the arguments come in criteria-range and criteria pairs.

This is common in a small business budget when you want average spend by category within one month, quarter, or owner.

Common mistakes

MistakeWhat happensFix
Mismatched range sizes#VALUE! or wrong resultsKeep range and average_range the same shape
Forgetting quotes around operatorsFormula breaksUse ">10000"
Averaging blanks accidentallyResult is lower than expectedClean the source range first
Using AVERAGEIF for two criteriaLogic is incompleteUse AVERAGEIFS

The Griddy way

AVERAGEIF is simple until the sheet grows into multiple months, categories, owners, and exceptions.

"Calculate the average software expense for each month and ignore rows marked as one-time costs"

Griddy chooses the right average formula, applies it to the correct ranges, and keeps the summary tied to the source data.

Skip the manual work

Describe it. Griddy does it.

Instead of writing this formula yourself, just tell Griddy what you need in plain English. Works in Excel and Google Sheets.

Use this on real templates

Average the rows that matter in finance templates

AVERAGEIF is useful when budgets and expense logs need average amounts by category, month, owner, or business line without creating manual summary tables.

Finance