Excel function

MAXAfunction

Returns the largest value, counting text as 0.

All versions
=MAXA(B2:D6)
A
B
C
D
1
2
3
4
5
6

Drag the corner dots to change range. Shrink the range to an "Absent" cell only and the result is 0. Try breaking it on purpose to see the errors.

Result

95

range
B2:D6Drag the corner dots on the table

The cells to calculate. Text counts as 0; blank cells are ignored.

What is the MAXA function?

=MAXA(value1, [value2], ...)

MAXA returns the largest value, counting text as 0. With any positive number in the range it usually matches MAX; it differs when every number is negative.

The sheet B2:D6 holds 11 scores, 2 "Absent" cells and 2 blank cells.

MAXA only differs from MAX in tables where every number can be negative, such as losses or winter temperatures, and text such as "No data" should count as 0. With at least one positive number the two return the same result. TRUE counts as 1 and FALSE as 0.

Arguments

value1, ...
Values, cells or ranges. Text in a range counts as 0, TRUE as 1.

MAXA examples

  1. Example 1. Highest score

    =MAXA(B2:D6)

    95, the same as MAX.

  2. Example 2. Text only

    =MAXA(C3)

    "Absent" counts as 0, so the result is 0.

  3. Example 3. MAX versus MAXA

    =MAXA(A2:A4)

    The 0 for text wins only when every number is negative.

    Range holds=MAX=MAXA
    76, 84, Absent8484
    -5, -3, None-30
    -5, FALSE-50
    0.5, TRUE0.51

Common mistakes

FAQ

When is it useful?
When TRUE/FALSE or text must be compared as numbers.
Is there a minimum version?
Yes, MINA uses the same rule.
Maximum with a condition?
Use MAXIFS. It does not treat text as 0.