Excel function

AVERAGEAfunction

Returns the average, counting text as 0.

All versions
=AVERAGEA(B2:D6)
A
B
C
D
1
2
3
4
5
6

Drag the corner dots to change range. Compare with the AVERAGE page (86.7…). "Absent" counts as 0, so the average drops. Try breaking it on purpose to see the errors.

Result

73.3846153846

range
B2:D6Drag the corner dots on the table

The cells to calculate. Text counts as 0; blank cells are ignored.

What is the AVERAGEA function?

=AVERAGEA(value1, [value2], ...)

AVERAGEA averages a range counting text as 0. Use it when "Absent" should count as a score of 0.

In Microsoft's example, a cell with text is also counted as 0. Blank cells are ignored, as in AVERAGE. The sheet B2:D6 holds 11 scores, 2 "Absent" cells and 2 blank cells.

Choosing between AVERAGE and AVERAGEA comes down to whether a cell without a score should count as 0. If absences or missing work score 0 under your rules, use AVERAGEA; for the average of those who took part, use AVERAGE. TRUE counts as 1 and FALSE as 0, so the average of a TRUE/FALSE attendance column is the attendance rate.

Arguments

value1, ...
Values, cells or ranges. Text in a range counts as 0, TRUE as 1, FALSE as 0.

AVERAGEA examples

  1. Example 1. Absent as 0

    =AVERAGEA(B2:D6)

    11 scores plus 2 "Absent" (0) make 13 values with an average of 73.38….

  2. Example 2. Compared with AVERAGE

    =AVERAGE(B2:D6)

    Leaving out text, the average of 11 values is 86.72….

  3. Example 3. Three averages of one range

    =AVERAGEA(B2:D6)

    The total is 954 every time; only the divisor changes. The two blank cells are never counted.

    FormulaDivided byResult
    =AVERAGE(B2:D6)11 numbersabout 86.73
    =AVERAGEA(B2:D6)11 numbers + 2 Absentabout 73.38
    =SUM(B2:D6)/COUNTA(B2:D6)13 cellsabout 73.38
  4. Example 4. Attendance rate

    =AVERAGEA(C2:C21)

    With present recorded as TRUE and absent as FALSE, 17 days present out of 20 gives 0.85 (85%).

Common mistakes

FAQ

How is TRUE counted?
As 1.
Maximum and minimum?
MAXA and MINA follow the same rule.