---
title: "AVERAGEIFS function in Excel: syntax and examples | PracticeExcel"
description: "How to use AVERAGEIFS in Excel and Google Sheets: average the rows that match several conditions."
canonical_url: "https://practiceexcelonline.com/functions/averageifs"
locale: en
meta:
  "og:description": "How to use AVERAGEIFS in Excel and Google Sheets: average the rows that match several conditions."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QVZFUkFHRUlGUyBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBBVkVSQUdFSUZTIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBhdmVyYWdlIHRoZSByb3dzIHRoYXQgbWF0Y2ggc2V2ZXJhbCBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~QVZFUkFHRUlGUyhhdmVyYWdlX3JhbmdlLCBjcml0ZXJpYV9yYW5nZTEsIGNyaXRlcmlhMSwgW2NyaXRlcmlhX3JhbmdlMiwgY3JpdGVyaWEyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvYXZlcmFnZWlmcyI%2Cs_CJ01sOgPjFtIFk46.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "AVERAGEIFS function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QVZFUkFHRUlGUyBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBBVkVSQUdFSUZTIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBhdmVyYWdlIHRoZSByb3dzIHRoYXQgbWF0Y2ggc2V2ZXJhbCBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~QVZFUkFHRUlGUyhhdmVyYWdlX3JhbmdlLCBjcml0ZXJpYV9yYW5nZTEsIGNyaXRlcmlhMSwgW2NyaXRlcmlhX3JhbmdlMiwgY3JpdGVyaWEyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvYXZlcmFnZWlmcyI%2Cs_CJ01sOgPjFtIFk46.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **The AVERAGEIFS function**

Returns the average of the cells that meet every one of several conditions. The average range comes first.

=

AVERAGEIFS(

## **Syntax**

```
AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
```

<dl><dt>**average_range **</dt>
<dd>The cells to average.</dd>
<dt>**criteria_range1 **</dt>
<dd>The cells the first condition is checked against.</dd>
<dt>**criteria1 **</dt>
<dd>The first condition.</dd>
<dt>**criteria_range2, criteria2 **(optional)</dt>
<dd>More range and condition pairs.</dd></dl>

## **Examples**

E1`=AVERAGEIFS(<sup>1</sup>C2:C6,<sup>2</sup>A2:A6,<sup>3</sup>"North",<sup>4</sup>B2:B6,<sup>5</sup>"Shoes")`

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | **460** |
| 2 | North | Shoes | 500 |  | |
| 3 | South | Shoes | 300 |  | |
| 4 | North | Bags | 250 |  | |
| 5 | North | Shoes | 420 |  | |
| 6 | South | Bags | 180 |  | |

**In plain words:** Average the <sup>1</sup>sales in C2:C6 on the rows where <sup>2</sup>the region in A2:A6 is <sup>3</sup>North and <sup>4</sup>the product in B2:B6 is <sup>5</sup>Shoes.

E1=AVERAGEIFS(C2:C6,A2:A6,"South",C2:C6,">0")

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | **240** |
| 2 | North | Shoes | 500 |  | |
| 3 | South | Shoes | 300 |  | |
| 4 | North | Bags | 250 |  | |
| 5 | North | Shoes | 420 |  | |
| 6 | South | Bags | 180 |  | |

## **Practice AVERAGEIFS**

- [**1****Average with two conditions with AVERAGEIFS**→](https://practiceexcelonline.com/practice/averageif/averageifs-two-conditions)

## **Related functions**

- [**AVERAGEIF**](https://practiceexcelonline.com/functions/averageif)
- [**SUMIFS**](https://practiceexcelonline.com/functions/sumifs)
- [**COUNTIFS**](https://practiceexcelonline.com/functions/countifs)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/functions/averageifs#webpage","@type":"WebPage","description":"How to use AVERAGEIFS in Excel and Google Sheets: average the rows that match several conditions.","name":"AVERAGEIFS function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/averageifs","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/averageifs#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/averageifs"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/averageifs#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"AVERAGEIFS function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/averageifs#article","description":"How to use AVERAGEIFS in Excel and Google Sheets: average the rows that match several conditions.","headline":"AVERAGEIFS function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QVZFUkFHRUlGUyBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBBVkVSQUdFSUZTIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBhdmVyYWdlIHRoZSByb3dzIHRoYXQgbWF0Y2ggc2V2ZXJhbCBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~QVZFUkFHRUlGUyhhdmVyYWdlX3JhbmdlLCBjcml0ZXJpYV9yYW5nZTEsIGNyaXRlcmlhMSwgW2NyaXRlcmlhX3JhbmdlMiwgY3JpdGVyaWEyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvYXZlcmFnZWlmcyI%2Cs_CJ01sOgPjFtIFk46.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/averageifs#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/averageifs#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QVZFUkFHRUlGUyBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBBVkVSQUdFSUZTIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBhdmVyYWdlIHRoZSByb3dzIHRoYXQgbWF0Y2ggc2V2ZXJhbCBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~QVZFUkFHRUlGUyhhdmVyYWdlX3JhbmdlLCBjcml0ZXJpYV9yYW5nZTEsIGNyaXRlcmlhMSwgW2NyaXRlcmlhX3JhbmdlMiwgY3JpdGVyaWEyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvYXZlcmFnZWlmcyI%2Cs_CJ01sOgPjFtIFk46.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QVZFUkFHRUlGUyBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBBVkVSQUdFSUZTIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBhdmVyYWdlIHRoZSByb3dzIHRoYXQgbWF0Y2ggc2V2ZXJhbCBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~QVZFUkFHRUlGUyhhdmVyYWdlX3JhbmdlLCBjcml0ZXJpYV9yYW5nZTEsIGNyaXRlcmlhMSwgW2NyaXRlcmlhX3JhbmdlMiwgY3JpdGVyaWEyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvYXZlcmFnZWlmcyI%2Cs_CJ01sOgPjFtIFk46.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
