Average one group
| A | B | C | |
|---|---|---|---|
| 1 | Name | Group | Score |
| 2 | Ana | A | 72 |
| 3 | Ben | B | 88 |
| 4 | Cara | A | 91 |
| 5 | Dan | B | 65 |
| 6 | Eli | A | 84 |
Formula: E2: =ROUND(AVERAGEIFS(C2:C6,B2:B6,"A"),2)
Result: 82.33
Group A scores 72, 91 and 84 average to 247/3, rounded to two decimals.
AVERAGEIFS with worked examples you can test in the live grid. The argument details are in the Excel guide.
The arguments and common errors are covered in the AVERAGEIFS Excel guide; check the function help in Google Sheets for its own argument list.
| A | B | C | |
|---|---|---|---|
| 1 | Name | Group | Score |
| 2 | Ana | A | 72 |
| 3 | Ben | B | 88 |
| 4 | Cara | A | 91 |
| 5 | Dan | B | 65 |
| 6 | Eli | A | 84 |
Formula: E2: =ROUND(AVERAGEIFS(C2:C6,B2:B6,"A"),2)
Result: 82.33
Group A scores 72, 91 and 84 average to 247/3, rounded to two decimals.
| A | B | C | |
|---|---|---|---|
| 1 | Name | Group | Score |
| 2 | Ana | A | 72 |
| 3 | Ben | B | 88 |
| 4 | Cara | A | 91 |
| 5 | Dan | B | 65 |
| 6 | Eli | A | 84 |
Formula: E2: =AVERAGEIFS(C2:C6,B2:B6,"A",C2:C6,">80")
Result: 87.5
Only 91 and 84 satisfy both conditions.
| A | B | C | |
|---|---|---|---|
| 1 | Name | Group | Score |
| 2 | Ana | A | 72 |
| 3 | Ben | B | 88 |
| 4 | Cara | A | 91 |
| 5 | Dan | B | 65 |
| 6 | Eli | A | 84 |
Formula: E2: =AVERAGEIFS(C2:C6,B2:B6,"C")
Result: #DIV/0!
No row has group C, so there is nothing to average.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =AVERAGEIFS(C2:C7,A2:A7,"East",D2:D7,">10")
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Region | Product | Units | Price | Result | |
| 2 | East | Pen | 120 | 2.5 | 30 | |
| 3 | West | Pen | 80 | 2.5 | ||
| 4 | East | Book | 45 | 12 | ||
| 5 | North | Book | 60 | 12 | ||
| 6 | West | Lamp | 30 | 25 | ||
| 7 | East | Lamp | 15 | 25 |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page