How to use AREAS Function in Excel?

The AREAS function in Excel helps users work with multiple ranges within a worksheet. It returns the number of ranges in a reference, making it useful for complex formulas. This tutorial will cover how to use the AREAS function, including identifying and counting ranges, using the function within a formula.

This Tutorial Covers:

  1. What is the AREAS Function
    • Syntax of AREAS Function
    • Arguments of AREAS Function
    • Return value of AREAS Function
  2. Usage notes
  3. Usage and Examples
    • Example 1- Basic usage
    • Example 2- Count the number of areas of a specific defined name range
  4. Things to remember in AREAS function
  1. What is the AREAS Function?

A lookup/reference function in Excel is the AREAS Function. It returns an integer value that indicates the number of separate areas within a reference, which can be useful when working with complex formulas or manipulating large sets of data. The AREAS function is particularly helpful for users who need to work with multiple ranges within a worksheet and can be used in combination with other Excel functions to perform various calculations and data analysis tasks.

Starting with Microsoft Excel 2007, it is available.

  • Syntax of AREAS Function:

The syntax for the AREAS function is as follows:

=AREAS(reference)

AREAS function

  • Arguments of AREAS Function:

The following argument is used by the Excel AREAS function:

Reference (required argument) – This can be a named range, a normal Excel reference, or a collection of references.

  • Return value of AREAS Function:

The number of regions that make up the reference is represented by the numeric value that the regions function returns.

2. Usage notes:

The AREAS function produces a number indicating how many areas there are in the provided reference. Areas here refer to distinct, continuous ranges. AREAS only accepts the reference parameter. Reference may contain numerous references, but each reference must be separated with a comma and enclosed in its own set of parentheses. If not, Excel will interpret the commas as several arguments and will complain that you entered too many.

3. Usage and Examples:

Here are a few examples of how to apply the Excel AREAS formula.

  • Example 1- Basic usage:

A straightforward Excel function is AREAS.

Area = ranges or single cell

As a result, when we enter the formula AREAS(E1), we obtain the value 1.

AREAS function

Let’s now see how the function responds to ranges as a reference. The formula used is

=AREAS(D4:E8), as shown in the screenshot below.

AREAS function

The range that was chosen only has one value, hence this method will return 1.

In the example that follows, two ranges are chosen. The outcome of the formula, =AREAS((C1:C3,E1:E3)), is 2. We open a bracket, present ranges separated by columns, and then shut the brackets to allow the user to select more than one range.

AREAS function

Similar to this, selecting 3 ranges will yield a result of 3, selecting 4 ranges will yield a result of 4, and so on. Keep in mind that each range needs to be separated by a comma to avoid receiving a #NAME? error.

AREAS function

One of Excel’s less practical information functions is AREAS. The function only has one purpose: to return how many areas there are in a specified range of references. Practically, it is not necessary at all because Excel operations like SUM can handle universal references without requiring it. Furthermore, since we may use INDEX(Range,0,0,1) to refer to the first area of a generic range reference, it is not necessary when working with functions that can only handle single area ranges (like SUMIF).

  • Example 2- Count the number of areas of a specific defined name range:

The AREAS function can be used to count the number of ranges contained in a provided name.

Suppose you have a dataset like the one below and you want to use the AREAS formula in Excel to determine how many areas there are in “CategoryA” if the name “CategoryA” has been defined.

AREAS function

The steps to count the number of areas of a specific defined name range in Excel are described below:

Step 1: Apply the below formula in cell J2.

=AREAS(CategoryA)

AREAS function

Two areas are included in the total.

4. Things to remember in AREAS function:

  1. We can either type the complete formula or, after typing “=AREAS(” into a cell, use CTRL + A to open the “Insert Function Dialog Box” for more specific instructions without leaving the cell.

AREAS function

2. When the reference provided is in the wrong format, a #NULL! error is delivered. For instance, use AREAS(A2 D8) rather than AREAS(A2:D8).

For ready-to-use Dashboard Templates:

  1. Financial Dashboards
  2. Sales Dashboards
  3. HR Dashboards
  4. Data Visualization Charts

Leave a Comment

Your email address will not be published. Required fields are marked *

Categories