AVERAGEIF Function in Excel: Syntax, Examples & Practice

Learn the Excel AVERAGEIF function: Averages values meeting one condition. Try focused practice and download a free workbook.

Syntax

=AVERAGEIF(range, criteria, [average_range])

Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.

Worked example

RowA: EmployeeB: CityC: StatusD: CollectionE: NotesF: City criterionG: Status criterion
2AmitMumbaiActive45000MumbaiActive
3PriyaPuneActive62000
4RaviMumbaiClosed38000
5NehaMumbaiActive55000
=AVERAGEIF(B2:B5,"Mumbai",D2:D5)

Expected result: 46000

City, Status and Collection are aligned by row. F2 and G2 contain the helper criteria used in the practice questions.

Professional use

Average performance by branch or employee.

Practice AVERAGEIF · Download practice .xlsx

Apply your skills

Questions and answers

How can I practise AVERAGEIF?

Use the focused ten-question AVERAGEIF lab, then download its workbook for ten additional function-specific tasks and an answer key. Core learning works without an account.

Which Excel version supports AVERAGEIF?

Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.

Does the browser simulator replace Microsoft Excel?

No. It supports a selected set of formula behavior for practice. Native workbook recalculation, full function compatibility, PivotTables and external data features must be checked in your own Excel installation.

Interactive practice runs in your browser.