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], ...)| Argument | What it means | |
|---|---|---|
value1 | Required | The first value, cell or range. |
value2, ... | Optional | Up 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Employee | Training done | ||
| 2 | Ali | TRUE | 0.6 | |
| 3 | Bea | FALSE | ||
| 4 | Carl | TRUE | ||
| 5 | Dina | TRUE | ||
| 6 | Ed | FALSE |
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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Exam | ||
| 2 | Hana | 80 | 60 | |
| 3 | Ivan | absent | ||
| 4 | Jade | 70 | ||
| 5 | Kofi | 90 |
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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Danish | MIDDELV |
| Dutch | GEMIDDELDEA |
| Finnish | KESKIARVOA |
| German | MITTELWERTA |
| Hungarian | ÁTLAGA |
| Italian | MEDIA.VALORI |
| Norwegian (Bokmål) | GJENNOMSNITTA |
| Polish | ŚREDNIA.A |
| Portuguese (Brazil) | MÉDIAA |
| Portuguese (Portugal) | MÉDIAA |
| Russian | СРЗНАЧА |
| Spanish | PROMEDIOA |
| Turkish | ORTALAMAA |