How to average with multiple criteria (AVERAGEIFS)
✓ Verified in LibreOffice 25.8.7.3 ✓ Verified in Google Sheets (2026-08-30)Average only the rows that meet several conditions at once.
The formula
| App | Formula | Notes |
|---|---|---|
| Excel (desktop) | =AVERAGEIFS(B2:B6,A2:A6,"East",B2:B6,">100") | Average range first, then range/criteria pairs. |
| Google Sheets | =AVERAGEIFS(B2:B6,A2:A6,"East",B2:B6,">100") | Identical. |
| LibreOffice Calc | =AVERAGEIFS(B2:B6,A2:A6,"East",B2:B6,">100") | Identical. |
How it works
AVERAGEIFS works like SUMIFS: the range to average comes first, followed by condition pairs that are ANDed together. Of the "East" rows (150, 80, 200), only 150 and 200 pass the >100 test, and their average is 175. If no rows match all conditions it returns #DIV/0! — wrap in IFERROR if that's expected.
Verified, not just documented
We ran =AVERAGEIFS(B2:B6,A2:A6,"East",B2:B6,">100") in LibreOffice 25.8.7.3 (headless, with forced recalculation) and it returned 175 — exactly the expected result. We then ran the same formulas in Google Sheets, executed 2026-08-30: a formula-only workbook goes into Google Drive, which converts it to a Sheet and recalculates every formula with Google’s own engine, and comes back out as .xlsx carrying the values Google computed. It returned 175 for the worked example, the same value LibreOffice produced. Both engines’ numbers on this page are executed results. The Excel formula follows Microsoft’s official documented syntax — we do not run desktop Excel.
Functions used
AVERAGEIFS — see full Excel, Google Sheets & LibreOffice compatibility for each.