Add a new row of data and have the chart grow with it — automatically. The easy way is an Excel Table; the formula way is a dynamic named range built with OFFSET and COUNTA.
The example
A named range that grows as rows are added.
| A | |
|---|---|
| 1 | Defined name: SalesData |
| 2 | =OFFSET($B$2,0,0,COUNTA($B$2:$B$1000),1) |
The formula
The self-sizing named range:
How it works
Two ways — Table (simplest) or OFFSET name:
- Easiest: select your data and press Ctrl+T to make a Table. Charts built on a Table extend automatically when you add rows.
- Formula way: in Name Manager, define a name as
=OFFSET($B$2, 0, 0, COUNTA($B$2:$B$1000), 1). COUNTAcounts the non-empty cells;OFFSETreturns a range of exactly that height.- In the chart, edit the series values to use the name (e.g.
=Sheet1!SalesData). New rows now appear automatically.
Prefer Tables. Unless you need OFFSET for an unusual layout, a Table is simpler, non-volatile, and also gives you structured references, filters, and banding for free. Reserve the OFFSET name for when a Table won’t fit the layout.
Try it: interactive demo
Add values; the “range” auto-sizes.
Variations
Excel Table (best)
Select data → Ctrl+T; charts extend automatically.
Two-column range
Widen the OFFSET:
Ignore trailing blanks
COUNTA stops at the gap if data is contiguous.
Pitfalls & errors
OFFSET is volatile. It recalculates often; on huge models a Table is leaner. COUNTA also miscounts if there are blank cells within the data.
Reference the name in the series. The chart series must use the workbook-qualified name (=Sheet1!SalesData), not the raw range, for auto-expansion to work.
Blanks break COUNTA. Gaps in the column undercount the height; keep the data contiguous.
Practice workbook
Frequently asked questions
How do I make an Excel chart expand automatically with new data?
Should I use a Table or an OFFSET name?
Why doesn't my dynamic range update the chart?
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