Contact

AREAS Function (OpenOffice Calc)

Lookup Intermediate OpenOffice Calc

Count separate reference areas with AREAS in OpenOffice Calc. See tilde unions, blank-cell references and the difference between areas and sheet counts.

Verification status: Eight ordinary AREAS examples were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, using a generated three-sheet ODF workbook. Saved identities, typed results and both controls were checked. No manual-entry, XLSX-import or other-release execution is claimed. How formula examples are checked

Quick answer: =AREAS(H2) produced 1 in the Apache OpenOffice 4.1.16 check below.

Availability and version history

  • Introduced: First release not established; documented by OpenOffice.org 3.3.
  • Supported in: Apache OpenOffice 4.1.16; no final supported release is established.
  • Scope: English desktop Calc, semicolon-separated formulas and local workbook references.
  • Checked: October 14, 2026. Eight examples were recalculated in 4.1.16 on Linux x86-64, Build9816. Generated-ODF identities, saved results and controls were checked; no manual-entry or different-release test is claimed.

What AREAS returns

AREAS counts the individual reference areas in its argument. A rectangular range counts as one area regardless of its size or how many cells contain data. A union can contain several areas. This is a structural count of references, not a count of numbers, nonblank cells or worksheet tabs. Release implementation.

Syntax and arguments

AREAS(Reference)

Reference is one cell, a range or a multiple-area reference. The tested union operator is ~; the examples enclose a union in parentheses before passing it to AREAS. It is not a quoted address string.

Reproducible setup

Create three local sheets named Reference, Inputs and Archive, in that order, and place the formulas on Reference. H4 is a genuinely empty cell. No values need to be entered in the cited areas for AREAS to count them.

Eight checked examples

All eight formulas were recalculated. Quotation marks identify text results; unquoted #N/A identifies an error. Logical tests in the explicitly number-formatted output cells are shown as 1/0. Reference expectations follow the inspected callback, workbook structure and ordinary arithmetic.

Formula Independent/source reference Saved 4.1.16 result
=AREAS(H2) 1 1
=AREAS(H2:H3) 1 1
=AREAS(H2:J8) 1 1
=AREAS((H2~J2)) 2 2
=AREAS((H2:H3~J2:J3)) 2 2
=AREAS((H2~J2~L2)) 3 3
=AREAS(Inputs.A1:Archive.A1) 1 1
=AREAS(H4) 1 1

Practical worksheet

Suppose one report uses H2:H3 and a separate block J2:J3. =AREAS((H2:H3~J2:J3)) returns 2, while =AREAS(H2:J8) returns 1. The latter rectangle contains 21 cell positions, but it is still a single area. Use a cell-counting function when your question concerns entries or dimensions rather than the reference’s composition.

The empty-cell case matters when validating a selection: =AREAS(H4) returns 1 even though H4 is empty. An area count does not prove the selected range contains usable data.

Advanced interpretation and checks

The inspected callback treats a single-cell reference and a rectangular range as one area; a reference list contributes its number of entries. The three disjoint cells in =AREAS((H2~J2~L2)) therefore yield 3.

A three-dimensional range has another distinction. =AREAS(Inputs.A1:Archive.A1) returned 1 even though that contiguous range spans two sheets. AREAS counts the reference area; SHEETS counts the sheet span. Keep those questions separate when checking a consolidation formula.

The examples establish the supplied disjoint unions and contiguous three-dimensional reference. They do not establish a general deduplication policy for overlapping or repeated reference lists.

Boundaries and troubleshooting

The source requires exactly one argument and checks that its value is a reference or reference list. Do not pass several separate function arguments when you intend one union. Likewise, text such as "H2:H3" is text until another operation constructs a reference.

External workbook references, broken references and overlapping-area normalization were not executed. Sheet insertion or structural edits can change a reference’s extent; an unchanged AREAS result alone is not a complete workbook-integrity check.

Official evidence and checking scope

The generated ODF was opened in the native GUI, hard-recalculated and saved separately. The informational ā€œNot all attributes could be readā€ load warning was retained. A deliberately stale SUM cache refreshed to 3, and an uncached SUM returned 7. The exact local inputs, sheet order, formula identities and saved values were reconciled. The authoring-tool XLSX and its previews were not used as native calculation evidence. Only the listed cases and release are covered.