AREAS function
Counts how many separate areas (blocks of cells) a reference contains.
Available in All versions of Excel, including Microsoft 365, Excel for the web and Excel for Mac
In every Excel versionNot in Google Sheets
Syntax
AREAS(reference)| Argument | What it means | |
|---|---|---|
reference | Required | A reference or defined name. To pass several ranges, wrap them in an extra pair of brackets: AREAS((A1:B2, D1:D5)). |
Returns: A whole number - the count of areas in the reference.
How AREAS works
An area is one rectangular block of cells. Most references, like B2:E4, are a single area, but Excel also allows multi-area references - several blocks separated by commas, such as a named range that covers the North and East rows but not South. AREAS tells you how many blocks a reference is made of.
You will rarely need it in everyday sheets. It is mainly used to check named ranges built by other people, and together with the area_num argument of INDEX, which lets you pick one block out of a multi-area reference. When you type the ranges directly in the formula you must add an extra set of brackets, otherwise Excel thinks you are passing several arguments and reports an error. A space between two ranges is Excel's intersection operator, and the overlap counts as one area.
Examples
1Two separate blocks
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Region | Q1 | Q2 | Q3 | Q4 |
| 2 | North | 12500 | 14200 | 13900 | 16100 |
| 3 | South | 9800 | 10400 | 11250 | 12030 |
| 4 | East | 7600 | 8150 | 8900 | 9420 |
| 5 | |||||
| 6 | 2 |
Result: 2
The North row and the East row are listed separately, so the reference has 2 areas. Note the double brackets.
2One rectangular range
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Region | Q1 | Q2 | Q3 | Q4 |
| 2 | North | 12500 | 14200 | 13900 | 16100 |
| 3 | South | 9800 | 10400 | 11250 | 12030 |
| 4 | East | 7600 | 8150 | 8900 | 9420 |
| 5 | |||||
| 6 | 1 |
Result: 1
A single block, however large, is one area.
3Intersection counts as one
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Region | Q1 | Q2 | Q3 | Q4 |
| 2 | North | 12500 | 14200 | 13900 | 16100 |
| 3 | South | 9800 | 10400 | 11250 | 12030 |
| 4 | East | 7600 | 8150 | 8900 | 9420 |
| 5 | |||||
| 6 | 1 |
Result: 1
The space operator returns the overlap of the two ranges (C2:C4), which is a single block.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NULL! | An intersection with a space finds no overlapping cells. | Check that the two ranges actually overlap. |
Too many arguments message | Several ranges were passed without the extra brackets. | Write AREAS((A1:A3, C1:C3)). |
Tips
- Use with INDEX:
=INDEX((B2:E2, B4:E4), 1, 3, 2)returns column 3 of the second area (East's Q3). - Name Manager can define multi-area names; AREAS is a quick way to confirm how many pieces such a name has.
Google Sheets
Not available; there is no equivalent, as Google Sheets references do not combine several areas in one argument.
AREAS in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | POČET.BLOKŮ |
| Danish | OMRÅDER |
| Dutch | BEREIKEN |
| Finnish | ALUEET |
| French | ZONES |
| German | BEREICHE |
| Hungarian | TERÜLET |
| Italian | AREE |
| Norwegian (Bokmål) | OMRÅDER |
| Polish | OBSZARY |
| Portuguese (Brazil) | ÁREAS |
| Portuguese (Portugal) | ÁREAS |
| Russian | ОБЛАСТИ |
| Swedish | OMRÅDEN |
| Turkish | ALANSAY |