MAXA Function in LibreOffice Calc — Tested Examples
Find a maximum across mixed data with LibreOffice MAXA. Show text-as-zero effects on negative numbers, compare referenced MAX and distinguish empty data from a real zero.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: MAXA takes the largest value after treating text as zero and logical values as one or zero. Text can unexpectedly dominate a negative-only dataset.
Availability and version history
- Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
- Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
Returns the maximum value in a list of arguments. Text is evaluated as Zero. TRUE is treated as 1 and FALSE as 0. In the second example, the maximum of FALSE (0) and −2 is 0.
Syntax and arguments
=MAXA(Value1 [; Value2; ...])
Square brackets mark optional arguments; do not type the brackets or ellipsis. Separate arguments with semicolons (;).
| Argument | Explanation |
|---|---|
Value1 |
First value, cell reference or range. |
Value2; ... |
Optional further values or ranges; the Help documents up to 255 arguments. |
Text participates as zero in this function. This differs from MAX ignoring text in referenced data.
Worked examples
Example 1: Compare numeric and logical values
=MAXA(TRUE();2)
Expected result: 2. This value was returned in the LibreOffice Calc 25.2 test.
Example 2: Include FALSE as zero
=MAXA(FALSE();-2)
Expected result: 0. This value was returned in the LibreOffice Calc 25.2 test.
How to interpret the result
TRUE is treated as 1 and FALSE as 0. In the second example, the maximum of FALSE (0) and −2 is 0.
Mistakes and troubleshooting
- Check inputs and assumptions: In Calc, MAX and MAXA retain numeric/logical values alike; MAXA additionally treats text as zero. Check whether text/status entries are intentional.
- Check argument order and format: Strings go in quotes, cell references do not. Functions that return arrays may require special entry.
- Verify your own data: Reproduce the example first. If your formula returns an error, inspect the referenced cells and individual argument values.
Additional worked application and edge cases
Stepwise example: a text status exceeds negative measurements
Enter numeric -8 in A2, numeric -3 in A3, text pending in A4 and leave A5 empty. In C2 enter =MAXA(A2:A5).
The independently expected result is 0. The text contributes zero, which is greater than both negative measurements. In contrast, =MAX(A2:A5) is expected to return -3, because MAX ignores text cells in this referenced range.
This distinction matters for negative temperatures, losses or signed residuals. A zero maximum can come from a status label rather than an actual observed zero.
Second example: a positive observation still wins
Enter numeric 2 in A6. =MAXA(A2:A6) is expected to return 2. Text still contributes zero, but the positive observation is greater. MAXA does not unconditionally force zero whenever text is present.
If A4 contains ="12" instead of pending, that numeric-looking text still contributes zero under MAXA’s text rule. It does not contribute the number 12. Validate and convert imported numbers explicitly if their numeric value should participate.
Advanced application: keep status separate from value
For a table of signed daily changes, use a numeric measurement column and a separate status column when pending means “unknown.” Including pending in a MAXA range would encode it as zero, which may overstate the maximum relative to the observed negative values.
If zero-coding is intentionally part of a score, MAXA can express it. Make that policy visible alongside the formula. The choice between MAX and MAXA is a data-definition decision, not merely a different spelling of the same operation.
Empty strings, empty ranges and logical inputs
A genuinely empty cell is not the same as a formula returning "". The latter is text and contributes zero. This can change a negative-only maximum even when the sheet appears blank in that row.
The original examples already show logical TRUE as one and FALSE as zero and remain unchanged. These values can also change the maximum when compared with negative data. Avoid mixing flags with measurements unless that is deliberate.
LibreOffice Help says MAXA returns zero when it encounters no numeric or text value and no error. A zero from an entirely empty range is therefore not evidence that zero was measured. Check the count of valid observations if that distinction matters.
Errors and reference-specific comparisons
Error cells are not included in the Help’s no-value fallback condition. Inspect them rather than assuming MAXA ignores errors. A blanket IFERROR(…;0) may hide a problem and produce the same misleading zero as a text status.
The MAX comparison above is about a referenced range. Help separately warns that a literal nonnumeric string passed directly to MAX produces an error. Do not extrapolate text-ignoring behavior to every literal-input form. The existing syntax’s documented 255-argument limit is preserved; a range is one argument, not a limit of 255 cells.
Verification scope for this addition: These added results were independently calculated or derived from the cited documentation/source. They were not newly tested in LibreOffice Calc. The original example-specific Calc 25.2.3.2 claims elsewhere on this page remain historical and apply only to those original examples. The cited 26.8.1.1 source tag is a code reference, not a claim of a new run in that release.
Related functions
Tested version and primary reference
2 example(s) on this page passed real calculations in LibreOffice Calc 25.2.3.2. This is not a claim about every possible input or other spreadsheet applications.