New: ready-to-use spreadsheet templatesExplore the collection  →
Home/Formulas/AVERAGEIF
MATH & AGGREGATION · GOOGLE SHEETS

AVERAGEIF
average values that match one condition.

Use AVERAGEIF to find the average paid invoice. This guide shows the exact structure, a working example and the mistakes most likely to break it.

JosephineVerified by JosephineReviewed July 25, 2026
THE FORMULA=AVERAGEIF(criteria_range, criterion, [average_range])
A

criteria_rangecells to test

B

criterionrequired match

C

average_rangevalues to average

TRY IT YOURSELF

Change the sheet.
Watch the answer update.

Edit any highlighted cell below. The example recalculates immediately.

LIVE PLAYGROUND=AVERAGEIF(A2:A8, "Paid", B2:B8)
fx=AVERAGEIF(A2:A8, "Paid", B2:B8)
A · LABELB · VALUE
2
3
4
5
RESULT90Updates live

Try changing a value above. This example runs entirely in your browser.

IN PLAIN ENGLISH

How the formula
thinks.

  1. 01

    criteria_rangecells to test

  2. 02

    criterionrequired match

  3. 03

    average_rangevalues to average

COMMON FIXES

When AVERAGEIF
doesn’t behave.

WRONG RESULT

Wrong result

Check that every range starts and ends on the same rows, and that numbers are stored as numbers.

FORMULA PARSE ERROR

Formula parse error

Check commas, quotation marks and closing parentheses. Your locale may use semicolons instead of commas.

UNEXPECTED BLANKS

Unexpected blanks

Test the source cells for hidden spaces, empty strings and inconsistent data types.

fxNeed help with AVERAGEIF?Fix my formula →