Example 1
Text counts as zero
B7 =AVERAGEA(B2:B5)
Result: 9
Four values count: 10, 12, 0 for the text, and 14. The total of 36 divided by 4 is 9.
B7 =AVERAGEA(B2:B5) returns 9
Returns the average of values including text and logicals: text and FALSE in a range count as 0 and TRUE counts as 1.
Syntax
=AVERAGEA(, [value2], ...)
All versions of Excel, including Excel for Microsoft 365 and Excel for the web.
Try it
Edit the formula in B7 or change the inputs. The sheet recalculates as you type.
B7 =AVERAGEA(B2:B5) returns 9
AVERAGEA works like AVERAGE, but it does not skip text or logical values in a range. Instead it counts them as numbers: text and FALSE count as 0, and TRUE counts as 1. Empty cells are still ignored.
For a column holding 10, 12, the word "absent" and 14:
Use AVERAGEA when a text entry really does mean "zero", and the average should be diluted by it. Use AVERAGE when text entries are labels or notes that should not affect the result. In most business data the second case applies, which is why AVERAGE is the usual choice.
In a cell or range reference:
Typed straight into the formula, TRUE is 1 and FALSE is 0.
Because TRUE is 1 and FALSE is 0, AVERAGEA of a range of TRUE/FALSE values is the share that are TRUE. Four checks with three TRUE give 0.75, or 75%. AVERAGE would ignore the logicals and return #DIV/0!. This makes AVERAGEA a quick way to get a pass rate or completion rate from a checkbox column.
Numbers imported as text count as 0 in AVERAGEA, not as their value. If your numbers came from a CSV and sit left-aligned, AVERAGEA will drag the average towards zero and give no warning. Fix the data first.
For averages with conditions, use AVERAGEIF or AVERAGEIFS.
B2:B7.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B7 =AVERAGEA(B2:B5)
Result: 9
Four values count: 10, 12, 0 for the text, and 14. The total of 36 divided by 4 is 9.
B7 =AVERAGEA(B2:B5) returns 9
Example 2
B7 =AVERAGE(B2:B5)
Result: 12
AVERAGE ignores the text and divides 36 by 3 instead of 4. Choose the one that matches what "absent" means in your data.
B7 =AVERAGE(B2:B5) returns 12
Example 3
B7 =AVERAGEA(B2:B5)
Result: 75%
TRUE counts as 1 and FALSE as 0, so three TRUE out of four averages to 0.75. AVERAGE would return #DIV/0! on the same range.
B7 =AVERAGEA(B2:B5) returns 75%
Example 4
B6 =AVERAGEA(B2:B4)
Result: 15
The empty cell is skipped, not counted as 0, so the average is 30 / 2 = 15.
B6 =AVERAGEA(B2:B4) returns 15
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B9, return the average attendance per scheduled session, counting each cancelled session as 0 attendees.
Answer in B9.
"") counts as 0, so a column built with IF formulas can behave differently from a column of blanks.AVERAGE ignores text and logical values in a range. AVERAGEA counts text and FALSE as 0 and TRUE as 1. Blank cells are ignored by both.
Use `=AVERAGEA(B2:B5)`, or `=COUNTIF(B2:B5,TRUE)/COUNTA(B2:B5)`. Format the result as a percentage.
No. Blank cells are skipped. Cells that show empty text from a formula are counted as 0.
Text entries in the range are counted as 0, which pulls the result down. Look for notes, labels, or numbers stored as text.
Tracks take you from the basics to modelling, one graded exercise at a time.