AVERAGEA calculates the arithmetic mean of the values you give it, but unlike AVERAGE it counts text entries and logical values as part of the calculation, treating text as 0. It is useful when every row in a range should count toward the average, even if some cells contain labels or notes instead of numbers.
=AVERAGEA(value1, [value2], …)What does AVERAGEA do?
AVERAGEA is the statistical function that returns the average of its arguments while including text and logical values in the count. Numbers are averaged normally, but any text entry is counted as zero, TRUE is counted as 1, and FALSE as 0. Empty cells are still ignored. This differs from the standard AVERAGE function, which skips text and logical values entirely.
The difference matters when your data range is supposed to represent a complete set of records. If a sales column contains the word "pending" for a few rows, AVERAGE quietly drops those rows and reports an average that looks better than reality. AVERAGEA counts those rows as zero, so the result reflects the full set of records and highlights gaps in the data.
A typical situation is a student tracker or a team scorecard where some cells are marked "absent" or "n/a". Using AVERAGEA gives a score that accounts for missing performance rather than hiding it. The function accepts up to 255 arguments and works with ranges, individual cells, and constants.
When to use AVERAGEA
- Averaging a score column where some cells contain "absent" or "n/a" and those rows should count as zero.
- Calculating a class average when a few students have text notes instead of numeric marks.
- Summarising survey ratings where blank or text responses should pull the average down.
- Building a dashboard that must include every row of a range, including text placeholders.
- Checking data quality by comparing AVERAGE and AVERAGEA results to spot text in numeric columns.
AVERAGEA syntax
=AVERAGEA(value1, [value2], …)| Argument | Required? | What to enter |
|---|---|---|
value1 | Required | The first number, cell reference, or range to average. Text in this range counts as 0. Example: B2:B10. |
value2 | Optional | Additional numbers, cells, or ranges to include, up to 255 arguments. Example: C2:C10. |
What it returns: A single number: the sum of all counted values divided by the number of counted values, where text counts as 0, TRUE as 1, and FALSE as 0. Empty cells are ignored. If there are no values to count, it returns #DIV/0!.
AVERAGEA examples
1 Simple average with a text entry
The goal is to average five daily sales figures where one day is recorded as "closed". The formula =AVERAGEA(B2:B6) adds the four numbers (100 + 200 + 300 + 400 = 1000) and counts the text "closed" as 0, so the total is still 1000. It divides by 5 because five cells contain values, giving 200. A standard AVERAGE would return 250 by ignoring the text row.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Day | Sales | |||
| 2 | Mon | 100 | 200 | ||
| 3 | Tue | 200 | |||
| 4 | Wed | 300 | |||
| 5 | Thu | 400 | |||
| 6 | Fri | closed | |||
| 7 |
2 Student marks with an absent entry
A teacher wants the class average for five students, but one student was absent and the cell contains "absent". The formula =AVERAGEA(B2:B6) sums 80 + 90 + 70 + 60 = 300 and counts "absent" as 0. It divides by 5, returning 60. This reflects the full class of five students rather than only the four who sat the test.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Student | Mark | |||
| 2 | Ana | 80 | 60 | ||
| 3 | Ben | 90 | |||
| 4 | Cara | 70 | |||
| 5 | Dan | 60 | |||
| 6 | Eve | absent | |||
| 7 |
3 Monthly expenses with a text note
A household budget lists six monthly expense totals, and one month contains the note "no data". The formula =AVERAGEA(B2:B7) adds 1200 + 1500 + 1100 + 1300 + 1400 = 6500 and counts the text as 0. Dividing by 6 gives approximately 1083.33. This is the honest average across all six months, including the month with missing data.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Month | Expense | |||
| 2 | Jan | 1200 | 1083.333333 | ||
| 3 | Feb | 1500 | |||
| 4 | Mar | 1100 | |||
| 5 | Apr | 1300 | |||
| 6 | May | 1400 | |||
| 7 | Jun | no data | |||
| 8 |
4 Team scorecard with a pending result
A sales manager tracks points for six team members, and one member's result is still "pending". The formula =AVERAGEA(B2:B7) sums 10 + 20 + 30 + 40 + 50 = 150 and counts "pending" as 0. It divides by 6, returning 25. Using AVERAGEA makes the average reflect the whole team, including the member whose result is not yet in.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Member | Points | |||
| 2 | Ali | 10 | 25 | ||
| 3 | Bea | 20 | |||
| 4 | Cal | 30 | |||
| 5 | Dee | 40 | |||
| 6 | Eli | 50 | |||
| 7 | Fay | pending | |||
| 8 |
5 Survey ratings with a text response
A customer experience team collects ratings from six respondents, and one wrote "no comment" instead of a number. The formula =AVERAGEA(B2:B7) adds 5 + 4 + 3 + 5 + 4 = 21 and counts the text as 0. Dividing by 6 gives 3.5. This average includes the non-numeric response as a zero, which is appropriate when every respondent should count.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Respondent | Rating | |||
| 2 | R1 | 5 | 3.5 | ||
| 3 | R2 | 4 | |||
| 4 | R3 | 3 | |||
| 5 | R4 | 5 | |||
| 6 | R5 | 4 | |||
| 7 | R6 | no comment | |||
| 8 |
Common AVERAGEA errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #DIV/0! | The range contains no values that AVERAGEA can count, for example only empty cells. | Make sure the range includes at least one number, logical value, or text entry, or check that the range reference is correct. |
| #VALUE! | An argument is an invalid text string that cannot be interpreted, such as a cell reference typed incorrectly or a range that Excel cannot resolve. | Verify that cell references and range addresses are valid and that you have not typed a stray character inside the formula. |
| #NAME? | The function name is misspelled, for example =AVERAGEA( typed as =AVERAGEAA( or =AVERAGEA without the opening parenthesis. | Type =AVERAGEA( and let Excel suggest the function, or correct the spelling. |
| Wrong average (too low) | Text entries are being counted as zero, which is the intended behaviour of AVERAGEA but may surprise you if you expected AVERAGE. | Use AVERAGE if you want text and logical values ignored, or clean the text entries to numbers before averaging. |
Tips for using AVERAGEA
- Compare
=AVERAGE(range)with=AVERAGEA(range)to quickly see whether a column contains text hiding among the numbers. - Remember that AVERAGEA counts TRUE as 1 and FALSE as 0, so logical values affect the result.
- Use AVERAGEA when every row in a range should count, such as a fixed class list or a complete survey panel.
- Empty cells are ignored by both AVERAGE and AVERAGEA, so blanks do not lower the result.
- If text entries should be excluded rather than counted as zero, use AVERAGE or AVERAGEIF instead.
- Format the result cell as a number with the desired decimal places, since AVERAGEA returns a raw number.
Frequently asked questions
What is the difference between AVERAGE and AVERAGEA?
AVERAGE ignores text and logical values in a range, while AVERAGEA counts text as 0 and logical values as 1 or 0. Use AVERAGEA when every entry in the range should count toward the average.
Does AVERAGEA count blank cells?
No. Empty cells are ignored by AVERAGEA, just as they are by AVERAGE. Only cells containing numbers, text, or logical values are counted.
Why does AVERAGEA return a lower number than AVERAGE?
Because AVERAGEA counts text entries as zero and includes them in the divisor. If a range has text mixed with numbers, the average is pulled down compared with AVERAGE, which skips the text.
Can AVERAGEA handle dates?
Yes. Excel stores dates as serial numbers, so AVERAGEA averages them like numbers. The result is a serial number that you can format as a date.
What happens if all cells in the range are text?
AVERAGEA counts each text entry as 0, so the sum is 0 and the result is 0, provided there is at least one cell with content. If the range is completely empty, it returns #DIV/0!.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. AVERAGEA reference