Statistical function

MAXA function

Returns the largest value in a list, counting TRUE as 1 and text or FALSE as 0 instead of ignoring them.

Available in All versions of Excel, including Microsoft 365 and Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

MAXA(value1, [value2], ...)
ArgumentWhat it means
value1RequiredA value, reference or range.
value2, ...OptionalUp to 255 values in total.

Returns: The largest value after treating TRUE as 1 and text/FALSE as 0.

How MAXA works

MAXA is a variant of MAX that does not skip non-numeric cells. In a range, TRUE counts as 1, FALSE counts as 0, and any text (including "n/a" or a number stored as text) counts as 0. Empty cells are still ignored. This matters when your data uses text placeholders or logical flags and you want them to take part in the comparison.

In practice MAXA gives a different answer from MAX only in two situations: when every number is negative and the range also contains text or FALSE (MAXA then returns 0), or when the numbers are all below 1 and the range contains TRUE (MAXA returns 1). If neither applies, MAX and MAXA agree. Most people want MAX; reach for MAXA deliberately.

Examples

1Text placeholder counts as zero

D2fx=MAXA(B2:B5)
ABCD
1WeekProfit change
21-3.50
32-1.2
43pending
54-4.8

Result: 0

All real numbers are losses. MAX would return -1.2, but MAXA treats "pending" as 0, which is larger, so it returns 0. Use MAXA only if a pending week really should count as zero.

2TRUE counts as 1

D2fx=MAXA(B2:B4)
ABCD
1TaskProgress
2Design0.61
3BuildTRUE
4Test0.25

Result: 1

The team marks finished tasks with TRUE. MAXA reads it as 1 (100%), so the maximum progress is 1, while MAX would ignore it and return 0.6.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#N/A (or another error)A cell in the range holds an error value.Fix or exclude the error cell.
#VALUE!A directly typed argument is text that cannot be read as a number, e.g. =MAXA("abc").Type numbers, or reference cells instead.

Tips

  • Check with =MAX(range)=MAXA(range) whether text or logicals affect your result.
  • Empty cells are ignored by both MAX and MAXA; only cells with content are treated as 0.

Google Sheets

MAXA also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

MAXA in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishMAKSV
FinnishMAKSA
ItalianMAX.VALORI
Norwegian (Bokmål)MAKSA
PolishMAX.A
Portuguese (Brazil)MÁXIMOA
Portuguese (Portugal)MÁXIMOA
RussianМАКСА
TurkishMAKA