Summary

The Excel AREAS function returns the number of areas in a given reference. For example, =AREAS((A1:C1,A2:C2)) returns 2. Multiple references must be enclosed in an extra set of parentheses.

Purpose
Get the number of areas in a reference.
Return value
A number representing number of areas.
Syntax
=AREAS(reference)
  • reference - Reference(s) to a cell or range of cells.

Using the AREAS function

The AREAS function returns the number of areas in a given reference as a number. In this context, areas mean separate contiguous ranges. AREAS takes just one argument, called reference. Reference can include more than one reference, but you must separate multiple references with a comma and wrap them in an extra set of parentheses. Otherwise, Excel will think the commas indicate multiple arguments and generate an error about entering too many arguments.

Examples

The formulas below show how the AREAS function can be configured. Notice the first example does not need an extra set of parentheses, since there is just one reference. However, the examples following do need the extra set of parentheses.

=AREAS(A1:C1) // returns 1
=AREAS((A1:C1,A2:C2)) // returns 2
=AREAS((F17:F19,J16:J18,I8)) // returns 3

Support Exceljet

Many websites (including Exceljet) have lost over half their traffic in the past year because of the crushing impact of AI on web searches. Exceljet is still at it, publishing free content each week. If you find Exceljet helpful, you can support the site and go ad-free with the Exceljet Lifetime Pass. One payment, no subscription, and ads are gone forever. Plus, you get our Excel Shortcuts video course as a thank you.

Get the Lifetime Pass

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.