
📎 This article includes 1 downloadable practice file ↓
In this article
AREAS counts separate ranges in a reference — used with INDEX’s area_num argument to switch between tables.
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
| Reference | Formula | Result |
|---|---|---|
| (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
| Mistake | What to do instead |
|---|---|
| Separator | A union uses commas inside extra brackets: AREAS((A1:B2,D1:D5)) |
| Rarely needed | Mostly for auditing complex named ranges |
Related functions
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
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.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time — plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul →Build this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.