AVERAGEIFS Function in Google Sheets: Formula, Examples & Troubleshooting
Learn the AVERAGEIFS formula in Google Sheets: average numeric values that meet multiple conditions, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: Use AVERAGEIFS to average numeric values that meet multiple conditions. The example below supplies exact inputs and independently calculated expected results, so you can check your formula before replacing the demonstration values with real workbook data.
Verification: The function is covered by a vendor reference or its published formula catalogue. The worked outputs here are independently reasoned, not screenshots or native test results from Google Sheets. Check current Sheets service scope and argument details in the referenced vendor help.
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
- Checked: October 14, 2026; official AVERAGEIFS reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and arguments
=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Average average_range where all test range/criterion pairs match. In formula syntax, square brackets mark optional arguments; do not type square brackets into an ordinary formula unless the particular function requires array notation. The separator shown is for the example locale and might change with spreadsheet settings.
When to use it: Handle a selection with no matching numeric observations explicitly; this review does not establish a raw no-match error code.
Prepare the example inputs
Create a blank Google Sheets spreadsheet, enter the data as values (not quoted numeric strings), and use a clear output cell. Confirm File → Settings → Locale before comparing punctuation-sensitive formulas.
For the formulas that reference cells, enter this small dataset into A1:F9 (the first row contains headings). The Amount and Units columns are numbers; the team, status, item and agent columns are text. Keep the calculation cell outside A1:F9 so it cannot overwrite an input.
| Row | A · Item | B · Team | C · Status | D · Amount | E · Units | F · Agent |
|---|---|---|---|---|---|---|
| 1 | Item | Team | Status | Amount | Units | Agent |
| 2 | Pen | East | Paid | 120 | 12 | Ana |
| 3 | Pad | West | Pending | 75 | 5 | Bo |
| 4 | Box | East | Paid | 210 | 7 | Ana |
| 5 | Tape | North | Paid | 90 | 0 | Cy |
| 6 | Folder | West | Paid | 150 | 3 | Bo |
| 7 | Pen | East | Pending | 60 | 8 | Dee |
| 8 | Pad | West | Paid | 125 | 12 | Ana |
| 9 | Box | North | Pending | 80 | 4 | Cy |
Worked example: exact formula and expected output
=AVERAGEIFS(D2:D9,B2:B9,"East",C2:C9,"Paid")
Expected result: 165. Matching values are 120 and 210; their average is 165.
- Select an unused output cell (for example H2 if the practice table occupies A1:F9).
- Enter the formula exactly as shown, including the opening equals sign and quoted text.
- Compare the displayed answer to the expected result, then inspect the source cells if it differs.
For a range formula, the row numbers include data rows only unless the example explicitly refers to headers. A result that looks plausible may still be wrong if it references the wrong column.
Second example: a different input
=AVERAGEIFS(D2:D9,B2:B9,"West",C2:C9,"Paid")
Expected result: 137.5. Matching values 150 and 125 average to 137.5.
This independent check can be entered in the next blank output cell; it helps distinguish a genuine calculation issue from a reference or paste-location mistake.
Worksheet conditions and output range
These examples use the normal worksheet signature with average_range first and paired criteria ranges afterward. Google’s page separately documents a BigQuery column form. Matching a product or status in a connected table is a different operating mode from these ordinary cell references.
Keep the example ranges aligned and equal-sized so each set of conditions describes one record. The dedicated page does not state a universal maximum number of pairs or an exhaustive malformed-range error table. Such limits are not imported from Excel documentation here.
Advanced example: combine a numeric band with status
=AVERAGEIFS(D2:D9,D2:D9,">=75",D2:D9,"<125",C2:C9,"Paid")
Expected mean: 105, from the Paid amounts 120 and 90. Replacing “<125” with “<=125” adds the Paid amount 125 and gives approximately 111.666666667.
The number of selected observations changes from two to three. A small formula edit at an inclusive boundary can therefore change both the total and denominator; inspect matching rows rather than just comparing displayed averages.
Advanced example: expose the numerator and denominator
For East/Paid, the sum is 330 across two numeric amount observations. A cross-check for this entirely numeric dataset is:
=SUMIFS(D2:D9,B2:B9,"East",C2:C9,"Paid")/COUNTIFS(B2:B9,"East",C2:C9,"Paid")
Expected result: 165, agreeing with the original AVERAGEIFS example. This identity depends on the count representing the actual measured participants. A raw matching-row count can be the wrong denominator in a mixed or incomplete result column.
The direct help is concise and does not provide a complete text, Boolean, blank and error matrix. Successful numeric controls should not be treated as proof that every imported value has the intended type.
Advanced example: keep zero quantities and record counts distinct
=AVERAGEIFS(E2:E9,C2:C9,"Paid")
=AVERAGEIFS(E2:E9,C2:C9,"Paid",E2:E9,">0")
Expected results are 6.8 and 8.5 Units. The first uses 34 Units across five records, including a numeric zero. The second deliberately excludes that zero and divides the same total by four.
Neither is a repair of the other. They answer different population policies. Document whether zero is a valid measurement before selecting or excluding it from an average.
Advanced example: reconstruct a combined conditional mean
East/Paid has mean 165 over two rows; West/Paid has 137.5 over two; North/Paid has 90 over one. The unweighted mean of these three summaries is approximately 130.833333333.
The combined Paid mean is 139, reconstructed as:
=(165*2+137.5*2+90*1)/5
It agrees with =AVERAGEIFS(D2:D9,C2:C9,"Paid") for the given numeric register. The weights refer to participating measurements, not a universal constant for each Team. Recalculate them when the selection or source data changes.
Advanced example: name an absent selection explicitly
For the nonexistent South/Paid subset:
=IF(COUNTIFS(B2:B9,"South",C2:C9,"Paid")=0,"No matching rows",AVERAGEIFS(D2:D9,B2:B9,"South",C2:C9,"Paid"))
Expected report label: No matching rows. The guard uses the same eligibility conditions as the average. It is sufficient as an existence check for this wholly numeric Amount column; arbitrary mixed values would require a separate numeric-validity rule.
This example does not assign an unverified raw no-match error code or claim general short-circuit evaluation. It describes the selected report value and preserves the distinction between absence and a measured mean of zero.
Advanced check: conjunction is not an OR selector
Requiring Team equals East and Team equals West as two conditions on the same column asks for both at once. Combining group means with a plus sign would not produce the mean of their union either.
For East and West together, the total is 390+350=740 across six records, so the combined numeric mean is approximately 123.333333333. Their two individual means happen to have equal weights here because both groups contain three observations. That symmetry can disappear as soon as one group’s record count changes.
Boundary scope and imported files
The first average range and the criteria pairs have a different order from AVERAGEIF. Preserve that order when editing a formula copied from a single-condition example. Check current Sheets parsing and file-import behavior in the destination service rather than referring to an installed desktop release.
Exact error labels for malformed ranges, empty result populations and all imported value types remain unverified by the dedicated reference and these independent numeric models.
Important edge cases and a common mistake
Watch out: Do not confuse the argument order with AVERAGEIF; the average range comes first.
Google Sheets may expand range outputs automatically and apply locale-aware parsing. A workbook imported from Excel can behave differently after conversion; recalculate the sample inside the target file.
Troubleshooting in Google Sheets
In Sheets, a #N/A often indicates that a lookup found no match or a filter returned no matching row. #REF! may indicate that an array result could not expand; #ERROR! can indicate incorrect formula syntax. Open the cell error tooltip and confirm the spreadsheet locale.
If you get the wrong answer but no error, try these checks in order: (1) evaluate the simplified first example; (2) confirm the cell values and data types; (3) check the exact row and column boundaries; (4) verify quoted text, comparison operators and separators; (5) only then add more criteria or nested functions.
For a reproducible comparison with another spreadsheet product, use the same input values in both applications and record the Sheets service check date, file-import mode and spreadsheet locale. Different default matching behavior or handling of empty values can be a migration issue rather than a mathematical disagreement.
Moving this formula between spreadsheet programs
Google Sheets may use ARRAYFORMULA and different regex or sorting conventions than Excel. Do not paste a LibreOffice formula with semicolon argument separators into a US-locale Sheets file without reviewing the syntax.
Related guides already published for this function: Microsoft Excel | LibreOffice Calc | Apache OpenOffice Calc | Gnumeric | PlanMaker 2026
If a comparison tool says Not researched here, that means we do not yet have a checked guide for that software. It does not mean the software lacks this function. See the 12-program comparison tool for a guide-coverage matrix.
Official reference and editorial verification
Evidence level: Vendor-published function catalogue / formula overview, checked for this editorial batch on October 11, 2026; example outputs verified by direct reasoning/arithmetic where applicable. No execution in Google Sheets was performed. Some platform-, language- and release-specific edge cases remain for native testing.
October 14, 2026 review scope
The full guide and original examples were reviewed against the dedicated Google AVERAGEIFS reference. Added results are independently modeled arithmetic and explicitly scoped matching controls. Native Sheets execution, exhaustive coercion and connected-data behavior were not tested.