AVERAGEIF function - Zoho Sheet - Help Guide

AVERAGEIF

Returns the average of the values in a range that meet a given condition.

 

Syntax

 

AVERAGEIF(test_range; condition; average_range)

test_range: The cell range containing values you want to test for the given condition. Eg., A2:A11

condition: The given test condition. It can be a number, a text string, or an expression. Eg., "Pencil"

average_range: The cell range from which you want to find the average of values. For example, you can search for cells in column A that meet the condition, then take the average of the corresponding cells in column B. Eg., B2:B11

 

Remarks

  • Ignores logical values (TRUE, FALSE) present in the cell range.


Examples

 

Formula

Result

=AVERAGEIF(A2:A11;"Pencil";B2:B11)

54.5

=AVERAGEIF(A2:A11;"Binder";B2:B11)

57.333333333

=AVERAGEIF(A2:A11;"Pen Set";B2:B11)

81.4


Get a hands-on experience of the function in the embedded range below.   



Possible Errors

 

Errors

Meaning

#N/A!

  • The function could not find the value it was asked to look for. Commonly occurs in VLOOKUP and similar functions.

#NAME!

  • The function name is incorrect or invalid.

  • The given defined name (if any) is invalid.

  • There is a typo in the defined name used in the function.

  • Double quotes are missing for text values in the function.

  • Colon missing in a cell range reference.

#VALUE!

  • The given argument's data type is incorrect or invalid.
    For example, the function =DATE(A1:A3) will return a #VALUE error when a text value is present in the range.

#REF!

  • The given cell reference is incorrect or invalid. This error may occur when a cell/range has been deleted, moved, or pasted over.

#DIV/0!

  • No cells in the test_range meet the given condition.

  • The average_range contains only blank or text values.

 

Similar Functions