← All functions

MAXA

Quirk found

Category: Statistical · Last tested 2026-09-01

Real compatibility results for the MAXA function: executed in Excel for the web, Google Sheets and LibreOffice Calc, with desktop Excel behavior from Microsoft’s official documentation (we do not run desktop Excel — Excel for the web is a different application and is executed separately). Syntax and links to that documentation are below.

Support matrix

EngineDocumentedLive-testedVerdict
Excel (desktop)Yes No — documented only n/a
Excel for the web— Yes (recalc, 2026-09-01) Quirk found
Google SheetsYes Yes (Drive import, 2026-08-31) Quirk found
LibreOffice CalcYes Yes (25.8.7.3, 2026-08-31) Supported, behaves as documented

LibreOffice version history

We executed the same test cases under each LibreOffice release to show exactly when MAXA’s support changed — not documentation claims, real results.

LibreOffice versionVerdictTested
24.2.0.3 Supported, behaves as documented 2026-08-31
24.8.7.2 Supported, behaves as documented 2026-08-31
25.2.0.3 Supported, behaves as documented 2026-08-31
25.8.7.3 Supported, behaves as documented 2026-08-31

Why isn’t MAXA working in Google Sheets?

MAXA runs in Google Sheets, but our executed cases show it does not match Excel’s documented behavior on every input (the failing cases are listed on this page). If a formula that behaves one way in Excel gives you a different answer in Sheets, compare your usage against those cases before assuming your data is wrong.

Discovered quirks

Executed test cases

Excel for the web (executed 2026-09-01 via OneDrive recalculation)

These values come from Excel for the web, not from desktop Excel. They are two different implementations of the calculation engine, and this run measured only the web one: the corpus was uploaded to OneDrive as .xlsx, recalculated by Excel for the web on open, and downloaded again for readback. Excel for the web is a rolling service with no pinnable version, so the run is identified by its date. Where a value here disagrees with the Expected column — which is Microsoft’s documentation of the desktop product — we cannot tell you whether the web engine diverges from the desktop one or the documentation is wrong about both, because we do not run desktop Excel.

FormulaDescriptionResultExpectedVerdict
=MAXA(A1:A5) Microsoft's documented example: the largest value in a range where TRUE is counted as 1 1 1
Provenance

Excel documents MAXA as evaluating a logical TRUE in a range as 1, so the answer is 1 rather than 0.5; MAX over the same range would return 0.5 because MAX ignores logicals in ranges

Matched
=MAXA(A1:A3) DIVERGENCE PROBE: all-negative numbers plus a text cell -- Excel counts the text as 0, which becomes the maximum 0 0
Provenance

Microsoft's MAXA page carries two remarks that contradict each other for this exact input: 'Arguments that contain text or FALSE evaluate as 0 (zero)' and, one line later, 'Empty cells and text values in the array or reference are ignored'. We assert the text-evaluates-as-0 reading, because AVERAGEA's page carries the identical contradictory pair and settles it with a worked example (28/5 = 5.6) in which range text counts as 0. Under that reading the answer is 0 (0 > -3); under the 'ignored' reading it would be -3. The point of this case is to record which reading each engine actually implements

Matched
=MAXA(A1:A3) FALSE in a range is evaluated as 0, so it wins over negative numbers 0 0
Provenance

Excel documents logical FALSE as 0 for MAXA; 0 > -1 so the maximum is 0

Matched
=MAXA(TRUE,0.5) A logical typed directly as an argument is also coerced (TRUE -> 1) 1 1
Provenance

Excel documents that MAXA evaluates TRUE as 1 whether it comes from a range or is typed as an argument

Matched
=MAXA(A1:A4) Truly empty cells are ignored (they are not counted as 0) -2 -2
Provenance

Excel documents empty cells in a reference as ignored by MAXA (this remark is not contradicted elsewhere on the page, unlike the text remark), so the maximum is the largest actual number, -2, and NOT 0

Matched
=MAXA("abc",-5) A non-numeric string typed directly as an argument is documented as evaluating to 0, which then wins #VALUE! 0
Provenance

Verbatim from Microsoft's MAXA page: 'Arguments that contain text or FALSE evaluate as 0 (zero)'. Under that rule the literal "abc" becomes 0, which is larger than -5. (MAX's page carries the opposite rule -- text that cannot be translated into numbers causes an error -- so this case checks that an engine applies the A-variant rule and not MAX's)

Mismatch
=MAXA(NA()) An error value passed as an argument propagates instead of being coerced #N/A #N/A
Provenance

Error values are not among the things MAXA coerces; NA() produces #N/A and that error is the result of the whole expression

Matched

Google Sheets (executed 2026-08-31 via Drive import)

Google Sheets is a rolling service with no pinnable version, so this run is identified by its date. The corpus was imported to Drive as .xlsx, recalculated by Sheets, and exported back for readback.

FormulaDescriptionResultExpectedVerdict
=MAXA(A1:A5) Microsoft's documented example: the largest value in a range where TRUE is counted as 1 1 1
Provenance

Excel documents MAXA as evaluating a logical TRUE in a range as 1, so the answer is 1 rather than 0.5; MAX over the same range would return 0.5 because MAX ignores logicals in ranges

Matched
=MAXA(A1:A3) DIVERGENCE PROBE: all-negative numbers plus a text cell -- Excel counts the text as 0, which becomes the maximum 0 0
Provenance

Microsoft's MAXA page carries two remarks that contradict each other for this exact input: 'Arguments that contain text or FALSE evaluate as 0 (zero)' and, one line later, 'Empty cells and text values in the array or reference are ignored'. We assert the text-evaluates-as-0 reading, because AVERAGEA's page carries the identical contradictory pair and settles it with a worked example (28/5 = 5.6) in which range text counts as 0. Under that reading the answer is 0 (0 > -3); under the 'ignored' reading it would be -3. The point of this case is to record which reading each engine actually implements

Matched
=MAXA(A1:A3) FALSE in a range is evaluated as 0, so it wins over negative numbers 0 0
Provenance

Excel documents logical FALSE as 0 for MAXA; 0 > -1 so the maximum is 0

Matched
=MAXA(TRUE,0.5) A logical typed directly as an argument is also coerced (TRUE -> 1) 1 1
Provenance

Excel documents that MAXA evaluates TRUE as 1 whether it comes from a range or is typed as an argument

Matched
=MAXA(A1:A4) Truly empty cells are ignored (they are not counted as 0) -2 -2
Provenance

Excel documents empty cells in a reference as ignored by MAXA (this remark is not contradicted elsewhere on the page, unlike the text remark), so the maximum is the largest actual number, -2, and NOT 0

Matched
=MAXA("abc",-5) A non-numeric string typed directly as an argument is documented as evaluating to 0, which then wins #VALUE! 0
Provenance

Verbatim from Microsoft's MAXA page: 'Arguments that contain text or FALSE evaluate as 0 (zero)'. Under that rule the literal "abc" becomes 0, which is larger than -5. (MAX's page carries the opposite rule -- text that cannot be translated into numbers causes an error -- so this case checks that an engine applies the A-variant rule and not MAX's)

Mismatch
=MAXA(NA()) An error value passed as an argument propagates instead of being coerced #N/A #N/A
Provenance

Error values are not among the things MAXA coerces; NA() produces #N/A and that error is the result of the whole expression

Matched

LibreOffice Calc 25.8.7.3 (tested 2026-08-31)

FormulaDescriptionResultExpectedVerdict
=MAXA(A1:A5) Microsoft's documented example: the largest value in a range where TRUE is counted as 1 1 1
Provenance

Excel documents MAXA as evaluating a logical TRUE in a range as 1, so the answer is 1 rather than 0.5; MAX over the same range would return 0.5 because MAX ignores logicals in ranges

Matched
=MAXA(A1:A3) DIVERGENCE PROBE: all-negative numbers plus a text cell -- Excel counts the text as 0, which becomes the maximum 0 0
Provenance

Microsoft's MAXA page carries two remarks that contradict each other for this exact input: 'Arguments that contain text or FALSE evaluate as 0 (zero)' and, one line later, 'Empty cells and text values in the array or reference are ignored'. We assert the text-evaluates-as-0 reading, because AVERAGEA's page carries the identical contradictory pair and settles it with a worked example (28/5 = 5.6) in which range text counts as 0. Under that reading the answer is 0 (0 > -3); under the 'ignored' reading it would be -3. The point of this case is to record which reading each engine actually implements

Matched
=MAXA(A1:A3) FALSE in a range is evaluated as 0, so it wins over negative numbers 0 0
Provenance

Excel documents logical FALSE as 0 for MAXA; 0 > -1 so the maximum is 0

Matched
=MAXA(TRUE,0.5) A logical typed directly as an argument is also coerced (TRUE -> 1) 1 1
Provenance

Excel documents that MAXA evaluates TRUE as 1 whether it comes from a range or is typed as an argument

Matched
=MAXA(A1:A4) Truly empty cells are ignored (they are not counted as 0) -2 -2
Provenance

Excel documents empty cells in a reference as ignored by MAXA (this remark is not contradicted elsewhere on the page, unlike the text remark), so the maximum is the largest actual number, -2, and NOT 0

Matched
=MAXA("abc",-5) A non-numeric string typed directly as an argument is documented as evaluating to 0, which then wins 0 0
Provenance

Verbatim from Microsoft's MAXA page: 'Arguments that contain text or FALSE evaluate as 0 (zero)'. Under that rule the literal "abc" becomes 0, which is larger than -5. (MAX's page carries the opposite rule -- text that cannot be translated into numbers causes an error -- so this case checks that an engine applies the A-variant rule and not MAX's)

Matched
=MAXA(NA()) An error value passed as an argument propagates instead of being coerced #N/A #N/A
Provenance

Error values are not among the things MAXA coerces; NA() produces #N/A and that error is the result of the whole expression

Matched

Docs & syntax

Where MAXA behaves differently