Table of Contents
MAXA returns the largest value after treating TRUE as 1 and FALSE as 0. Use it when those logical values should count. For an ordinary numeric range such as test scores, MAX is usually the better fit.
MAXA syntax and a mixed-data example
=MAXA(value1,[value2],...) accepts individual values or a range. Enter -4, -2, and the logical value TRUE in A2:A4. Then compare:
=MAXA(A2:A4)returns 1 because TRUE participates.=MAX(A2:A4)returns -2 because MAX ignores logical values read from a range.
Enter TRUE without quotation marks. A cell containing the text TRUE is different from the logical value.
Find the highest score in a numeric column
If scores are in D5:D9, enter =MAX(D5:D9) in an empty cell such as D10. With only numeric scores, =MAXA(D5:D9) returns the same result. Place the formula outside the input range to avoid a circular reference.


Convert imported numbers before comparing
Do not rely on MAXA to clean a column of numbers stored as text. Convert or validate those cells first with the Excel VALUE function and then apply MAX. For the formal argument rules, see Microsoft's MAXA reference. The basic formulas lesson shows how to check what Excel is actually calculating.
Reader Comments 0
Sign in with email or Google to join the discussion.