AREAS Function in Excel: How Many Blocks in a Reference

AREAS Function in Excel: How Many Blocks in a Reference featured illustration

📎 This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 5 October 2026

LookupLevel: ExpertAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. AREAS in practice
  5. Where you will use it
  6. Worked example
  7. Mistakes people make
  8. Related functions
  9. Continue learning

AREAS counts separate ranges in a reference — used with INDEX’s area_num argument to switch between tables.

Advertisement

Syntax

=AREAS(reference)
Argument What it means
reference Wrap multiple ranges in brackets.

Examples

Example 1

=AREAS((A1:C10, E1:G10, I1:K10))

Returns 3.

AREAS in practice

Where you will use it

  • Count blocks in a multi-area reference
  • Check named ranges with several blocks
  • Validate INDEX area_num

Worked example

ReferenceFormulaResult
(H1:I2)=CHOOSE(ROW()-1,AREAS((H1:I2)),AREAS((H1:I2,K1:K5)),AREAS((H1,J1,L1)))1
(H1:I2,K1:K5)=CHOOSE(ROW()-1,AREAS((H1:I2)),AREAS((H1:I2,K1:K5)),AREAS((H1,J1,L1)))2
(H1,J1,L1)=CHOOSE(ROW()-1,AREAS((H1:I2)),AREAS((H1:I2,K1:K5)),AREAS((H1,J1,L1)))3

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
SeparatorA union uses commas inside extra brackets: AREAS((A1:B2,D1:D5))
Rarely neededMostly for auditing complex named ranges

INDEX · ROWS

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

⚡ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

📎 Practice files for this article

  • 📗
    Practice workbook: Lookup & reference17 tasks on realistic sales data — type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX · 35 KB

Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong

Leave a Reply

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