Statistical function

AVERAGEA function

Averages a range while counting text as 0 and TRUE/FALSE as 1/0, so every non-empty cell takes part in the average.

Available in All versions of Excel, Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

AVERAGEA(value1, [value2], ...)
ArgumentWhat it means
value1RequiredThe first value, cell or range.
value2, ...OptionalUp to 254 more values or ranges.

Returns: A number: the total of all non-empty cells (text = 0, TRUE = 1, FALSE = 0) divided by the count of non-empty cells.

How AVERAGEA works

AVERAGEA is the "count everything" cousin of AVERAGE. Where AVERAGE quietly skips any cell that is not a number, AVERAGEA includes every cell that is not empty: a TRUE becomes 1, a FALSE becomes 0 and any text (such as "absent" or "n/a") becomes 0. Truly empty cells are still ignored by both functions.

That makes AVERAGEA useful in two situations. First, with a column of TRUE/FALSE flags it returns the share of TRUE values, for example the proportion of staff who completed a training course. Second, when a text entry really should count as zero, such as "absent" on a test, AVERAGEA penalises it while AVERAGE would pretend the student did not exist. If you do not want text treated as zero, stay with AVERAGE.

Examples

1Share of staff who finished training

D2fx=AVERAGEA(B2:B6)
ABCD
1EmployeeTraining done
2AliTRUE0.6
3BeaFALSE
4CarlTRUE
5DinaTRUE
6EdFALSE

Result: 0.6

Each TRUE counts as 1 and each FALSE as 0, so the total is 3 and the count is 5. 3 / 5 = 0.6, which you can format as a percentage to show 60%. Plain AVERAGE would return #DIV/0! because it ignores logical values in cells.

2Text entries count as zero

D2fx=AVERAGEA(B2:B5)
ABCD
1StudentExam
2Hana8060
3Ivanabsent
4Jade70
5Kofi90

Result: 60

AVERAGEA treats "absent" as 0, so it calculates (80 + 0 + 70 + 90) / 4 = 60. =AVERAGE(B2:B5) would skip the text and return 80. Pick the function that matches your grading policy.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#DIV/0!Every cell in the range is empty.Check the range address; an all-blank range has nothing to average.

Tips

  • Cells containing a formula that returns empty text ("") are not blank: AVERAGEA counts them as 0.
  • For the share of TRUE values you can also use =COUNTIF(B2:B6, TRUE)/COUNTA(B2:B6), which some readers find clearer.

Google Sheets

AVERAGEA also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

AVERAGEA in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishMIDDELV
DutchGEMIDDELDEA
FinnishKESKIARVOA
GermanMITTELWERTA
HungarianÁTLAGA
ItalianMEDIA.VALORI
Norwegian (Bokmål)GJENNOMSNITTA
PolishŚREDNIA.A
Portuguese (Brazil)MÉDIAA
Portuguese (Portugal)MÉDIAA
RussianСРЗНАЧА
SpanishPROMEDIOA
TurkishORTALAMAA