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
Example 1. Highest score
=MAXA(B2:D6)95, the same as MAX.
Example 2. Text only
=MAXA(C3)"Absent" counts as 0, so the result is 0.
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, Absent 84 84 -5, -3, None -3 0 -5, FALSE -5 0 0.5, TRUE 0.5 1
Common mistakes
Expecting it to always differ from MAX
With at least one positive number, the result is the same.
Blank cells
Blank cells are ignored.
Numbers stored as text
Text such as "120" is compared as 0, not 120.
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.