Contact

AREAS in WPS Spreadsheet: Count Reference Blocks, Unions and Intersections

Lookup and Reference Intermediate WPS Spreadsheet

Count reference areas in WPS Spreadsheet using contiguous ranges, parenthesized unions and overlapping intersections, with independent geometry examples.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: AREAS counts the areas in a reference. =AREAS(A2:C5) is expected to return 1, although that rectangle contains twelve cells. =AREAS((A2:A5,C2:C5,E2)) is expected to return 3.

Syntax and reference meaning

=AREAS(reference)

The single required argument is a cell reference, a rectangular range, or a multiple-area reference. A single cell is one area. Cell contents do not determine this count: numbers, text and empty cells occupy the same reference geometry.

The WPS lesson demonstrates three operators:

Operator Meaning in the documented examples Example
Colon One contiguous rectangle A2:C5
Comma inside an extra pair of parentheses Separate referenced areas (A2:A5,C2:C5,E2)
Space Cells shared by overlapping references (A2:C5 B3:D6)

Use an extra pair of parentheses around a union. In =AREAS((A2:A5,C2:C5,E2)), the inner parentheses group three references into the one argument AREAS expects. A comma without that grouping can be interpreted as an argument separator.

Worked example: count three report blocks

  1. On a fresh worksheet, reserve A2:A5 for four item labels, C2:C5 for four quantities, and E2 for a report date or title. Their actual contents may be left blank for this example.
  2. Enter =AREAS(A2:A5) in G2. The expected result is 1.
  3. Enter =AREAS((A2:A5,C2:C5,E2)) in G3. The expected result is 3: two vertical ranges and one single-cell reference.
  4. Enter =AREAS(A2:C5) in G4. The expected result is 1, because this is one rectangle, including the intervening B column.

This distinguishes the number of reference blocks from the number of cells, rows, columns or populated entries. A broad bounding rectangle is not equivalent to three separately supplied blocks.

Intersections and overlapping unions

For =AREAS((A2:C5 B3:D6)), the common cells are B3:C5: columns B and C, rows 3 through 5. That six-cell rectangle forms one area, so the independent expected result is 1.

Changing the space to a comma changes the question. In the simpler documented pattern, =AREAS((A2:A5,A2)) returns 2 even though A2 is already contained in A2:A5. The lesson explicitly distinguishes an overlapping union from an intersection. Do not treat AREAS as a general-purpose algorithm for merging overlapping rectangles or counting distinct cells.

Practical use: audit a manually assembled reference

Suppose a report is designed to draw from three disconnected blocks. Keeping its reference expression beside =AREAS((A2:A5,C2:C5,E2)) gives an expected structural count of three. If someone replaces that expression with the single bounding rectangle A2:E5, the count becomes one, signalling a different reference layout.

This is a narrow structural check. It does not prove that the right three blocks were selected, that their contents are valid, or that no records overlap. Inspect the addresses and any downstream totals separately. Typing text such as "A2:C5" is also different from passing the reference A2:C5; this guide does not establish text-to-reference coercion.

Troubleshooting and unverified boundaries

  • Use ordinary ASCII parentheses and commas. The lesson’s prose includes full-width punctuation in one displayed intersection expression; the formulas here use standard characters.
  • Preserve the space between the two references in an intersection. Removing it changes the expression.
  • Do not infer a specific error result for a nonoverlapping intersection from these successful overlapping examples. The cited lesson does not document that boundary.
  • Empty argument lists, invalid references, external workbooks, three-dimensional references and named-reference expansion are outside the demonstrated contract. No error code or support guarantee is assigned to those cases here.

Evidence, availability and compatibility

The official WPS Academy AREAS lesson, published 2019-06-13, is the product-specific source for this guide. It was reviewed on October 18, 2026. Its applicability field explicitly identifies WPS Office for Windows Personal, without a numeric build. The publication date establishes that the function was documented by that date; the first release and last supported version remain unknown. The cited lesson does not identify the function as deprecated or retired.

The examples are original, independently calculated expectations based on that documented contract. They were not executed in WPS, and no application screenshot is presented. Before exchanging a workbook, check the formula in the intended WPS edition and locale. These examples use the lesson’s English function names and comma separators; localized entry and file-format round trips have not been tested.

  • INDEX: return a value or reference at a specified position
  • COUNTA: count populated values rather than reference areas