AVERAGEA function
AVERAGEA works like AVERAGE but does not skip text or logical values: text counts as zero and TRUE counts as one. Use it when non-numeric entries should drag the average down.
Example
Read it as a sentence: find the average of the values in A1:A8, counting any text or logical values too, which gives 5.
Excel shows 5
A
1
2
2
4
3
4
4
4
5
5
6
5
7
7
8
9
Data
Syntax
AVERAGEA(value1, [value2], ...)
Arguments in [square brackets] are optional.
-
value1(required) - First value, array or range.
-
value2(optional) - Further values, arrays or ranges.
Returns: The mean of all supplied values, counting text as 0 and TRUE as 1.
What Excel actually returns
Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.
| Formula | Excel shows | Case |
|---|---|---|
=AVERAGEA({2,4,4,4,5,5,7,9}) | 5 | Array constant |
=AVERAGEA(10,"20",TRUE) | 10.33333333 | Direct args: number, text-number, TRUE |
=AVERAGEA(5) | 5 | Single number |
=AVERAGEA({1,"2",TRUE,3}) | 1.333333333 | Array with text and boolean |
=AVERAGEA(Data!A1:A8) | 5 | Range of numbers |
=AVERAGEA(Data!B1:B8) | 11.57142857 | Mixed range: num, text-number, TRUE, blank, text, FALSE |
=AVERAGEA(10,"abc") | #VALUE! | Direct arg: non-numeric text |
=AVERAGEA(Data!C1:C5) | #N/A | Range containing #N/A |
The Data sheet these formulas read
A cell that starts with = holds that formula.
A
B
C
1
2
10
1
2
4
20
2
3
4
TRUE
=NA()
4
4
4
5
5
abc
5
6
5
30
7
7
FALSE
8
9
40
Data
Watch out for
- Text cells pull the average down because they count as 0.
- Truly empty cells are still ignored.
- Easy to confuse with AVERAGE, which skips text entirely.
Where it works
- Excel
- AVERAGEA is in every version of Excel from 2007 on.
- Google Sheets
- Same name, same behaviour for everyday use.
Part of Statistical functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .