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
Example 1. Absent as 0
=AVERAGEA(B2:D6)11 scores plus 2 "Absent" (0) make 13 values with an average of 73.38….
Example 2. Compared with AVERAGE
=AVERAGE(B2:D6)Leaving out text, the average of 11 values is 86.72….
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.
Formula Divided by Result =AVERAGE(B2:D6) 11 numbers about 86.73 =AVERAGEA(B2:D6) 11 numbers + 2 Absent about 73.38 =SUM(B2:D6)/COUNTA(B2:D6) 13 cells about 73.38 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
Expecting blanks to count as 0
AVERAGEA ignores blank cells too.
Assuming it equals AVERAGE
The results differ when there is text.
Formulas that return ""
A formula such as =IF(B2="", "", B2) returns empty text, which looks blank but counts as 0.
FAQ
- How is TRUE counted?
- As 1.
- Maximum and minimum?
- MAXA and MINA follow the same rule.