← All functions

AVERAGEIF

Supported, behaves as documented

Category: Statistical · Last tested 2026-07-04

Support matrix

EngineDocumentedLive-testedVerdict
Excel Yes Not yet n/a
Google Sheets Yes Not yet n/a
LibreOffice Calc Yes Yes (24.2.7.2, 2026-07-04) Supported, behaves as documented

Executed test cases

LibreOffice Calc 24.2.7.2 (tested 2026-07-04)

FormulaDescriptionResultExpectedVerdict
=AVERAGEIF(A1:A5,">10") Average of cells in the range itself that satisfy the criteria 20 20
Average of 15,20,25 = 20
Matched
=AVERAGEIF(A1:A5,">2",B1:B5) Criteria evaluated against A but matching B cells are averaged 40 40
Rows 3,4,5 satisfy A>2; average of paired B = (30+40+50)/3
Matched
=AVERAGEIF(A1:A3,">100") No cells satisfy the criteria -> #DIV/0! per Microsoft docs (same as AVERAGE of an empty set) #DIV/0! #DIV/0! Matched
=AVERAGEIF(A1:A3,">0",B1:B3) Blank cells in average_range are excluded from both the sum and the count, not treated as 0 20 20
A1:A3 all satisfy >0, but B2 is blank; average is (10+30)/2=20, not (10+0+30)/3
Matched

Docs & syntax