AREAS in Calligra Sheets: Count Separate Reference Blocks Rather Than Cells
Learn Calligra Sheets AREAS with exact arguments, reproducible inputs, independently checked results and implementation-specific cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer
AREAS counts the rectangular reference areas supplied to it. A single cell is one area; a contiguous block containing hundreds of cells is also one area. Use it to check reference structure, not to count records, filled cells or distinct values.
Syntax and a Calligra-specific caution
=AREAS(reference)
There is one required argument, with no optional arguments or defaults. In the release source, a valid reference region returns the number of rectangles in that region. A conventional contiguous range returns 1. Cell values do not determine the result.
The KDE handbook entry also displays AREAS((A1; A2:A4)) with a result of 2. However, the release implementation has a separate fallback accepting a parenthesized text string with comma-separated references. These are different parser paths. This guide does not silently substitute one separator for another or claim the handbook’s unquoted union expression has been verified in a current native build.
Reproduce the reliable single-area cases
- In A1 enter 7. In A2:B3 enter the numeric block shown below; leave A4:B6 empty.
- Put the formulas in D2:D5, outside the referenced data.
- Compare the area count with the actual shape of each reference.
| Row | A | B |
|---|---|---|
| 2 | 1 | 3 |
| 3 | 2 | 4 |
| Output cell | Formula | Expected result | Reason |
|---|---|---|---|
| D2 | =AREAS(A1) |
1 | A single cell is one area |
| D3 | =AREAS(A2:B3) |
1 | Four cells in one rectangle |
| D4 | =AREAS(A2:B6) |
1 | Empty cells do not split a rectangle |
| D5 | =AREAS(B6) |
1 | An empty cell is still a reference |
These expectations follow the documented definition and inspected implementation; selected native cases are recorded below. Change A2’s number or erase B3’s value: the reference shape stays the same and the expected AREAS result stays 1. Expanding A2:B3 to A2:B6 changes the cell count but not the area count.
Advanced example: a split input-block audit
Suppose one input block occupies A2:A3 and another occupies C2:C4, with column B reserved for explanatory labels. The blocks are not contiguous. The release’s explicit string-parser path can represent those two pieces as:
=AREAS("(A2:A3,C2:C4)")
Result: 2, also observed for this quoted-string formula in Calligra Sheets 25.04.2. The commas are inside a quoted string; they are not ordinary function argument separators. The string starts with ( and ends with ). The implementation validates each piece as a region and increments its count. Keep each piece a simple cell/range reference and omit unnecessary spaces in this diagnostic fixture.
If the intended template requires two input blocks, a returned 1 would flag that the supplied reference description represents only one block, while 2 would pass this structural check. It would not prove that the values, labels, dimensions, or business meaning of those blocks are correct. Text references also do not provide the same assurance as live references about automatic adjustment when cells are inserted or moved; recheck the literal text after a layout change.
Errors, limits and troubleshooting
=AREAS(A2;C2)supplies two function arguments. Registration accepts only one; adding ordinary argument separators is not how to create a multi-area reference.=AREAS("A2:A3")does not follow the implementation’s parenthesized string form. The fallback explicitly returns a value error when the outer parentheses are absent.- An invalid component in the parenthesized string is rejected by region validation. Do not use this parser to validate arbitrary untrusted strings or complicated sheet names without a native check.
- Overlapping or repeated pieces are not a distinct-cell-count operation. The string fallback counts parsed pieces, so do not infer that repeated/overlapping cells are deduplicated.
- A range full of blanks still has an area. Use an appropriate counting function when the question is how many entries are present.
- This page intentionally does not promise a working union operator for every locale, workbook format or Calligra release. The native union observation uses
~, as explained below; the handbook’s semicolon spelling is not established by that observation.
Compatibility and alternatives
Separate function separators, reference-union syntax and characters inside quoted text. They are not interchangeable. A multi-area expression copied from another spreadsheet may be parsed differently even when the function has the same name. The Calligra string fallback is implementation-specific evidence, not a claim of portable Excel or Calc syntax.
Use ROWS and COLUMNS for the dimensions of a contiguous block. For A2:B6 those counts are 5 and 2, whereas AREAS remains 1. Use COUNTA to count nonempty values. Those questions are intentionally different from the number of reference blocks.
Availability and verification
- Release checked: Calligra Sheets 26.08.2, using KDE’s release source package and release information, inspected on October 18, 2026. Relevant locations:
sheets/functions/reference.cpplines 52–56 and 207–240;sheets/functions/reference.xmlAREAS entry. - Introduced: The original introduction version is not established by these sources. Current registration establishes presence in 26.08.2, not the first release.
- Lifecycle: Registered in the inspected release; no retirement or deprecation marker was found in this function’s registration. Retirement (removed support) and deprecation (discouraged but retained support) are different claims; neither is asserted here.
- Native testing: Selected examples were recalculated and saved in Calligra Sheets 25.04.2. The source discussion concerns 26.08.2; these are different evidence scopes. Other examples and edge cases remain source-derived or independently calculated.
Related guides and sources
- ROWS
- COLUMNS
- COUNTA
- Calligra function guide index
- KDE formula entry instructions, checked October 18, 2026. Examples use leading
=and semicolons, with a period for decimal numbers. Confirm regional separators in your installation before pasting.
Native union syntax versus the handbook
The observed formula bar in Calligra Sheets 25.04.2 reads =AREAS((A1~A2:A4)), with a tilde between the references, and the result is 2. The saved ODS expression is =AREAS(([.A1]~[.A2:.A4])); bracketed references are its stored serialization. The original fixture description used the handbook’s semicolon spelling, but that label is not the executed expression. This run establishes the tilde form in the tested workbook, not successful direct entry of the handbook semicolon form.
Selected native results and screenshot
The following results were observed in Calligra Sheets 25.04.2 after loading a corrected ODS fixture, recalculating and saving it. Saved formula expressions were read back and checked against the displayed results. An earlier XLSX import had rewritten range references incorrectly; those results are excluded. This confirms these selected cases, not a successful XLSX round trip or a native test of 26.08.2.
| Executed expression shown in native notation | Native displayed result |
|---|---|
=AREAS(A1) |
1.0000000000 |
=AREAS(A2:B6) |
1.0000000000 |
=AREAS("(A2:A3,C2:C4)") |
2.0000000000 |
=AREAS((A1~A2:A4)) |
2.0000000000 |

Screenshot: Genuine native 25.04.2 capture. Cell F5 shows =AREAS((A1~A2:A4)) and displays 2.0000000000. Column F contains native results; column G contains fixture labels and column H contains reference expectations, sometimes rounded to two decimals, not additional application calculations. The G5 label uses a semicolon, but the selected formula bar and saved expression use the tilde form described above.
Relevant released function source was independently compared between 25.04.2 and 26.08.2 and found byte-identical for the inspected implementations. This supports the source discussion without upgrading an older-version GUI run into a 26.08.2 native test. Other platforms, locales and unlisted edge cases remain unverified.