Example 1
Text counts as zero
C2 =MAXA(A2:A4)
Result: 0
The text "n/a" counts as 0, which is larger than -4 and -9. MAX would return -4.
C2 =MAXA(A2:A4) returns 0
Returns the largest value in a set, counting TRUE as 1 and text or FALSE as 0 where MAX would ignore them.
Syntax
=MAXA(, [value2], ...)
All versions of Excel.
Try it
Edit the formula in C2 or change the inputs. The sheet recalculates as you type.
C2 =MAXA(A2:A4) returns 0
MAXA returns the largest value in a set, like MAX, but it takes text and logical values into account. In a range, TRUE counts as 1, and text and FALSE count as 0. MAX ignores all of those. That difference rarely matters for clean numeric data, but it can change the answer when your range holds flags, "n/a" labels or other text.
For values inside a cell reference or range:
#DIV/0! in the range gives #DIV/0!.For values typed straight into the function, such as MAXA("5",-2), text that can be read as a number is converted, so that example returns 5. Text that can't be read as a number returns #VALUE!.
For a range holding -4, "n/a" and -9, MAX returns -4 because it ignores the text. MAXA counts "n/a" as 0 and returns 0. A range that holds -5, TRUE and -1 gives MAX of -1, but MAXA of 1 because TRUE counts as 1.
The difference works in the other direction too. If every value in a range is text, MAX returns 0 and MAXA returns 0, but for different reasons.
Use MAXA when logical values or text placeholders are meaningful data and you want them counted. A column of TRUE and FALSE flags is the clearest case: =MAXA(C2:C20) returns 1 if any flag is TRUE and 0 if none are. That makes MAXA a compact "any" test.
In most reports, a text note in a numeric column is noise, not a zero. A temperature log with the word "fault" in one row should usually report the highest real reading, which is what MAX does. Choose MAX unless you specifically need logicals or text to count.
MIN is the counterpart to MAX, and AVERAGEA is the AVERAGE version that counts text as 0 and TRUE as 1. MAXIFS returns the maximum under conditions and, like MAX, ignores text.
Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
C2 =MAXA(A2:A4)
Result: 0
The text "n/a" counts as 0, which is larger than -4 and -9. MAX would return -4.
C2 =MAXA(A2:A4) returns 0
Example 2
C2 =MAXA(A2:A4)
Result: 1
TRUE counts as 1, so it is the largest value. MAX would return -1.
C2 =MAXA(A2:A4) returns 1
Example 3
C2 =MAXA(A2:A5)
Result: 1
One TRUE in the range makes the result 1. If every flag were FALSE the result would be 0.
C2 =MAXA(A2:A5) returns 1
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In E2, return the warmest (highest) real temperature reading in B2:B6, ignoring the text entry.
Answer in E2.
MAX ignores text and logical values in ranges. MAXA counts TRUE as 1 and text and FALSE as 0.
The column probably contains text, such as a note. MAXA counts text as 0, which beats the negative values. Use MAX to ignore the text.
`=MAXA(range)=1` returns TRUE if any flag is TRUE. `=OR(range)` is a more direct choice.
No. Empty cells are ignored, like they are in MAX.
Tracks take you from the basics to modelling, one graded exercise at a time.