A dynamic named range automatically grows and shrinks as you add or remove data — so charts, drop-downs, and SUMs never need their ranges updated. The classic build uses OFFSET + COUNTA in the Name Manager.
SalesData) that refers to:
How it works
The named range covers only the filled cells — add a row and it expands.
| A | B | |
|---|---|---|
| 1 | Month | Sales (named: SalesData) |
| 2 | Jan | $100 |
| 3 | Feb | $140 |
| 4 | Mar | $120 |
| 5 | (add Apr → range auto-grows) |
The formula
The Name Manager definition:
How it works
COUNTA does the measuring, OFFSET does the sizing:
COUNTA($B$2:$B$1000)counts how many non-blank cells are in the column — the current data length.OFFSET($B$2, 0, 0, thatCount, 1)returns a range starting at B2 that is exactly that many rows tall and 1 column wide.- Save it as a name (e.g.
SalesData). Now=SUM(SalesData), a chart, or a drop-down using it always covers just the filled cells. - Add a row and COUNTA grows, so the named range grows with it — no manual range edits ever again.
Two cleaner modern alternatives: an Excel Table (Ctrl+T) auto-expands its structured references with zero formulas; and in Excel 365 a spill formula referenced with # resizes itself. Use OFFSET when you need a classic named range without a Table.
Try it: interactive demo
Add or remove values; the named range (and its SUM) resizes.
Variations
Non-volatile with INDEX
Avoid OFFSET’s volatility:
Excel Table (no formula)
Ctrl+T, then reference the column — it auto-expands.
365 spill range
A dynamic-array result referenced with =Sheet!$B$2#.
Pitfalls & errors
Blanks in the middle undercount. COUNTA counts filled cells, so a gap makes the range too short. Keep the column contiguous, or count a key column with no gaps.
OFFSET is volatile. Many dynamic ranges can slow a workbook. The INDEX form or a Table is faster.
Headers. Start the range below the header and count from there, or COUNTA includes the header in the size.
Practice workbook
Frequently asked questions
How do I create a dynamic named range in Excel?
Is there a non-volatile dynamic range?
What's the easiest way to get an auto-expanding range?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class