Question: How do I create a chart that dynamically updates the values, as i type them in the workbook?

Answer:

Table of contents

Excel 2003 - Dynamic chart

Excel 2007 - Dynamic chart

Excel 2003 - Dynamic chart

Let´s say you created this basic chart. Now you need to setup named ranges, they expand automatically whenever new data is added.

Create two named ranges

  1. Go to ribbon "Formulas"
  2. Click "Define name"
  3. Name it "Months"
  4. Type "=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A))" in "Refers to:"
  5. Click ok!
  6. Click "Define name"
  7. Name it "Numbers"
  8. Type "=OFFSET(Sheet1!$B$1,0,0,COUNTA(Sheet1!$B:$B)) " in "Refers to:"
  9. Click ok!

Setting up the chart

  1. Right click on a chart bar
  2. Click "Select Data..."
  3. Click Series1
  4. Click Edit
  5. Change "Series values:" to Sheet1!Numbers
  6. Click OK!
  7. Click Edit button in Horizontal (Category) Axis Labels
  8.  Click OK!

Now, type another month and a number. Look at the chart, it expands automatically.

Add more dynamic series to the chart

Let´s say you want to add a new series

  1. Create a third named range Numbers1 (See instructions above)
  2. Right click on chart
  3. Click "Select Data..."
  4. Click "Add"
  5. Type in "Series values:" Sheet1!Numbers1
  6. Click OK!
  7. Click OK!


Excel 2007 - Dynamic chart

Create a table

  1. Select A1:B3
  2. Click "Insert" tab
  3. Click "Table" button
  4. Click OK!

Create a chart

  1. Select table
  2. Click "Insert" tab
  3. Click "Column chart" button

It is now possible to add more rows and columns to the table. The chart is instantly updated!

Download excel sample file for this tutorial.

Dynamic chart.xlsx
(Excel 2007 Workbook *.xlsx)

Functions in this article:

OFFSET(reference, rows, cols,  [height], [width])
Returns a reference to a range that is a given number of rows and columns from a given reference

COUNTA(value1, [value2], )
Counts the number of cells in a range that are not empty

Related posts:

Dynamic chart – Display values from a table row or column

Excel charts: Use dynamic ranges to add new values to both chart and drop down list

Dynamic stock chart in excel – Add date ranges

Create a dynamic named range in excel

Create a dynamic stock chart using a web query and a drop down list in excel