Lookup & reference function

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)
ArgumentWhat it means
referenceRequiredA 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

B6fx=AREAS((B2:E2, B4:E4))
ABCDE
1RegionQ1Q2Q3Q4
2North12500142001390016100
3South9800104001125012030
4East7600815089009420
5
62

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

B6fx=AREAS(B2:E4)
ABCDE
1RegionQ1Q2Q3Q4
2North12500142001390016100
3South9800104001125012030
4East7600815089009420
5
61

Result: 1

A single block, however large, is one area.

3Intersection counts as one

B6fx=AREAS(B2:E4 C1:C4)
ABCDE
1RegionQ1Q2Q3Q4
2North12500142001390016100
3South9800104001125012030
4East7600815089009420
5
61

Result: 1

The space operator returns the overlap of the two ranges (C2:C4), which is a single block.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 16 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NULL!An intersection with a space finds no overlapping cells.Check that the two ranges actually overlap.
Too many arguments messageSeveral 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.

LanguageFunction name
CzechPOČET.BLOKŮ
DanishOMRÅDER
DutchBEREIKEN
FinnishALUEET
FrenchZONES
GermanBEREICHE
HungarianTERÜLET
ItalianAREE
Norwegian (Bokmål)OMRÅDER
PolishOBSZARY
Portuguese (Brazil)ÁREAS
Portuguese (Portugal)ÁREAS
RussianОБЛАСТИ
SwedishOMRÅDEN
TurkishALANSAY