AVERAGEA Function (LibreOffice Calc)
Average mixed data in LibreOffice Calc with AVERAGEA. Include text as zero, distinguish blanks and empty strings, preserve logical values and compare a numeric-only mean.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: AVERAGEA includes text as zero when calculating a mean. Its denominator can differ from AVERAGE, so the stored types matter.
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.
The AVERAGEA function in LibreOffice Calc is used for this task: Returns the average value for a sample. Text is evaluated as zero. Average numeric values, with different treatment of non-numeric inputs than AVERAGE.
This guide explains how to read the formula, reproduce a concrete example, interpret its result and recognize common input mistakes.
Syntax and arguments
=AVERAGEA(value1 [; value2; ...; value255])
| Argument | Required? | Meaning |
|---|---|---|
value1 |
Yes | First value, reference or range. |
value2; ...; value255 |
No | Further values, references or ranges; square brackets and ellipsis are syntax notation, not typed characters. |
Calc formulas normally use semicolons (;) between arguments in common configurations; the displayed separator may depend on settings or locale.
Worked example
=AVERAGEA(2;4;6)
Expected result: 4.
Why it works: Average numeric values, with different treatment of non-numeric inputs than AVERAGE.
How to use it in your own spreadsheet
- Identify the cells or inputs that correspond to the sample values above.
- Enter the formula in an empty cell, changing the references or literal values to match your sheet.
- Compare the output with a manual check on a small known example.
- Extend the formula to a larger dataset only after you understand the result.
Common problems and practical checks
- Confirm that the data represents the intended sample, population, rate or cash-flow timing.
- Keep units and percentage conventions consistent; a mathematically valid result can still answer the wrong question.
- A pasted formula may produce an error when it uses the other program’s argument separator or unsupported options.
Additional worked application and edge cases
Full argument contract
AVERAGEA accepts one required argument and optional additional arguments, up to 255 arguments in the current Help syntax. Arguments can be values, references or ranges. A range counts as one supplied argument, not one argument per cell.
Text contributes a value of 0 and participates in the denominator. Logical TRUE and FALSE contribute1 and0. Genuinely empty cells are skipped; a formula returning an empty string is a text value and therefore contributes0. Error values are not a documented request to discard a row and can propagate an error.
Stepwise example: include different stored types
Set up the cells exactly:
| Cell | Entry | Contribution to AVERAGEA |
|---|---|---|
| A2 | Number10 | 10 |
| A3 | Text pending | 0 |
| A4 | =TRUE() |
1 |
| A5 | =FALSE() |
0 |
| A6 | Leave genuinely empty | skipped |
| A7 | ="" |
0 |
=AVERAGEA(A2:A7) has independently expected result 2.2: total11 divided by five included values. Counting all six physical cells would give the wrong denominator because A6 is genuinely empty.
If A7 is cleared completely rather than containing an empty-string formula, there are four included values and the result becomes 2.75. The visible sheet can look similar, but the stored input types have changed.
Second example: numeric-looking text
Enter numeric10 in D2, numeric20 in D3, and ="30" in D4. =AVERAGEA(D2:D4) is expected to return 10, because the text30 contributes0 and is counted: (10+20+0)/3.
For those same referenced cells, =AVERAGE(D2:D4) is expected to return 15, ignoring the text cell. This comparison is specifically about referenced numeric/text data; it does not assert identical coercion rules for every direct literal or logical-input form.
Advanced application: make zero-coding a deliberate policy
AVERAGEA is useful only if treating a text status as zero matches the intended analysis. A text entry “not measured” generally does not establish that the actual quantity was zero. Keep the status in a separate column or clean the measurement column when missingness should be excluded rather than penalized.
For a completion score where TRUE and FALSE deliberately mean1 and0, a mean can describe a fraction of successful cases. Mixing additional text labels into that range increases the denominator with zero contributions. That might be intended, but it should be explicit rather than an accidental consequence of choosing AVERAGEA.
Troubleshooting
Inspect stored types when a mean is unexpectedly low. Use ISTEXT to identify numeric-looking text and ISBLANK to distinguish genuine empty cells from empty-string formulas. Do not replace VALUE parsing with AVERAGEA and expect imported numeric text to become its apparent number.
If there are no included values, a mean has no valid divisor; do not interpret the resulting error as a measured zero. A single included numeric value averages to itself. Preserve the original all-numeric2,4,6 example above as a historical control while using the mixed fixture to understand the additional behavior.
- Pinned Calc aggregation implementation, inspected October17,2026, source review only.
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
Documentation and verification
- LibreOffice Calc Help
- The standalone example was calculated using LibreOffice Calc 25.2.3.2 on October 9, 2026 and its computed result matched the expected value. This does not certify every option, version, or other example.