Contact

Criteria · eight-software comparison

AVERAGEIFS for matching rows

Find the mean only for records that match multiple conditions, with notes on divide-by-zero errors and safe alternatives.

Task

Average Amount C2:C6 for rows where Region is North and Status is Open.

Expected output

100

Compatibility trap: An empty match can return a division error; converting SUMIFS into an average needs the matching-row count, not all rows.

One shared five-row test dataset

The same source rows make results easier to compare. Use the CSV in any supported spreadsheet application; the ODS workbook also includes LibreOffice formula tests.

Shared formula comparison fixture (columns A through F)
Region (A)Status (B)Amount (C)SKU (D)Label (E)Units (F)
NorthOpen125SKU-101Alpha2
SouthClosed80SKU-102Beta1
NorthOpen75SKU-103Gamma3
NorthClosed50SKU-104Delta4
SouthOpen200SKU-105Epsilon1

Formula syntax and feature differences

“Documented” rows cite official product help, but were not run in the destination software. A formula shown here is a migration candidate, not a guarantee of identical behaviour or file interoperability.

Apache OpenOffice Calc

Alternative

Version: Apache OpenOffice 4.1 series; candidate only.

Arguments: SUMPRODUCT numerator / SUMPRODUCT condition count

=SUMPRODUCT((A2:A6="North")*(B2:B6="Open")*C2:C6)/SUMPRODUCT((A2:A6="North")*(B2:B6="Open"))

Array arithmetic yields sum divided by count; guard against zero matching rows. Native AVERAGEIFS parity is not claimed.

Official documentation ↗

Calligra Sheets

Not researched

AVERAGEIFS behaviour has not been independently reconciled with a version-specific Calligra reference.

PlanMaker

Alternative

Version: PlanMaker 2026 candidate only.

Arguments: SUMIFS(...) / COUNTIFS(...)

=SUMIFS(C2:C6,A2:A6,"North",B2:B6,"Open")/COUNTIFS(A2:A6,"North",B2:B6,"Open")

Criteria-based numerator/denominator candidate; the linked 2026 page documents SUMIFS, not the full fallback. Confirm COUNTIFS locally.

Official documentation ↗

Apple Numbers

Documented

Version: Current Apple function reference.

Arguments: AVERAGEIFS(average-values,test-values,condition,...)

=AVERAGEIFS(C2:C6,A2:A6,"North",B2:B6,"Open")

Function documented; check table qualifications and exact criteria cell types.

Official documentation ↗

Zoho Sheet

Documented

Version: Current Zoho Sheet help.

Arguments: AVERAGEIFS(average_range; test_range; condition; ...)

=AVERAGEIFS(C2:C6;A2:A6;"North";B2:B6;"Open")

Zoho specifies that an empty/no-numeric set can produce #DIV/0!, not a harmless zero.

Official documentation ↗

What changes when you migrate?

From the shared CSV, North/Open rows are amounts 125 and 75, giving (125 + 75) / 2 = 100. This arithmetic result is independent of any application.

If no rows match, do not casually display 0 as though it were a real observed average. Use an error-handling policy appropriate to your report.

Use aligned criteria ranges; blank, logical and text values may be handled differently among implementations.

Reproduce the result without a formula

The common five-row CSV contains three North records, but only two are Open. Their amounts are 125 and 75. Their mean is (125 + 75) / 2 = 100. This independent arithmetic is the check value for all candidates above.

The AVERAGEIFS parameter order is average range, then pairs of condition range and condition. It resembles SUMIFS more than AVERAGEIF. In one-condition variants, the average range may appear last, so don’t migrate solely by memorizing the function’s name.

Avoid averaging all North rows

A tempting mistake is AVERAGEIF(A2:A6;"North";C2:C6) or its comma-separated counterpart. That includes North/Closed (50), so it answers a different question. The mean of all North amounts would be 250 / 3 ≈ 83.33 rather than 100.

An older-engine workaround can divide the SUMPRODUCT of matching amounts by the count of matching rows. However, zero matching rows makes that denominator zero. A real statistical report should distinguish “no matching observations” from a valid observed zero.

What to verify in the destination application

  • All three ranges must cover the same five data rows, not the headers.
  • Ensure the Region and Status values are text, not inadvertently converted to labels with trailing spaces.
  • Check the zero-match case (West and Closed) and document whether a blank, error or explicit “No records” is appropriate to your report.
  • Confirm range syntax after importing CSV into a named table in Apple Numbers; references may be qualified by table name.
  • If using the SUMIFS/COUNTIFS fallback, verify that both functions interpret criteria identically and that the denominator is not zero.

For totals rather than averages, see SUMIFS with two conditions.

Documentation and testing disclosure

Official vendor sources and version scopes appear beside each software candidate above. Expected outputs are independently reasoned from the shared sample; the five new comparisons do not claim native execution in any of the eight applications. Read more about how we distinguish documentation from execution in our editorial standards.

Evidence standard: Only LibreOffice rows labelled “Native tested” were run as executable fixtures. Other entries reflect vendor help or a separately labelled workaround. Dates and versions are shown when known. Last editorial research: 2026-10-11.

← Back to all comparisons