Skip to content

AVERAGEA

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], ...)

Statistical

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
A
B
C
1
Session
Attendees
2
S1
10
3
S2
12
4
S3
absent
5
S4
14
6
7
Average, absent = 0
9
8

B7 =AVERAGEA(B2:B5) returns 9

How AVERAGEA works

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.

Where it differs from AVERAGE

For a column holding 10, 12, the word "absent" and 14:

  • AVERAGE ignores the text and averages three numbers: (10 + 12 + 14) / 3 = 12.
  • AVERAGEA counts "absent" as 0 and averages four values: (10 + 12 + 0 + 14) / 4 = 9.

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.

How each kind of value is treated

In a cell or range reference:

  • Numbers and dates count as themselves.
  • Text, including numbers stored as text and the empty text from a formula, counts as 0.
  • TRUE counts as 1 and FALSE counts as 0.
  • Blank cells are ignored, not counted as 0.
  • Error values make the result an error.

Typed straight into the formula, TRUE is 1 and FALSE is 0.

Averaging TRUE and FALSE

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.

Beware text-numbers

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.

Arguments

value1
The first value, cell or range, such as B2:B7.
value2, ...optional
More values, cells or ranges, up to 255 arguments in all.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

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
A
B
C
1
Session
Attendees
2
S1
10
3
S2
12
4
S3
absent
5
S4
14
6
7
Average, absent = 0
9
8

B7 =AVERAGEA(B2:B5) returns 9

Example 2

AVERAGE skips the text

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
A
B
C
1
Session
Attendees
2
S1
10
3
S2
12
4
S3
absent
5
S4
14
6
7
AVERAGE, text skipped
12
8

B7 =AVERAGE(B2:B5) returns 12

Example 3

A share of TRUE values

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
A
B
C
1
Check
Passed
2
C1
TRUE
3
C2
TRUE
4
C3
FALSE
5
C4
TRUE
6
7
Pass rate
75%
8

B7 =AVERAGEA(B2:B5) returns 75%

Example 4

Blank cells are still ignored

B6 =AVERAGEA(B2:B4)

Result: 15

The empty cell is skipped, not counted as 0, so the average is 30 / 2 = 15.

B6
A
B
C
1
Session
Attendees
2
S1
10
3
S2
4
S3
20
5
6
Average
15
7

B6 =AVERAGEA(B2:B4) returns 15

Your turn.

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.

B9
A
B
C
D
1
Session
Attendees
Feedback collected
2
S1
18
TRUE
3
S2
cancelled
FALSE
4
S3
22
TRUE
5
S4
20
TRUE
6
S5
cancelled
FALSE
7
S6
24
TRUE
8
9
Average, cancelled = 0
10
Feedback rate
11

Common mistakes

  • Text counts as 0, including numbers stored as text. If imported numbers are left-aligned, AVERAGEA will drag the average towards zero and give no warning.
  • AVERAGEA includes notes and labels such as "n/a" as zeros. If those should not count, use AVERAGE.
  • Empty cells are ignored but empty text from a formula ("") counts as 0, so a column built with IF formulas can behave differently from a column of blanks.
  • An error value anywhere in the range makes the result an error.
  • AVERAGEA is rarely the right choice for ordinary numeric data. Check that the text entries really should be zeros before using it.

Questions people ask

What is the difference between AVERAGE and AVERAGEA?

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.

How do I get the percentage of TRUE values in a column?

Use `=AVERAGEA(B2:B5)`, or `=COUNTIF(B2:B5,TRUE)/COUNTA(B2:B5)`. Format the result as a percentage.

Does AVERAGEA count blank cells?

No. Blank cells are skipped. Cells that show empty text from a formula are counted as 0.

Why is my AVERAGEA lower than AVERAGE?

Text entries in the range are counted as 0, which pulls the result down. Look for notes, labels, or numbers stored as text.

Learn AVERAGEA in a real sheet.

Tracks take you from the basics to modelling, one graded exercise at a time.